/* =====================================================================
   Yalla VPN — Website design system
   Gulf / Khaleeji brand: Saudi green (#006C35) + desert gold (#C9A227)
   Palette taken from the app (core/designsystem/theme/Color.kt)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens */
  --green-900: #00300F;
  --green-800: #004F27;
  --green-700: #005C2E;
  --brand:     #006C35;   /* primary */
  --green-500: #1C7D4A;   /* connected */
  --green-400: #28B268;
  --green-300: #74D59B;
  --green-100: #BDEACD;
  --green-050: #EAF6EE;

  /* Desert gold */
  --gold:       #C9A227;
  --gold-light: #E6C65A;
  --gold-soft:  #F4E7BC;

  /* Neutrals (light) */
  --ink:        #14231A;   /* text */
  --ink-soft:   #2C3E34;
  --muted:      #415349;
  --muted-2:    #6F867A;
  --bg:         #F6FBF7;
  --surface:    #FFFFFF;
  --surface-2:  #ECF4ED;
  --border:     #CFE0D4;
  --ring: rgba(0, 108, 53, .28);

  /* Effects */
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 26, .06), 0 2px 8px rgba(20, 35, 26, .05);
  --shadow:    0 8px 28px rgba(20, 35, 26, .10);
  --shadow-lg: 0 24px 60px rgba(0, 48, 15, .18);
  --maxw: 1120px;
  --nav-h: 68px;

  --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--green-500) 55%, var(--green-400) 100%);
  --grad-gold:  linear-gradient(135deg, var(--gold-light), var(--gold));
  --grad-hero:  radial-gradient(1200px 620px at 72% -8%, rgba(40,178,104,.18), transparent 60%),
                radial-gradient(900px 520px at 8% 8%, rgba(201,162,39,.14), transparent 55%);

  color-scheme: light;
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --ink:        #EAF4ED;
  --ink-soft:   #CFE0D4;
  --muted:      #A9C3B3;
  --muted-2:    #86A592;
  --bg:         #0A1C11;
  --surface:    #11291A;
  --surface-2:  #16331F;
  --border:     #234A32;
  --ring: rgba(116, 213, 155, .30);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.6);
  --grad-hero:  radial-gradient(1200px 620px at 72% -8%, rgba(40,178,104,.22), transparent 60%),
                radial-gradient(900px 520px at 8% 8%, rgba(201,162,39,.12), transparent 55%);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p  { color: var(--muted); }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
