/* India VPN site. Tokens come from the app's own palette (colors.xml). */
:root {
  --bg: #F6F8FD;
  --surface: #FFFFFF;
  --text: #0F1B3D;
  --muted: #55627F;
  --line: #DFE7F4;
  --blue: #1565F5;
  --blue-deep: #0B3FB0;
  --green: #19B25B;
  --red: #E5484D;
  --saffron: #FF9933;
  --link: #0B4FD0;
  --tint: #EAF1FE;
  --focus: #1565F5;
  --radius: 14px;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1228;
    --surface: #101C3C;
    --text: #E9EFFC;
    --muted: #A5B2D0;
    --line: #22335F;
    --link: #7FAEFF;
    --tint: #14264F;
    --focus: #7FAEFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--head); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav a.btn { margin-left: 6px; color: #fff; background: var(--blue); }
.nav a.btn:hover { background: var(--blue-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; font: 600 1rem var(--body); padding: 13px 22px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.small { padding: 9px 16px; font-size: .95rem; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 600px at 85% 20%, #1F6FF5 0%, transparent 60%), linear-gradient(180deg, #0B2A7A 0%, #07173F 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: #fff; }
.hero .lead { color: #CFDDFB; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { background: #fff; color: #0B3FB0; }
.hero .btn:hover { background: #E4EDFF; }
.hero .btn.ghost { background: transparent; color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero-note { margin-top: 18px; color: #A9C0F2; font-size: .95rem; }

/* tricolour rule: the one place the flag colours appear */
.tricolour { display: block; width: 84px; height: 6px; border-radius: 3px; margin-bottom: 22px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }

/* ---------- phone demo (mirrors the real Home screen) ---------- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { width: min(310px, 100%); border-radius: 38px; padding: 10px; background: #0A1330; box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 2px #25346b; }
.screen { border-radius: 30px; overflow: hidden; background: #F4F7FD; color: #0F1B3D; }
.screen-top { padding: 26px 20px 62px; text-align: center; color: #fff; background: linear-gradient(180deg, #1F6FF5, #0A3FB8); transition: background .5s; }
.phone[data-state="connected"] .screen-top { background: linear-gradient(180deg, #10A064, #064E3B); }
.screen-title { font: 700 1rem var(--head); opacity: .9; }
.ring { position: relative; display: block; width: 148px; height: 148px; margin: 18px auto 10px; border: 0; background: none; padding: 0; cursor: pointer; color: #fff; }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .track { stroke: rgba(255,255,255,.22); }
.ring .arc { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .6s, stroke .4s; stroke-dasharray: 427; stroke-dashoffset: 427; transform-origin: 50% 50%; transform: rotate(-90deg); }
.phone[data-state="connecting"] .ring .arc { stroke-dashoffset: 300; animation: spin 1.1s linear infinite; }
.phone[data-state="connected"] .ring .arc { stroke: #2BD9A4; stroke-dashoffset: 0; }
.ring .icon { position: absolute; inset: 0; display: grid; place-items: center; }
.ring .icon svg { width: 52px; height: 52px; }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.status { font: 700 1.3rem var(--head); margin: 0; }
.sub { font-size: .85rem; color: #D6E4FF; margin: 2px 0 0; min-height: 1.3em; }
.timer { font: 500 1.05rem var(--body); font-variant-numeric: tabular-nums; margin: 6px 0 0; color: #D6E4FF; visibility: hidden; }
.phone[data-state="connected"] .timer { visibility: visible; }
.screen-body { margin-top: -38px; padding: 0 14px 16px; position: relative; }
.mini-card { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 18px rgba(15,27,61,.08); display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.mini-card b { display: block; font-size: .72rem; font-weight: 500; color: #6B7A99; }
.action { width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 14px; font: 700 1rem var(--head); background: #1565F5; color: #fff; cursor: pointer; }
.phone[data-state="connected"] .action { background: #19B25B; }
.phone[data-state="connecting"] .action { background: #E5484D; }
.servers { margin-top: 12px; background: #fff; border-radius: 16px; overflow: hidden; }
.srv { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: .9rem; border-top: 1px solid #E6ECF6; }
.srv:first-child { border-top: 0; }
.srv small { display: block; color: #6B7A99; font-size: .75rem; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { width: 4px; border-radius: 1px; background: #D5DEEE; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 12px; } .bars i:nth-child(4) { height: 16px; }
.bars.on i { background: #19B25B; }
.off-label { color: #E5484D; font-weight: 600; font-size: .85rem; }
.demo-caption { color: #A9C0F2; font-size: .88rem; text-align: center; max-width: 30ch; margin: 0; }

/* ---------- sections ---------- */
section.block { padding-block: 84px; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split > header p { color: var(--muted); }

/* definition-style feature list */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 700 1.08rem var(--head); }
.facts dd { margin: 0; color: var(--muted); }

/* real sequence: numbering is meaningful here */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 800 2rem var(--head); color: var(--blue); line-height: 1; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

/* status legend */
.legend { display: grid; gap: 14px; margin-top: 8px; }
.legend-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.legend-row strong { display: block; font-family: var(--head); }
.legend-row span { color: var(--muted); font-size: .96rem; }
.bars.big { height: 28px; gap: 3px; flex: none; }
.bars.big i { width: 7px; }
.bars.big i:nth-child(1) { height: 9px; } .bars.big i:nth-child(2) { height: 14px; } .bars.big i:nth-child(3) { height: 21px; } .bars.big i:nth-child(4) { height: 28px; }
@media (prefers-color-scheme: dark) { .bars.big:not(.on) i { background: #34477D; } }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.1rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* cta band */
.cta { background: linear-gradient(180deg, #0B2A7A, #07173F); color: #fff; padding-block: 72px; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta p { color: #CFDDFB; margin: 8px 0 0; }
.cta .btn { background: #fff; color: #0B3FB0; }
.cta .btn:hover { background: #E4EDFF; }

/* inner pages */
.page-head { padding-block: 64px 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 1.15rem; }
.prose { padding-block: 48px 90px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }
.callout { background: var(--tint); border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.mail-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.mail-list li { margin: 0; }
.mail-list a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; }
.mail-list a span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.mail-list a:hover { border-color: var(--blue); }
.spec { display: grid; grid-template-columns: 170px 1fr; margin: 2em 0; }
.spec dt, .spec dd { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.spec dt { font-weight: 600; }
.spec dd { color: var(--muted); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 60px 20px; }
.notfound h1 { font-size: clamp(4rem, 14vw, 8rem); margin: 0; color: var(--blue); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 520px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-block: 48px 56px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
  .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
  section.block { padding-block: 60px; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .spec dd { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
