/* Starward VPN — starwardvpn.com
   Idea: navigate by the stars. Deep space, the app's own neon shield at the centre of seven orbiting
   server "stars", a real star chart of the server cities. Palette taken from the app's code
   (#635BFF violet, #3CA7FF blue, #5BE1B2 mint, #06070E space). Seravek ships with macOS and iOS. */

:root {
  --space: #06070E;
  --space-2: #0B0D1A;
  --card: #0E1020;
  --ink: #F3F4FA;
  --ink-2: #B7BBD0;
  --muted: #8A90A2;
  --violet: #635BFF;
  --violet-2: #8B5CFF;
  --lavender: #B9B5FF;
  --blue: #3CA7FF;
  --mint: #5BE1B2;
  --line: rgba(185, 181, 255, .16);
  --font: Seravek, "Gill Sans Nova", "Gill Sans", Ubuntu, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --grad: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--violet-2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--space); }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.65 var(--font);
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(99, 91, 255, .30), transparent 70%),
    radial-gradient(700px 420px at 8% 12%, rgba(60, 167, 255, .16), transparent 70%),
    url(/assets/stars.svg) 0 0 / 400px 400px repeat,
    var(--space);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lavender); text-underline-offset: 3px; text-decoration-color: rgba(185, 181, 255, .45); }
