:root {
  --navy-950: #050b22;
  --navy-900: #070f2b;
  --navy-800: #0b1c46;
  --ink: #12203d;
  --muted: #5f6d86;
  --line: #e6ecf5;
  --surface: #ffffff;
  --tint: #f4f8ff;
  --blue: #2f7ff0;
  --cyan: #5fd0ff;
  --violet: #8b6cff;
  --radius: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.accent {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 11, 34, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.site-header nav a { color: #c9d4ee; text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: #fff; }
.site-header .nav-cta {
  color: #fff; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.site-header .nav-cta:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(63, 140, 255, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(139, 108, 255, 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-800));
}
.starfield {
  position: absolute; inset: 0; opacity: 0.8;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #bcdcff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 200px 150px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #d8c9ff 50%, transparent 51%);
  background-size: 240px 220px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.9; } }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  min-height: min(720px, 92vh); padding-block: 72px 96px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: #cfe6ff; background: rgba(95, 208, 255, 0.1); border: 1px solid rgba(95, 208, 255, 0.28);
}

.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.045em; }
.lede { max-width: 520px; margin: 24px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: #b9c6e4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none; transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(100deg, #2f8df6, #6a5cf0); box-shadow: 0 10px 30px rgba(63, 120, 255, 0.4); }
.btn-ghost { color: #e3ebff; border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-light { color: var(--navy-800); background: #fff; }

.hero-art { justify-self: end; width: min(100%, 540px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(20, 60, 160, 0.45)); }
.orbit-line { fill: none; stroke: rgba(170, 200, 255, 0.22); stroke-width: 1.2; stroke-dasharray: 3 7; }
.moon circle { filter: drop-shadow(0 0 10px rgba(255, 140, 195, 0.75)); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 640px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.card {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 50, 110, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 50, 110, 0.1); }
.icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
  color: var(--blue); background: linear-gradient(135deg, #e7f4ff, #efeaff);
}
.card h3 { margin-top: 20px; font-size: 18px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.next { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.next-logo { width: clamp(88px, 12vw, 140px); height: auto; filter: drop-shadow(0 16px 30px rgba(47, 127, 240, 0.3)); }
.next p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }

.contact-card {
  text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(139, 108, 255, 0.45), transparent 60%),
    radial-gradient(50% 100% at 10% 100%, rgba(95, 208, 255, 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy-900), #16307a);
}
.contact-card h2 { margin-inline: auto; }
.contact-card p { margin: 12px 0 28px; color: #c3cfeb; font-size: 17px; }

/* Products */
kbd {
  display: inline-block; padding: 1px 6px; border-radius: 6px; font: 600 0.85em/1.4 var(--font);
  background: var(--tint); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink);
}
code { font-size: 0.9em; padding: 1px 5px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); overflow-wrap: anywhere; }

.product-card {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 4vw, 48px);
  margin-top: 40px; padding: clamp(16px, 2.4vw, 24px); border-radius: 28px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(20, 50, 110, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card + .product-card { margin-top: 24px; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(20, 50, 110, 0.14); }
.product-card-shot { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.product-card-body { padding: 8px 8px 8px 0; }
.product-card-body > p { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.product-title { display: flex; align-items: center; gap: 16px; }
.product-title img { flex: none; border-radius: 14px; }
.product-title-sm h3 { font-size: 22px; }
.product-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.product-link { display: inline-block; margin-top: 20px; font-weight: 650; color: var(--blue); }

.product-hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 56px);
  padding-block: 64px 80px;
}
.product-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; }
.product-shot { margin: 0; }
.product-shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px rgba(0, 10, 40, 0.55); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 50, 110, 0.07); }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

.install { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 18px 48px; font-size: 17px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #2f8df6, #6a5cf0);
}
.steps a { color: var(--blue); font-weight: 600; }
.note { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.privacy-card:hover { transform: none; }

@media (max-width: 820px) {
  .product-card, .product-hero-inner, .install { grid-template-columns: 1fr; }
  .product-card-body { padding: 0 4px 8px; }
  .product-hero-inner { padding-block: 48px 64px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .product-title img { width: 48px; height: 48px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.brand-small { color: var(--muted); gap: 10px; font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* Legal pages */
.legal-hero {
  color: #fff; padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(50% 120% at 90% 0%, rgba(232, 85, 154, 0.22), transparent 60%),
    radial-gradient(60% 120% at 10% 100%, rgba(63, 140, 255, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-800));
}
.legal-hero .eyebrow { color: var(--cyan); }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; }
.legal-meta { margin: 14px 0 0; color: #b9c6e4; font-size: 15px; }

.legal-layout {
  display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.legal-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.legal-toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-toc a { padding: 6px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.legal-body section { scroll-margin-top: 96px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-body h2 { font-size: 24px; margin-bottom: 12px; }
.legal-body h3 { font-size: 17px; margin: 20px 0 6px; }
.legal-body p, .legal-body li { color: #3d4a63; font-size: 16px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--blue); }

.footer-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-toc p { width: 100%; }
  .legal-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
}

/* Responsive */
@media (max-width: 960px) {
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 64px; min-height: 0; }
  .hero-art { order: -1; justify-self: center; width: min(78%, 340px); margin-bottom: 4px; }
}
@media (max-width: 560px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 22px; }
  .values { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
