
/* =========================================
   JPGPAY INFORMATION WEBSITE
   Domain: jpgpay-app.com
   Main Stylesheet
========================================= */

/* ---------- ROOT VARIABLES ---------- */

:root {
  --primary: #F4510B;
  --primary-dark: #242A32;
  --primary-light: #FFF0E8;
  --secondary: #F5F5F4;
  --telegram: #229ed9;

  --text: #242A32;
  --text-light: #505963;
  --muted: #78818A;

  --background: #F7F8FA;
  --white: #FFFFFF;
  --border: #E3E6EA;

  --success: #168653;

  --shadow-sm: 0 3px 12px rgba(36, 42, 50, 0.06);
  --shadow-md: 0 8px 28px rgba(36, 42, 50, 0.10);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --container: 1120px;
}


/* ---------- RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 81, 11, 0.35);
  outline-offset: 3px;
}

::selection {
  background: linear-gradient(135deg, #F4510B, #242A32);
  color: #FFFFFF;
}


/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #E4D2A8;
  box-shadow: 0 2px 12px rgba(36, 42, 50, 0.045);
}

.header-container {
  max-width: var(--container);
  min-height: 72px;
  margin: auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


/* ---------- BRAND ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.brand span {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.8px;
}


/* ---------- NAVIGATION ---------- */

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.navigation a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  padding: 9px 10px;
  border-radius: 8px;
  transition: color 0.2s ease,
              background 0.2s ease;
}

.navigation a:hover,
.navigation a.active {
  color: var(--primary);
  background: var(--primary-light);
}


/* ---------- HAMBURGER ---------- */

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--text);
  border-radius: 5px;

  transition: transform 0.25s ease,
              opacity 0.2s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- HERO SECTION ---------- */

.hero-section {
  background:
    radial-gradient(
      circle at 50% 0%,
      #F3E3BE 0%,
      transparent 68%
    ),
    linear-gradient(180deg, #F8EEDB, #FFFCF5);

  padding: 55px 20px 45px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 760px;
  margin: auto;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-logo img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 22px;
  background: #F8EEDB;
  padding: 4px;
  border: 2px solid #D9A52E;
  box-shadow: 0 8px 24px rgba(36, 42, 50, 0.16);
}

.hero-label,
.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-label {
  background: #F4E7CC;
  padding: 6px 13px;
  border-radius: 30px;
  margin-bottom: 13px;
}

.hero-heading h1 {
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1.1px;
  color: #242A32;
  margin-bottom: 15px;
}

.hero-heading p {
  max-width: 680px;
  margin: auto;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.85;
}


/* ---------- HERO BUTTONS ---------- */

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.btn {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  font-size: 13px;
  font-weight: 700;

  border: 1px solid transparent;
  cursor: pointer;

  transition: transform 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #F4510B, #242A32);
  color: #FFFFFF;
  box-shadow: 0 5px 14px rgba(90, 35, 122, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #242A32, #210B36);
}

.btn-outline {
  color: var(--primary);
  background: var(--white);
  border-color: #D9A52E;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-telegram {
  background: var(--telegram);
  color: var(--white);
}

.btn-telegram:hover {
  background: #187F82;
}

.hero-note {
  margin-top: 19px;
  font-size: 11px;
  color: var(--muted);
}


/* ---------- MAIN CONTENT WRAPPER ---------- */

.content-wrapper {
  width: 100%;
  max-width: 900px;
  padding: 30px 20px 55px;
  margin: auto;
}


/* ---------- INTRODUCTION CARD ---------- */

.intro-card,
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 27px;
  margin-bottom: 19px;
  box-shadow: var(--shadow-sm);
}

.intro-card {
  border-top: 3px solid #D9A52E;
  margin-bottom: 25px;
}

.intro-card h2,
.content-card h2 {
  color: #242A32;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.4px;
  margin-top: 8px;
  margin-bottom: 13px;
}

.intro-card p,
.content-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 13px;
}

.intro-card p:last-child,
.content-card p:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 10px;
  letter-spacing: 1.1px;
  color: var(--primary);
}


/* ---------- CONTENT CARDS ---------- */

