/* VANDRIQ LTD — palette mirrored from Elyx VPN app theme
   (lib/presentation/theme/app_colors/app_colors.dart, dark scheme) */

@font-face {
  font-family: 'TildaSans';
  src: url('assets/fonts/TildaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'TildaSans';
  src: url('assets/fonts/TildaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'TildaSans';
  src: url('assets/fonts/TildaSans-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'TildaSans';
  src: url('assets/fonts/TildaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #1b1e26;
  --surface: #262930;
  --card: #313643;
  --accent: #305dff;
  --accent-soft: #3a70ed;
  --violet: #5e50ea;
  --indigo: #3457d6;
  --sky: #8ca9f7;
  --text: #ffffff;
  --text-muted: #626772;
  --error: #f15029;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(27, 30, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--sky), var(--violet) 55%, var(--indigo));
  display: grid;
  place-items: center;
  flex: none;
}

.logo__mark svg { width: 16px; height: 16px; }

.logo span.dim {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(48, 93, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(48, 93, 255, 0.45); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }

.btn--lg { padding: 15px 30px; font-size: 16px; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.burger span + span { margin-top: 5px; }

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

.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

/* mirrors AppGradients.splashGradient — radial, off-centre top-right */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 900px;
  background: radial-gradient(
    circle at 78% 12%,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(94, 80, 234, 0.55) 35%,
    rgba(52, 87, 214, 0.42) 52%,
    rgba(27, 30, 38, 0) 74%
  );
  pointer-events: none;
}

.hero__inner { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(140, 169, 247, 0.22);
  font-size: 13px;
  font-weight: 500;
  color: var(--sky);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(140, 169, 247, 0.18);
}

h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 26px 0 0;
  max-width: 15ch;
}

.grad-text {
  background: linear-gradient(100deg, var(--sky), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stat__num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-head { max-width: 62ch; margin-bottom: 48px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 12px 0 0;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Cards grid ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 169, 247, 0.3);
  background: var(--card);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(140, 169, 247, 0.18), rgba(94, 80, 234, 0.22));
  border: 1px solid rgba(140, 169, 247, 0.2);
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--sky); }

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Tech / protocols ---------- */

.tech {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tech ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.tech li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.74);
}

.tick {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(48, 93, 255, 0.15);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.tick svg { width: 11px; height: 11px; stroke: var(--sky); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.platform {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s, color 0.2s;
}
.platform:hover { border-color: rgba(140, 169, 247, 0.35); color: #fff; }
.platform svg { width: 26px; height: 26px; margin: 0 auto 12px; stroke: var(--sky); }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(38, 41, 48, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step__n {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
}
.step h3 { font-size: 17px; margin: 14px 0 8px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.58); line-height: 1.55; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% -20%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(94, 80, 234, 0.45) 34%,
    rgba(52, 87, 214, 0.32) 52%,
    rgba(38, 41, 48, 0) 76%
  );
  pointer-events: none;
}

.cta > * { position: relative; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
}
.cta .hero__cta { justify-content: center; }

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

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 56px 0 40px;
  margin-top: 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer li a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.footer li a:hover { color: #fff; }

.footer__about {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 40ch;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */

.legal {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.legal::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
    circle at 78% 6%,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(94, 80, 234, 0.32) 34%,
    rgba(52, 87, 214, 0.24) 52%,
    rgba(27, 30, 38, 0) 72%
  );
  pointer-events: none;
}

.legal__inner { position: relative; max-width: 800px; }

.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 18px 0 0;
  max-width: none;
}

.legal__meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 800px;
  padding: 8px 0 80px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 48px 0 14px;
  scroll-margin-top: 96px;
}

.legal-body h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.68);
}

.legal-body p { margin: 0 0 14px; }

.legal-body ul { padding-left: 20px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 9px; }
.legal-body li::marker { color: var(--sky); }

.legal-body a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: #fff; }

.legal-body strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 40px 0 8px;
}

.toc h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}
.toc li { font-size: 14.5px; margin: 0; }
.toc li::marker { color: var(--text-muted); }
.toc a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.toc a:hover { color: var(--sky); }

.note {
  background: var(--card);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.note p { margin: 0; font-size: 14.5px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--sky); }
.back-link svg { width: 15px; height: 15px; stroke: currentColor; }

.footer__bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__bottom a:hover { color: var(--sky); }

.footer__legal { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .legal { padding: 44px 0 28px; }
  .toc { padding: 22px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .tech { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 24px 20px;
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .header__cta { display: none; }
  .burger { display: block; }
  .hero { padding: 70px 0 80px; }
  section { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 28px 40px; margin-top: 44px; }
  .cta { padding: 52px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}
