/* Rosa VPN website. Brand tokens from Rosa_Handoff/docs/02_design_system.md (dark = main theme). */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope_variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn_bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn_black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --bg: #06070B; --surface: #101119; --surface2: #161824;
  --border: rgba(255,255,255,.09); --text: #F4F5FA; --muted: #8D92A5; --steel: #5B6075; --body: #C6C9D6;
  --red: #FF4F6E; --violet: #9B6BFF; --teal: #33E1D2;
  --grad: linear-gradient(90deg, #FF4F6E, #9B6BFF 50%, #33E1D2);
  --btn: linear-gradient(90deg, #FF4F6E, #9B6BFF);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
html[lang="fa"] { --font: "Vazirmatn", "Manrope", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 50% -12%, rgba(155,107,255,.20), transparent 62%),
    radial-gradient(45vmax 40vmax at -10% 105%, rgba(255,79,110,.14), transparent 60%),
    radial-gradient(45vmax 40vmax at 110% 100%, rgba(51,225,210,.10), transparent 60%);
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { width: auto; height: auto; clip-path: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6,7,11,.66); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; direction: ltr; }
.brand img { width: 30px; height: 30px; }
.wordmark { font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: .38em; font-size: 15px; white-space: nowrap; }
.wordmark span { color: var(--muted); font-weight: 500; letter-spacing: .28em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--muted); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px;
  border-radius: 18px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(155,107,255,.75); }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(155,107,255,.95); }
.btn-ghost { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn svg { width: 20px; height: 20px; flex: none; }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 14px; color: #fff; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--teal); background: rgba(51,225,210,.12); border: 1px solid rgba(51,225,210,.40); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 20px 0 18px; font-weight: 800; }
html[lang="fa"] h1 { letter-spacing: 0; line-height: 1.35; font-weight: 900; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--steel); }

/* Phone with the app-flow video, inside an orbit */
.stage { position: relative; display: grid; place-items: center; padding: 28px 0; overflow: clip; overflow-clip-margin: 40px; }
.stage .orbit-ring { position: absolute; width: min(520px, 118%); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgba(91,96,117,.55); animation: spin 60s linear infinite; }
.stage .orbit-ring::after { content: ""; position: absolute; top: 50%; left: -7px; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 7px rgba(51,225,210,.16), 0 0 22px var(--teal); }
.stage .halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(155,107,255,.42), transparent 66%); filter: blur(24px); }
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 780 / 1688; border-radius: 40px; padding: 9px; background: #0B0C12;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(155,107,255,.15); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: #06070B; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); }
html[lang="fa"] .eyebrow { letter-spacing: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 10px 0 12px; letter-spacing: -.01em; }
html[lang="fa"] h2 { line-height: 1.45; letter-spacing: 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 26px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.shots figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(155,107,255,.14);
  border: 1px solid rgba(155,107,255,.45); color: var(--violet); }
.icon svg { width: 22px; height: 22px; }
.icon.teal { background: rgba(51,225,210,.12); border-color: rgba(51,225,210,.40); color: var(--teal); }
.icon.red { background: rgba(255,79,110,.12); border-color: rgba(255,79,110,.40); color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps .card { position: relative; }
.steps .num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .62em; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.list.no li::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

.band { text-align: center; border-radius: 32px; padding: 48px 24px 52px; border: 1px solid var(--border);
  background: radial-gradient(80% 120% at 50% 0%, rgba(155,107,255,.22), transparent 60%), var(--surface); }
.band .orb { width: 190px; margin: 0 auto 8px; }
.band p { color: var(--muted); margin: 0 auto 26px; max-width: 32em; }

/* Content pages */
.page-hero { padding: 60px 0 24px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 10px 0 8px; }
.page-hero p { color: var(--muted); margin: 0; font-size: 17px; }
.prose { background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 28px; padding: clamp(22px, 4vw, 44px); margin-bottom: 64px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose a { color: var(--teal); }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.faq-cat { margin: 0 0 30px; }
.faq-cat h2 { font-size: 20px; margin: 0 0 12px; }
details { border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.03); margin: 0 0 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 18px; color: var(--body); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }
.tagline { margin: 10px 0 0; color: var(--steel); }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .stage { order: -1; }
  .stage .orbit-ring { width: min(420px, 108vw); }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav .btn { display: none; }
  .cta .btn { flex: 1 1 100%; }
  section { padding: 44px 0; }
  .phone { width: min(260px, 68vw); }
}
@media (prefers-reduced-motion: reduce) {
  .stage .orbit-ring { animation: none; }
}
