:root {
  --bg: #030514;
  --bg-soft: #07122c;
  --surface: rgba(7, 12, 30, 0.82);
  --surface-strong: rgba(4, 9, 24, 0.94);
  --accent: #ff2d49;
  --accent-strong: #ff4d63;
  --text: #f7f9ff;
  --muted: #c2cade;
  --border: rgba(255, 45, 73, 0.28);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(
    circle at top,
    var(--bg-soft) 0%,
    var(--bg) 55%,
    #02030a 100%
  );
  color: var(--text);
}

body {
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.page {
  width: 100%;
}

.header-row,
.hero-grid,
.section {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(1, 6, 18, 0.9) 0%, rgba(1, 6, 18, 0.9) 100%),
    url("/assets/header-bg.webp") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff263d;
}

.logo img {
  width: 140px;
  height: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  min-height: 42px;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  background: linear-gradient(135deg, #b40f20 0%, #ff2d49 100%);
  color: #fff;
}

.btn-secondary {
  background: rgba(5, 10, 27, 0.72);
  border-color: var(--border);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(560px, 68vh, 700px);
  padding: clamp(26px, 4vh, 42px) 0 clamp(20px, 3vh, 30px);
  border-bottom: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 22, 0.95) 0%,
      rgba(3, 8, 22, 0.84) 36%,
      rgba(3, 8, 22, 0.38) 58%,
      rgba(3, 8, 22, 0.14) 100%
    ),
    url("/assets/naga5000-backgroud.webp") 68% center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 4, 12, 0.2) 0%,
    rgba(2, 4, 12, 0.65) 100%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  align-content: center;
  gap: 10px;
  min-height: clamp(400px, 52vh, 560px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 900;
  text-wrap: balance;
}

.hero-copy h1 .accent-line {
  color: var(--accent);
}

.hero-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(4, 11, 30, 0.72);
  color: #fff;
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.hero-copy p {
  margin: 4px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw, 0.92rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

[data-ab="b"] .hero-cta {
  display: block;
}

[data-ab="b"] .hero-cta .cta-main {
  display: flex;
  width: min(360px, 100%);
  min-height: 46px;
}

[data-ab="b"] .hero-cta .cta-login {
  display: inline-block;
  margin-top: 8px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.stat-card {
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(10, 17, 40, 0.82) 0%,
    rgba(4, 8, 22, 0.9) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 45, 73, 0.06);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1;
}

.stat-card {
  font-size: 0.78rem;
  line-height: 1.45;
}

.section {
  padding: clamp(30px, 4vw, 46px) 0;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.faq-item {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.feature-card {
  min-height: 132px;
}

.feature-card h3,
.faq-item h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature-card p,
.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq-item {
  min-height: 104px;
}

.faq-item h4 {
  color: #fff;
}

.faq-item p {
  color: var(--muted);
}

.feature-card:hover,
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(3, 8, 22, 0.28);
}

.faq {
  display: grid;
  gap: 14px;
}

.footer {
  width: 100%;
  padding: 34px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-copy {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .header-row,
  .hero-grid,
  .section {
    width: min(1180px, calc(100% - 24px));
  }

  .footer-copy {
    width: min(1180px, calc(100% - 24px));
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 540px);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-row {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 0;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero {
    min-height: 520px;
    padding-top: 20px;
    background-position: 58% center;
    background-size: auto 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-row,
  .hero-grid,
  .section {
    width: min(1180px, calc(100% - 18px));
  }

  .footer-copy {
    width: min(1180px, calc(100% - 18px));
  }

  .logo {
    font-size: 0.95rem;
    letter-spacing: 2.5px;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .header-actions .btn {
    width: auto;
    padding: 10px 16px;
    min-height: 40px;
  }

  .hero {
    min-height: 470px;
    padding: 16px 0 14px;
    background-position: 56% center;
    background-size: auto 100%;
  }

  .hero-grid {
    min-height: auto;
    gap: 10px;
  }

  .hero-kicker {
    letter-spacing: 0.11em;
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 9.5vw, 2.2rem);
    line-height: 1.03;
  }

  .hero-badge {
    font-size: 1rem;
    padding: 7px 14px;
    margin-top: 4px;
  }

  .hero-copy p {
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 96%;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    margin: 8px 0 2px;
    gap: 8px;
  }

  .hero-cta .btn {
    min-height: 40px;
    font-size: 0.9rem;
  }

  [data-ab="b"] .hero-cta .cta-main {
    width: 100%;
    min-height: 44px;
    font-size: 0.96rem;
  }

  [data-ab="b"] .hero-cta .cta-login {
    font-size: 0.85rem;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 6px;
    gap: 8px;
  }

  .stat-card {
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    align-items: start;
  }

  .stat-card strong {
    margin: 0;
    font-size: 1.32rem;
  }

  .stat-card br {
    display: none;
  }

  .stat-card:nth-child(n + 3) {
    display: none;
  }

  .section {
    padding: 34px 0;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .section p {
    font-size: 0.92rem;
  }

  .faq-item {
    min-height: auto;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .feature-card,
  .faq-item {
    transition: none;
  }

  .feature-card:hover,
  .faq-item:hover {
    transform: none;
    box-shadow: none;
  }
}