:root[data-theme="dark"] .eyebrow { color: var(--green-300); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.center .lead { margin-inline: auto; }
.grad-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(0,108,53,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,108,53,.38); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
:root[data-theme="dark"] .btn-ghost:hover { color: var(--green-300); border-color: var(--green-300); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }

/* Google Play badge button */
.play-badge {
  display: inline-flex; align-items: center; gap: 13px; padding: 12px 20px 12px 18px;
  border-radius: 14px; background: #0c1a12; color: #fff; border: 1px solid #22402e;
  transition: transform .18s ease, box-shadow .18s ease;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.play-badge .pb-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.play-badge .pb-sub { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.play-badge .pb-main { font-size: 1.18rem; font-weight: 700; letter-spacing: .01em; }
.play-badge .pb-soon { align-self: center; font-size: .62rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; background: var(--grad-gold); color: #3a2d00; padding: 3px 9px; border-radius: 999px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.brand .logo { width: 34px; height: 34px; border-radius: 8px; }
.brand b { color: var(--brand); } :root[data-theme="dark"] .brand b { color: var(--green-300); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  transition: transform .15s, border-color .15s, color .15s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
:root[data-theme="dark"] .icon-btn:hover { color: var(--green-300); border-color: var(--green-300); }
.icon-btn .sun { display: none; } .icon-btn .moon { display: block; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    margin-left: 0;
  }
  .nav-links a { padding: 13px 12px; font-size: 1.02rem; }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-toggle { display: grid; }
  .nav .cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(42px, 7vw, 84px) 0 clamp(50px, 7vw, 88px); background: var(--grad-hero); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 20px;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(40,178,104,.18); }
.hero h1 { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4rem); letter-spacing: -.035em; }
.hero p.lead { margin-top: 18px; font-size: clamp(1.02rem, .95rem + .5vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .84rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--brand); }
:root[data-theme="dark"] .chip svg { color: var(--green-300); }

/* Phone mockup */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone {
  position: relative; width: min(290px, 74%); aspect-ratio: 1080 / 2400; border-radius: 40px;
  background: #06160d; padding: 8px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08); animation: float 6s ease-in-out infinite;
}
.phone img, .phone svg { width: 100%; height: 100%; border-radius: 33px; object-fit: cover; }
.phone::after { display: none; }
.hero .phone-glow { position: absolute; inset: 8% 6%; background: var(--grad-brand); filter: blur(60px); opacity: .32; border-radius: 50%; z-index: -1; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Trust / stat bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="dark"] .stat .num { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-050); color: var(--brand);
}
:root[data-theme="dark"] .card .ic { background: var(--surface-2); color: var(--green-300); }
.card .ic.gold { background: var(--gold-soft); color: #7a5f00; }
:root[data-theme="dark"] .card .ic.gold { background: rgba(201,162,39,.16); color: var(--gold-light); }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px 28px; box-shadow: var(--shadow-sm); }
.step .n {
  counter-increment: step; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad-brand); margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(0,108,53,.28);
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 7px; }
.step p { font-size: .96rem; }
.steps::before {
  content: ""; position: absolute;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 44px; max-width: 1000px; margin-inline: auto; }
.shot {
  border-radius: 26px; overflow: hidden; background: #06160d; cursor: pointer; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; aspect-ratio: 1080/2400;
  position: relative;
}
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff;
  font-size: .82rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,20,8,.82)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2,14,7,.9); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 22px; box-shadow: var(--shadow-lg); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { top: 20px; right: 20px; transform: none; width: 44px; height: 44px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px) 28px;
  background: var(--grad-brand); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% -20%, rgba(230,198,90,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 50ch; margin: 14px auto 26px; }
.cta-band .note { font-size: .84rem; opacity: .82; margin-top: 16px; }
.cta-band .play-badge { background: #06160d; border-color: rgba(255,255,255,.14); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer p { font-size: .92rem; max-width: 34ch; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
:root[data-theme="dark"] .footer-col a:hover { color: var(--green-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted-2); }

/* ---------- Legal / content pages ---------- */
.page-head { background: var(--grad-hero); padding: clamp(48px, 7vw, 88px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); }
.page-head .updated { margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); font-size: .9rem; }
.toc h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; transition: .15s; }
.toc a:hover, .toc a.active { color: var(--brand); background: var(--surface-2); border-left-color: var(--brand); }
.prose h2 { font-size: 1.4rem; margin: 38px 0 12px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 1rem; }
.prose p { margin: 10px 0; }
.prose ul { margin: 10px 0 10px; padding-left: 4px; }
.prose li { position: relative; padding-left: 24px; margin: 7px 0; }
.prose li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .prose a { color: var(--green-300); }
.prose strong { color: var(--ink); }
.callout { background: var(--green-050); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
:root[data-theme="dark"] .callout { background: var(--surface-2); border-color: var(--border); }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--green-050); color: var(--brand); margin-bottom: 16px; }
:root[data-theme="dark"] .contact-card .ic { background: var(--surface-2); color: var(--green-300); }
.contact-card a.mail { font-size: 1.12rem; font-weight: 700; color: var(--brand); }
:root[data-theme="dark"] .contact-card a.mail { color: var(--green-300); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .96rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-chips { justify-content: center; }
  .phone-wrap { order: -1; margin-bottom: 8px; }
  .phone { width: min(260px, 64%); }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.about { grid-column: 1 / -1; }
}
