:root {
  --navy: #04162e;
  --navy-soft: #082443;
  --blue: #0aaef0;
  --cyan: #28d5f2;
  --ink: #122235;
  --muted: #617082;
  --paper: #f3f7fa;
  --white: #ffffff;
  --line: #d9e3ea;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.language-pending body { opacity: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 160ms ease;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.hero-shell {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, rgba(4,22,46,.98) 0%, rgba(4,22,46,.92) 48%, rgba(4,22,46,.4) 100%);
  z-index: 1;
}
.hero-shell::after {
  position: absolute;
  right: -3%;
  top: 50%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  content: "";
  background: url("assets/orvia-vpn-logo.webp") center / contain no-repeat;
  transform: translateY(-46%);
  opacity: .76;
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  min-height: 76px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; }
.brand img { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 24px; font-size: .9rem; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--cyan); }

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(78svh - 76px);
  margin: 0 auto;
  padding: 70px 0 100px;
}
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 15px; color: var(--cyan); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .98; letter-spacing: 0; }
.hero .lead { max-width: 620px; margin: 24px 0 0; color: #cbd7e2; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 780;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { border-color: var(--cyan); color: var(--navy); background: var(--cyan); }
.button-secondary { color: var(--white); background: rgba(4,22,46,.7); }
.button-dark { border-color: var(--navy); color: var(--white); background: var(--navy); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); color: var(--white); background: #061b35; }
.trust-strip div { padding: 24px 30px; border-right: 1px solid #183756; }
.trust-strip div:last-child { border-right: 0; }
.trust-strip span { display: block; color: var(--cyan); font-size: .72rem; font-weight: 820; text-transform: uppercase; }
.trust-strip strong { display: block; margin-top: 6px; font-size: 1rem; }

.section { padding: 92px 0; }
.section.white { background: var(--white); }
.section.dark { color: var(--white); background: var(--navy); }
.section-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: .8fr 1fr; gap: 48px; align-items: end; margin-bottom: 46px; }
.section-heading h2, .support-band h2 { margin: 0; font-size: 2.5rem; line-height: 1.12; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.dark .section-heading > p:last-child { color: #b8c8d8; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 260px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card span { display: block; color: #058fc8; font-size: .78rem; font-weight: 850; }
.feature-card h3 { margin: 48px 0 10px; font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--muted); }

.flow { display: grid; grid-template-columns: .8fr 1fr; gap: 70px; align-items: start; }
.flow h2 { margin: 0; font-size: 2.55rem; line-height: 1.12; }
.flow-copy > p:last-child { color: #b8c8d8; }
.flow-list { border-top: 1px solid #24425f; }
.flow-row { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid #24425f; }
.flow-row span { color: var(--cyan); font-weight: 800; }
.flow-row strong { font-size: 1.05rem; }

.privacy-band { display: grid; grid-template-columns: .85fr 1fr; gap: 70px; align-items: start; }
.privacy-band h2 { margin: 0; font-size: 2.45rem; line-height: 1.12; }
.privacy-band p { margin-top: 0; color: var(--muted); }
.text-link { color: #057fac; font-weight: 800; text-underline-offset: 4px; }

.support-band { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; }
.support-band p { max-width: 690px; color: var(--muted); }

.site-footer { color: #aab9c7; background: #031126; border-top: 1px solid #18334f; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 34px 0; font-size: .84rem; }
.footer-inner strong { display: block; margin-bottom: 5px; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

.motion-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .section-heading, .flow, .privacy-band { grid-template-columns: 1fr; gap: 22px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero-shell::after { right: -28%; opacity: .35; }
}

@media (max-width: 680px) {
  .site-header { flex-wrap: wrap; align-content: center; gap: 8px; width: calc(100% - 32px); min-height: 102px; padding: 10px 0 12px; }
  .brand { width: 100%; }
  .nav { width: 100%; flex-wrap: wrap; gap: 5px 17px; font-size: .78rem; }
  .hero-shell { min-height: 78svh; }
  .hero { width: calc(100% - 32px); min-height: calc(78svh - 102px); padding: 50px 0 76px; }
  .hero h1 { font-size: 3.25rem; }
  .hero .lead { font-size: 1rem; }
  .hero-shell::after { right: -52%; width: 118vw; opacity: .28; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid #183756; }
  .section { padding: 66px 0; }
  .section-inner { width: calc(100% - 32px); }
  .section-heading h2, .support-band h2, .flow h2, .privacy-band h2 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 30px; }
  .support-band, .footer-inner { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 32px); }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .button, .motion-ready [data-reveal] { transition: none; }
}
