/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --navy:        #070b35;
  --navy-2:      #10164e;
  --blue:        #005bea;
  --cyan:        #12d9ff;
  --green:       #46ff57;
  --yellow:      #ffd52e;
  --red:         #ff2f28;
  --white:       #f8fbff;
  --muted:       rgba(248, 251, 255, 0.68);
  --panel:       rgba(255, 255, 255, 0.08);
  --panel-hover: rgba(255, 255, 255, 0.13);
  --line:        rgba(255, 255, 255, 0.14);
  --overlay:     rgba(7, 11, 53, 0.72);

  --radius-sm:   14px;
  --radius:      24px;
  --radius-lg:   36px;

  --gap:         clamp(1.125rem, 4vw, 4rem);
  --section-pad: clamp(4.75rem, 11vw, 9.375rem);
  --page-pad:    clamp(1.125rem, 5vw, 5rem);
  --header-h:    82px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 14% 8%,  rgba(18, 217, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 87% 18%, rgba(70, 255, 87,  0.14), transparent 22rem),
    linear-gradient(150deg, var(--navy), #020514 72%);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(115deg, transparent 0 45%, rgba(255,255,255,0.2) 45% 45.4%, transparent 45.4% 47%, rgba(255,255,255,0.2) 47% 47.4%, transparent 47.4%),
    radial-gradient(circle at 8% 30%, transparent 0 24px, rgba(255,255,255,0.18) 25px 27px, transparent 28px),
    radial-gradient(circle at 92% 78%, rgba(255,255,255,0.3) 0 3px, transparent 4px);
}

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 99px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
}

h1 { font-size: clamp(3.25rem, 9vw, 8.875rem); letter-spacing: -0.085em; text-transform: uppercase; }
h2 { font-size: clamp(2.5rem,  7vw, 7rem);      letter-spacing: -0.075em; text-transform: uppercase; }
h3 { font-size: clamp(1.5rem,  3vw, 2.75rem);   letter-spacing: -0.055em; line-height: 0.95; }
h4 { font-size: clamp(1.125rem, 2vw, 1.75rem);  letter-spacing: -0.04em;  line-height: 1.1; }

p  { line-height: 1.65; font-size: 1rem; }

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 42rem;
}

.label {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.section {
  padding: var(--section-pad) var(--page-pad);
  position: relative;
}

.section--dark {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 40%),
    #050720;
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--accent {
  background: var(--cyan);
  color: var(--navy);
}

.section--accent .label,
.section--accent p,
.section--accent h2,
.section--accent h3 {
  color: var(--navy);
}

.section--accent .muted {
  color: rgba(7, 11, 53, 0.72);
}

/* ============================================================
   PAGE GLOW
   ============================================================ */
.page-glow {
  position: fixed;
  inset: auto -22vw -26vw auto;
  width: 60vw;
  height: 60vw;
  border-radius: 999px;
  background: rgba(18, 217, 255, 0.13);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 53, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(7, 11, 53, 0.96);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.main-nav a {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.header-cta {
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.header-cta img {
  height: 38px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.75rem;
  min-height: 52px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(70, 255, 87, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(70, 255, 87, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--panel);
  transform: translateY(-3px);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(18, 217, 255, 0.22);
}

.btn-cyan:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(18, 217, 255, 0.32);
}

.btn-sm {
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  min-height: 60px;
  font-size: 1rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  transition: transform 0.22s var(--ease-out), opacity 0.2s;
}

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

.btn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--page-pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.footer-badge img {
  height: 42px;
  width: auto;
  transition: opacity 0.2s;
}

.footer-badge:hover img {
  opacity: 0.75;
}

.footer-nav__heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.footer-nav a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-contact .footer-nav__heading {
  margin-bottom: 0.75rem;
}

.footer-contact__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-contact a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem var(--page-pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(760px, calc(100vw - 2rem));
  background: rgba(16, 22, 78, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.5s var(--ease-out);
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes slide-up {
  from { transform: translateX(-50%) translateY(1.5rem); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);      opacity: 1; }
}

.cookie-banner__inner {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-banner__text strong {
  color: var(--white);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--cyan);
  color: var(--navy);
  border-top:    3px solid rgba(255, 255, 255, 0.15);
  border-bottom: 3px solid rgba(255, 255, 255, 0.15);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  padding: 1.25rem 2rem;
  white-space: nowrap;
  font-size: clamp(1.75rem, 4.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.marquee span::before {
  content: "★";
  margin-right: 1.25rem;
  font-size: 0.6em;
  vertical-align: middle;
  opacity: 0.5;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.stat-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat-card__value {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3.875rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--cyan);
  margin-bottom: 0.625rem;
}

.stat-card__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTION HEAD (label + h2 + lead grid)
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 0.65fr 1fr 0.85fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.section-head h2,
.section-head p {
  margin: 0;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split--60-40 { grid-template-columns: 1.25fr 1fr; }
.split--40-60 { grid-template-columns: 1fr 1.25fr; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: background 0.25s;
}

.card:hover {
  background: var(--panel-hover);
}

.card__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.09em;
  color: var(--yellow);
  margin-bottom: 2.5rem;
}

.card__title {
  margin-bottom: 0.625rem;
}

.card__body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Image card (screenshot inside) */
.img-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.img-card img {
  width: 100%;
  object-fit: cover;
}

.img-card__body {
  padding: 1.5rem;
}

.img-card__tag {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================================
   FEATURE HIGHLIGHT (icon + text)
   ============================================================ */
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(70, 255, 87, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

/* ============================================================
   VISUAL FRAME (rounded image with glow)
   ============================================================ */
.visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.visual-frame img {
  width: 100%;
  display: block;
}

.visual-frame--tilt {
  transform: rotate(1.5deg);
}

/* ============================================================
   SECTION WITH BG IMAGE OVERLAY
   ============================================================ */
.section-bg {
  position: relative;
  overflow: hidden;
}

.section-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.section-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(7, 11, 53, 0.9), rgba(7, 11, 53, 0.7));
}

.section-bg__content {
  position: relative;
  z-index: 2;
}

/* ============================================================
   ACCENT STRIP
   ============================================================ */
.accent-strip {
  background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 100%);
  padding: 3rem var(--page-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.accent-strip h2,
.accent-strip p {
  color: var(--navy);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1020px)
   ============================================================ */
@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    grid-column: 1 / -1;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 11, 53, 0.96);
    backdrop-filter: blur(16px);
  }

  .main-nav.is-open a {
    font-size: 1rem;
    padding: 0.625rem 0.5rem;
    width: 100%;
  }

  .site-header {
    height: auto;
  }

  .site-header .header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    height: auto;
  }

  .split,
  .split--60-40,
  .split--40-60,
  .split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .btn-actions {
    flex-direction: column;
  }

  .btn-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
