/* ODVPN — marketing site
   Palette, type, and layout per brand/STYLE_GUIDE.md.
   Blue gradient is the brand's home; light sections breathe with white. */

:root {
  /* Core brand tokens (STYLE_GUIDE.md §2) */
  --royal: #1E5AD6;
  --sky: #3E82EE;
  --horizon: #7FB6F7;
  --deep: #0F2E6B;
  --midnight: #0A1D47;
  --shield: #FFFFFF;
  --cloud: #F4F7FB;
  --signal: #34C759;
  --signal-dark: #30D158;
  --idle: #8E9AAF;
  --alert: #E5503C;
  --gold: #F5A623;

  /* Semantic tokens — light mode defaults (body sections) */
  --bg: var(--cloud);
  --bg-card: #FFFFFF;
  --text: #1A2332;
  --text-2: #5A6B7A;
  --link: var(--royal);
  --accent: var(--royal);
  --accent-hover: #1549B5;
  --accent-ink: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --hairline: rgba(26, 35, 50, 0.1);
  --glow-opacity: 0.7;

  /* Typography (STYLE_GUIDE.md §3) */
  --font-display: "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--midnight);
    --bg-card: rgba(15, 46, 107, 0.4);
    --text: #F0F4F8;
    --text-2: #8E9AAF;
    --link: var(--horizon);
    --accent: var(--sky);
    --accent-hover: var(--horizon);
    --accent-ink: #0A1D47;
    --surface-elevated: #162240;
    --hairline: rgba(240, 244, 248, 0.1);
    --glow-opacity: 0.9;
  }
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

::selection {
  background: var(--royal);
  color: #FFFFFF;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

/* ---------- Type Scale ---------- */

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 6px;
}

p {
  max-width: 65ch;
}

.lede {
  color: var(--text-2);
  font-size: 20px;
  line-height: 30px;
  max-width: 56ch;
}

.small {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 16px;
  background: rgba(244, 247, 251, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(10, 29, 71, 0.85);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-future {
  opacity: 0.5;
  pointer-events: none;
}

.btn-nav {
  font-size: 14px;
  padding: 10px 20px;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px) clamp(80px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
  /* Blue gradient background — the brand's signature */
  background: linear-gradient(135deg, var(--royal) 0%, var(--sky) 45%, var(--horizon) 100%);
  color: #FFFFFF;
}

/* Soft radial glow behind the hero content */
.hero::before {
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse 50% 60% at 50% 40%,
              rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  opacity: var(--glow-opacity);
  animation: sky-breathe 8s ease-in-out infinite alternate;
}

@keyframes sky-breathe {
  from { opacity: calc(var(--glow-opacity) * 0.85); }
  to   { opacity: var(--glow-opacity); }
}

.hero > .wrap {
  position: relative;
}

.hero-icon {
  margin-bottom: 28px;
}

.hero-icon img {
  width: 120px;
  height: 120px;
  border-radius: 22%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-inline: auto;
}

.hero h1 {
  color: #FFFFFF;
  max-width: 14ch;
  margin-inline: auto;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.85);
  margin: 20px auto 0;
  max-width: 48ch;
}

.hero-cta {
  margin-top: 36px;
}

.hero .btn-primary {
  background: #FFFFFF;
  color: var(--royal);
  font-size: 17px;
  padding: 18px 32px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
  background: #F0F4F8;
  color: var(--deep);
}

.hero-price {
  margin: 18px auto 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Device Mockup ---------- */

.hero-device {
  margin: clamp(48px, 7vw, 72px) auto 0;
  max-width: 320px;
}

.device-frame {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 28px 24px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-connected {
  background: var(--signal);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
  animation: pulse-green 3s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(52, 199, 89, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 14px rgba(52, 199, 89, 0.8); }
}

.status-label {
  font-weight: 600;
  font-size: 17px;
  color: #FFFFFF;
}

.device-region {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.region-flag {
  font-size: 20px;
}

.device-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.time-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.time-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.device-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ip-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.ip-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Features / Value Props ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.feature:hover {
  box-shadow: 0 8px 32px rgba(30, 90, 214, 0.08);
}

@media (prefers-color-scheme: dark) {
  .feature:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 18px;
}

.feature p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 25px;
}

@media (max-width: 719px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- How it works (Steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  list-style: none;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 20px;
}

.steps p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 25px;
  margin-top: 6px;
}

@media (max-width: 719px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---------- Privacy ---------- */

.privacy-list {
  list-style: none;
  margin-top: 36px;
  max-width: 72ch;
}

.privacy-list li {
  padding: 18px 0 18px 28px;
  position: relative;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 17px;
  line-height: 27px;
}

.privacy-list li:last-child {
  border-bottom: 1px solid var(--hairline);
}

/* Shield bullet */
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.privacy-list strong {
  color: var(--text);
  font-weight: 600;
}

.privacy-link {
  margin-top: 24px;
}

.privacy-link a {
  font-weight: 500;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  max-width: 720px;
}

.price-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 840px;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(30, 90, 214, 0.1);
}

@media (prefers-color-scheme: dark) {
  .price-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

.price-card-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-duration {
  font-size: 16px;
  color: var(--text-2);
  margin-top: 6px;
}

.price-per {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.price-notes {
  margin-top: 36px;
  max-width: 54ch;
}

.price-notes p {
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-2);
  line-height: 25px;
}

.price-notes strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 599px) {
  .price-grid,
  .price-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 400px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 24px;
  max-width: 72ch;
}

.faq details {
  border-top: 1px solid var(--hairline);
}

.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: color 0.15s;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 22px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 40px 56px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: baseline;
}

.site-footer .wordmark {
  font-size: 17px;
}

.site-footer .wordmark img {
  width: 24px;
  height: 24px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav a {
  font-size: 15px;
}

.footer-note {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  max-width: none;
}

/* ---------- Prose (privacy, future pages) ---------- */

.prose {
  max-width: 72ch;
  padding-block: clamp(48px, 7vw, 80px) clamp(64px, 9vw, 104px);
}

.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 24px;
  line-height: 32px;
  margin: 40px 0 12px;
}

.prose p,
.prose ul {
  margin-bottom: 16px;
  color: var(--text);
}

.prose ul {
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose .effective {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 36px 0 24px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before {
    animation: none;
  }

  .status-connected {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