a:hover { color: #FFFFFF; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(99, 91, 255, .55); color: #FFFFFF; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 14px; background: var(--violet); color: #FFFFFF; border-radius: 8px; }
.skip:focus { left: 12px; }

h1, h2, h3, .h3 { margin: 0 0 .5em; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3, .h3 { font-size: 22px; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 12.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lavender);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(91, 225, 178, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 225, 178, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(91, 225, 178, 0); } }
.glow { background: linear-gradient(100deg, #7CC8FF, var(--lavender) 45%, #A78BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 15.5px/1 var(--font); text-decoration: none; letter-spacing: .01em;
  transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-primary { background: var(--grad); color: #FFFFFF; box-shadow: 0 10px 30px -10px rgba(99, 91, 255, .8); }
.btn-primary:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(99, 91, 255, .95); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { color: #FFFFFF; border-color: rgba(185, 181, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-soon { border: 1px dashed rgba(185, 181, 255, .45); color: var(--lavender); background: rgba(99, 91, 255, .10); cursor: default; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: rgba(6, 7, 14, .72); }
@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .bar { background: rgba(6, 7, 14, .55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.bar-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(185, 181, 255, .25), 0 6px 18px -6px rgba(99, 91, 255, .9); }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.brand-name span { color: var(--lavender); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); font-size: 15.5px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #FFFFFF; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav a:last-child { border-bottom: 0; }
  .no-js .bar-row { flex-wrap: wrap; padding: 10px 0; }
  .no-js .site-nav { flex-wrap: wrap; gap: 10px 18px; }
}

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.lead { max-width: 34em; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font: 600 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 17px; }
.hero-art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; aspect-ratio: 1; }
.orbit { width: 100%; height: 100%; overflow: visible; }
.hero-icon {
  position: absolute; top: 50%; left: 50%; width: 31%; height: auto; transform: translate(-50%, -50%);
  border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(185, 181, 255, .35), 0 0 60px rgba(99, 91, 255, .55), 0 0 140px rgba(60, 167, 255, .25);
}
.orb-glow { opacity: .9; }
.orb-path { fill: none; stroke-width: 1.3; opacity: .55; }
.orb-comet { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 2.5 97.5; opacity: .9; animation: comet 11s linear infinite; }
@keyframes comet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.orb-halo { fill: rgba(99, 91, 255, .32); }
.orb-star { fill: #FFFFFF; }
.orb-code { fill: var(--lavender); font: 600 13px/1 var(--mono); letter-spacing: .12em; }

/* Sections */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-tight { padding-top: 40px; }
.section-band { background: linear-gradient(180deg, rgba(14, 16, 32, 0), rgba(14, 16, 32, .9) 18%, rgba(14, 16, 32, .9) 82%, rgba(14, 16, 32, 0)); }
.section-lead { max-width: 40em; font-size: 19px; color: var(--ink-2); }
.panel, .feature, .map-card, .launch, .contact-card, .faq details {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(140deg, rgba(60, 167, 255, .45), rgba(139, 92, 255, .25) 50%, rgba(185, 181, 255, .10)) border-box;
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; padding: 0; list-style: none; }
.feature { padding: 28px 26px 24px; border-radius: 22px; }
.feature-icon { width: 46px; height: 46px; margin-bottom: 18px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(60, 167, 255, .55)); }
.feature p { margin: 0; color: var(--ink-2); }

/* Phone mockup */
.screen-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.phone { width: 300px; padding: 10px; border-radius: 50px; background: #11121A; box-shadow: 0 0 0 1px rgba(185, 181, 255, .2), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(99, 91, 255, .5); }
.phone-screen { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 14px 18px 22px; border-radius: 40px; background: var(--space); text-align: center; }
.phone-status { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; font: 600 12.5px/1 var(--font); color: #FFFFFF; }
.phone-island { width: 84px; height: 24px; border-radius: 14px; background: #000000; }
.phone-bars { width: 24px; height: 11px; border: 1.5px solid #FFFFFF; border-radius: 3px; position: relative; }
.phone-bars::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #FFFFFF; border-radius: 1px; }
.phone-art { width: 100%; height: auto; border-radius: 18px; margin-bottom: 14px; }
.phone-title { margin: 0 0 6px; font-size: 26px; font-weight: 600; line-height: 1.1; }
.phone-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone-sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.phone-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.phone-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(185, 181, 255, .3); }
.phone-dots span.on { width: 18px; background: var(--lavender); }
.phone-btn { display: block; width: 100%; padding: 13px 0; border-radius: 16px; background: var(--grad); color: #FFFFFF; font-weight: 600; font-size: 15px; }
.screen-copy p { color: var(--ink-2); }
.ticks { margin: 0 0 22px; padding: 0; list-style: none; }
.ticks li { position: relative; margin-bottom: 10px; padding-left: 32px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(91, 225, 178, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235BE1B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.link-arrow { font-weight: 600; color: #FFFFFF; text-decoration: none; }
.link-arrow::after { content: " \2192"; color: var(--blue); }
.link-arrow:hover { color: var(--lavender); }

/* Locations */
.map-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; margin-top: 34px; align-items: start; }
.map-card { margin: 0; padding: 18px 18px 14px; border-radius: 24px; }
.map-card figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.starmap { width: 100%; height: auto; }
.sm-grid { stroke: rgba(185, 181, 255, .10); stroke-width: 1; }
.sm-equator { stroke: rgba(91, 225, 178, .32); stroke-dasharray: 4 6; }
.sm-deg { fill: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .06em; }
.sm-dust { fill: rgba(230, 233, 255, .45); }
.sm-link { stroke: rgba(139, 92, 255, .6); stroke-width: 1.3; }
.sm-halo { fill: rgba(60, 167, 255, .22); }
.sm-star { fill: #FFFFFF; }
.sm-code { fill: #E6E9FF; font: 600 12px/1 var(--mono); letter-spacing: .1em; }
.nodes { margin: 0; padding: 0; list-style: none; }
.nodes li { display: grid; grid-template-columns: 3.4em 1fr; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.nodes li:first-child { border-top: 1px solid var(--line); }
.nd-code { grid-row: span 2; font: 700 13px/1.9 var(--mono); letter-spacing: .1em; color: var(--lavender); }
.nd-city { font-weight: 600; }
.nd-city small { margin-left: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }
.nd-coord { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }

/* Launch band */
.launch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 30px clamp(22px, 4vw, 40px); border-radius: 28px; }
.launch-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 40px rgba(99, 91, 255, .5); }
.launch h2 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 32px); }
.launch p { margin: 0; color: var(--ink-2); }

/* Documents */
.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.doc-hero .lead { max-width: 42em; }
.doc-date { display: inline-block; margin: 4px 0 0; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(91, 225, 178, .4); color: var(--mint); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 44px 0 88px; }
.doc-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; }
.doc-nav-title { margin: 0 0 10px; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.doc-nav ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.doc-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.doc-nav a:hover { color: #FFFFFF; border-left-color: var(--violet); }
.doc { max-width: 46em; color: #DDE0EC; }
.doc h2 { margin: 50px 0 14px; padding-bottom: 10px; font-size: 27px; color: #FFFFFF; background: linear-gradient(90deg, var(--violet), rgba(60, 167, 255, 0)) 0 100% / 120px 2px no-repeat; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 24px 0 6px; font-size: 19px; color: #FFFFFF; }
.stop { display: block; width: max-content; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(99, 91, 255, .18); color: var(--lavender); font: 600 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--lavender); }
.doc ol.alpha { list-style: lower-alpha; }
.doc strong { color: #FFFFFF; }
.doc address { padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.apple { position: relative; padding: 14px 18px 14px 18px; border-radius: 14px; background: rgba(60, 167, 255, .07); border: 1px solid rgba(60, 167, 255, .22); }
.apple span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(60, 167, 255, .2); color: #9ED3FF; font: 600 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.timeline { margin: 10px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.timeline div { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; padding: 12px 18px; background: var(--card); border-top: 1px solid var(--line); }
.timeline div:first-child { border-top: 0; }
.timeline dt { color: #FFFFFF; }
.timeline dd { margin: 0; color: var(--ink-2); }

/* Support */
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.faq details { margin-bottom: 12px; border-radius: 18px; }
.faq summary { position: relative; padding: 18px 54px 18px 22px; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--mono); color: var(--lavender); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.contact-card { position: sticky; top: 96px; padding: 26px 26px 18px; border-radius: 22px; }
.contact-card p { color: var(--ink-2); }
.small { font-size: 14px; color: var(--muted); }

/* 404 */
.lost { padding: 90px 0 120px; text-align: center; }
.lost-inner { display: flex; flex-direction: column; align-items: center; }
.lost-code { margin: 0; font: 700 clamp(110px, 22vw, 220px)/1 var(--font); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(99, 91, 255, .5)); }
.lost .hero-actions { justify-content: center; }

/* Footer */
.foot { margin-top: 20px; border-top: 1px solid var(--line); background: rgba(6, 7, 14, .85); font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 44px 0 26px; }
.brand-foot { margin-bottom: 14px; }
.brand-foot .brand-icon { width: 36px; height: 36px; }
.foot address { margin: 0 0 10px; }
.foot-title { margin: 6px 0 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: 9px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding: 18px 0 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .screen-grid, .map-grid, .support-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 470px; }
  .screen-grid .phone { margin-inline: auto; }
  .features { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .doc-nav, .contact-card { position: static; max-height: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: min(1160px, 100% - 28px); }
  .hero { padding-top: 26px; }
  .launch { grid-template-columns: 1fr; text-align: left; }
  .timeline div { grid-template-columns: 1fr; gap: 2px; }
  .phone { width: 270px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-comet, .pulse { animation: none; }
  .btn { transition: none; }
}
@media print {
  .bar, .foot, .doc-nav, .skip { display: none; }
  body { background: #FFFFFF; color: #000000; }
  .doc, .doc h2, .doc h3, .doc strong { color: #000000; }
  .doc-layout { display: block; }
}