.content-card {
  position: relative;
  scroll-margin-top: 95px;
  transition: box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.content-card:hover {
  border-color: #D9C49D;
  box-shadow: var(--shadow-md);
}

.content-card h2 {
  font-size: 19px;
}

.content-card p {
  text-align: left;
}


/* ---------- FAQ SECTION ---------- */

.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FBF7EE;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;

  padding: 15px 42px 15px 16px;

  color: #3D244B;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary);
  background: #F5E8C9;
  font-size: 17px;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--text-light);
}


/* ---------- COMMUNITY CARD ---------- */

.community-card {
  text-align: center;
  padding: 30px 24px;
  margin-top: 25px;

  background: linear-gradient(
    135deg,
    #F5E8CC,
    #FFFCF5 72%
  );

  border: 1px solid #E7D4AA;
  border-radius: var(--radius-lg);
}

.community-card h2 {
  color: #242A32;
  font-size: 22px;
  margin-bottom: 10px;
}

.community-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.8;
}

.community-card .small-note {
  font-size: 11px;
  margin-top: 12px;
  color: var(--muted);
}


/* ---------- FOOTER ---------- */

.site-footer {
  background: #210B36;
  color: #F1E4CB;
  padding: 45px 20px 0;
}

.footer-container {
  max-width: var(--container);
  margin: auto;

  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 45px;

  padding-bottom: 35px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand span {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.footer-about p {
  font-size: 12px;
  line-height: 1.9;
  color: #D8C6A6;
  max-width: 350px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links h3 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-links a {
  color: #D8C6A6;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #E7BD55;
}


/* ---------- FOOTER DISCLAIMER ---------- */

.footer-disclaimer {
  max-width: var(--container);
  margin: auto;
  padding: 18px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  color: #D8C6A6;
  font-size: 11px;
  line-height: 1.85;
}

.footer-disclaimer strong {
  color: #FFFCF5;
}


/* ---------- FOOTER BOTTOM ---------- */

.footer-bottom {
  max-width: var(--container);
  margin: auto;
  padding: 19px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 11px;
  color: #D8C6A6;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

  .header-container {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;

    padding: 0 20px;
    background: var(--white);

    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);

    max-height: 0;
    overflow: hidden;
    visibility: hidden;

    transition: max-height 0.3s ease,
                padding 0.3s ease,
                visibility 0.3s ease;
  }

  .navigation.open {
    max-height: 520px;
    padding: 12px 20px 18px;
    visibility: visible;
  }

  .navigation a {
    display: block;
    width: 100%;
    padding: 10px 13px;
    font-size: 13px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

  body {
    font-size: 14px;
  }

  .header-container {
    padding: 0 15px;
    min-height: 64px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 20px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-section {
    padding: 38px 16px 32px;
  }

  .hero-logo img {
    width: 94px;
    height: 94px;
  }

  .hero-heading h1 {
    font-size: 26px;
    letter-spacing: -0.7px;
  }

  .hero-heading p {
    font-size: 13px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 330px;
  }

  .content-wrapper {
    padding: 20px 13px 40px;
  }

  .intro-card,
  .content-card {
    padding: 20px 17px;
    margin-bottom: 14px;
    border-radius: 13px;
  }

  .intro-card h2,
  .content-card h2 {
    font-size: 18px;
  }

  .intro-card p,
  .content-card p {
    font-size: 13px;
    line-height: 1.85;
  }

  .content-card:hover {
    box-shadow: var(--shadow-sm);
  }

  .faq-item summary {
    font-size: 12px;
    padding: 14px 40px 14px 13px;
  }

  .faq-item p {
    font-size: 12px;
    padding: 0 13px 14px;
  }

  .community-card {
    padding: 25px 17px;
    border-radius: 15px;
  }

  .community-card h2 {
    font-size: 19px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-links h3 {
    font-size: 13px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .footer-disclaimer {
    padding: 16px 5px;
    font-size: 10px;
  }

}


/* ---------- SMALL MOBILE ---------- */

@media (max-width: 360px) {

  .hero-heading h1 {
    font-size: 23px;
  }

  .intro-card,
  .content-card {
    padding: 17px 14px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }

}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

/* ---------- REFERRAL COPY SUCCESS ---------- */

.btn-outline.copied {
  color: #168653;
  background: #EAF6EF;
  border-color: #A9D8B8;
}

.btn-outline:disabled {
  opacity: 0.85;
  cursor: default;
  transform: none;
}
