/* Glassy — site styles. Palette: white, black, navy (+ transparency). */

:root {
  --black: #000;
  --ink: #03060f;
  --ink-2: #060b1a;
  --navy-950: #040a1f;
  --navy-900: #071330;
  --navy-800: #0b1d4d;
  --navy-700: #12296a;
  --navy-600: #1a3a8f;
  --navy-300: #8fa3d6;
  --white: #fff;
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);

  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
strong { font-weight: 600; color: var(--text); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; line-height: 1.08; }
h2 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -0.035em; }
h3, .h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
::selection { background: rgba(255, 255, 255, 0.9); color: var(--navy-900); }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; justify-content: center; }
.muted { color: var(--text-3); }
.fine { font-size: 14px; color: var(--text-3); margin-top: 22px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--navy-900);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-light {
  background: var(--white); color: var(--navy-950);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -10px rgba(120, 150, 255, 0.45);
}
.btn-light:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 40px -10px rgba(140, 170, 255, 0.6); transform: translateY(-1px); }
.btn-glass {
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.btn-glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)); transform: translateY(-1px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: rgba(3, 6, 15, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--white); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .header-row { gap: 12px; height: 60px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-grid; place-content: center; gap: 6px; width: 42px; height: 42px;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .menu-toggle span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--white); transition: transform 0.3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(3, 6, 15, 0.92);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  body.menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .site-nav a { padding: 14px 0; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .header-cta { display: none; } .menu-toggle { margin-left: auto; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 72% 38%, rgba(26, 58, 143, 0.55), transparent 70%),
    radial-gradient(50% 60% at 15% 90%, rgba(11, 29, 77, 0.8), transparent 70%),
    var(--ink);
  cursor: crosshair;
}
.hero .anchor { position: absolute; top: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero--gl .hero-canvas { opacity: 1; }
.hero::after { /* fade into the next section */
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero-inner { position: relative; padding-top: 110px; padding-bottom: 110px; cursor: auto; pointer-events: none; }
.hero-copy { max-width: 600px; pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; margin-bottom: 26px;
  font-size: 13.5px; font-weight: 550; color: var(--text-2); letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 0 12px rgba(255, 255, 255, 0.8); }
.hero h1 { font-size: clamp(46px, 7.6vw, 92px); letter-spacing: -0.045em; line-height: 0.98; font-weight: 680; }
.glass-text {
  background: linear-gradient(100deg, #fff 0%, #fff 30%, #9fb3e8 55%, #fff 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 30px 0 0; list-style: none; font-size: 13.5px; color: var(--text-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.hero-hint {
  position: absolute; right: calc(var(--gutter) + 52px); bottom: 30px; margin: 0;
  font-size: 12.5px; color: var(--text-3); letter-spacing: 0.02em; pointer-events: none;
}
.hero-hint .h-touch { display: none; }
@media (hover: none) { .hero-hint .h-touch { display: inline; } .hero-hint .h-mouse { display: none; } }
.hero:not(.hero--gl) .hero-hint { display: none; }
.hero-hint { transition: opacity 0.4s; }
/* a calm entrance: the glass appears drop by drop (hero.js), the copy and buttons rise in */
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero--gl .eyebrow { animation: hero-rise 0.9s var(--ease) 0.1s both; }
.hero--gl h1 { animation: hero-rise 1s var(--ease) 0.2s both; }
.hero--gl .lede { animation: hero-rise 1s var(--ease) 0.32s both; }
.hero--gl .cta-row { animation: hero-rise 1s var(--ease) 0.44s both; }
.hero--gl .hero-meta { animation: hero-rise 1s var(--ease) 0.56s both; }
.hero--gl .hero-hint { animation: hero-rise 1s var(--ease) 1.4s both; }
@media (prefers-reduced-motion: reduce) {
  .hero--gl :is(.eyebrow, h1, .lede, .cta-row, .hero-meta, .hero-hint) { animation: none; }
}
.hero--still .hero-hint { opacity: 0; }
/* the copy is painted into the canvas (so the glass can bend it); the HTML stays for reading,
   selecting and assistive tech, but is not drawn twice */
.hero--text h1, .hero--text .lede, .hero--text .hero-meta { color: transparent; text-shadow: none !important; }
.hero--text .glass-text { background: none; animation: none; }
.hero--text .hero-meta li::before { background: transparent; }
.hero.is-grab, .hero.is-grab :is(.hero-inner, .hero-copy, h1, h1 *, .lede, .hero-meta, .hero-meta *) { cursor: grab; }
.hero.is-dragging, .hero.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.hero-pause {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .i-play, .hero-pause[data-state="paused"] .i-pause { display: none; }
.hero-pause[data-state="paused"] .i-play { display: block; }
.hero:not(.hero--gl) .hero-pause { display: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 40px; margin-left: -13px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* CSS fallback when WebGL 2 is missing */
.hero-fallback { display: none; position: absolute; inset: 0; z-index: -1; }
.hero--fallback .hero-fallback { display: block; }
.hero--fallback { cursor: auto; }
.fb-drop {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), inset 6px 8px 18px rgba(255, 255, 255, 0.18), inset -10px -14px 30px rgba(0, 0, 0, 0.35), 18px 24px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px) saturate(150%); backdrop-filter: blur(3px) saturate(150%);
  animation: float 16s ease-in-out infinite;
}
.d1 { width: 220px; height: 220px; left: 62%; top: 22%; }
.d2 { width: 140px; height: 140px; left: 80%; top: 52%; animation-delay: -5s; animation-duration: 19s; }
.d3 { width: 96px; height: 96px; left: 58%; top: 64%; animation-delay: -9s; animation-duration: 14s; }
.d4 { width: 64px; height: 64px; left: 76%; top: 16%; animation-delay: -3s; animation-duration: 21s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-24px, 18px); } 66% { transform: translate(18px, -14px); } }
@media (max-width: 860px) {
  .d1 { left: 50%; top: 66%; width: 160px; height: 160px; }
  .d2 { left: 12%; top: 74%; }
  .d3 { left: 72%; top: 82%; }
  .d4 { left: 30%; top: 64%; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-drop, .glass-text, .scroll-cue span { animation: none; }
}

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section-tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-300);
}
.sub { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 600px; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }

.card {
  position: relative; border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.card p { color: var(--text-2); margin-top: 10px; font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.pillar .icon svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ demo */
.section-demo { background: linear-gradient(180deg, var(--ink), var(--navy-950) 40%, var(--ink)); }
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px;
  padding: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px rgba(26, 58, 143, 0.6);
}
.demo-stage { position: relative; border-radius: 20px; overflow: hidden; background: var(--navy-900); aspect-ratio: 16 / 10; align-self: start; }
.demo-canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.demo-canvas.is-dragging { cursor: grabbing; }
.demo-canvas:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; border-radius: 20px; }
.demo-fallback { display: none; position: absolute; inset: 0; place-items: center; padding: 30px; text-align: center; color: var(--text-2); }
.demo--fallback .demo-fallback { display: grid; }
.demo--fallback .demo-canvas, .demo--fallback .demo-panel { opacity: 0.35; pointer-events: none; }
.demo-tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; pointer-events: none; }
.tag { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag-before { display: none; }
.demo--before .tag-before { display: inline-block; }
.demo-hint { position: absolute; right: 14px; top: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.6); pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

.demo-panel { display: flex; flex-direction: column; gap: 16px; padding: 8px 8px 8px 4px; min-width: 0; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-row-col { flex-direction: column; align-items: stretch; gap: 10px; }
.panel-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.panel-foot { margin-top: auto; padding-top: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--navy-950); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 0; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 550; cursor: pointer;
  color: var(--text-2); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--navy-950); box-shadow: none; }
.sliders { display: grid; gap: 9px; }
.slider { display: grid; grid-template-columns: 84px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.slider label { font-size: 13.5px; color: var(--text-2); }
.slider output { font-size: 12.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.slider input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--white) var(--p), rgba(255, 255, 255, 0.14) var(--p));
}
.slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--white); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.slider input[type="range"]:focus-visible { outline: none; }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform 0.25s var(--ease); }
.switch input:checked + .track { background: var(--navy-600); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--white); outline-offset: 2px; }
@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .demo-panel { padding: 6px 4px 4px; }
}
@media (max-width: 560px) {
  .demo { padding: 8px; border-radius: 24px; }
  .demo-stage { border-radius: 16px; aspect-ratio: 4 / 3.4; }
}

/* ------------------------------------------------------------------ features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > .card { grid-column: span 3; }
.bento .bento-light { grid-column: span 3; min-height: 300px; overflow: hidden; }
.bento .bento-glass { grid-column: span 3; }
.bento .bento-wide { grid-column: span 6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; position: relative; z-index: 1; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.bento-light h3, .bento-light p { max-width: calc(100% - 120px); position: relative; z-index: 1; }
.dial {
  position: absolute; right: 28px; top: 28px; width: 92px; height: 92px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 12px rgba(255, 255, 255, 0.025), inset 0 0 0 13px var(--line);
  opacity: 0.8;
}
.dial span { position: absolute; left: 50%; top: 50%; width: 46%; height: 2px; transform-origin: 0 50%; transform: rotate(-135deg); background: linear-gradient(90deg, transparent, var(--white)); }
.dial span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.45); }
.swatches { display: flex; gap: 10px; margin-top: 22px; }
.sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), inset 3px 4px 8px rgba(255, 255, 255, 0.25); }
.sw1 { background: rgba(255, 255, 255, 0.08); }
.sw2 { background: rgba(255, 255, 255, 0.45); }
.sw3 { background: rgba(26, 58, 143, 0.8); }
.sw4 { background: rgba(0, 0, 0, 0.75); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .card, .bento .bento-light, .bento .bento-glass { grid-column: span 2; }
  .bento > .card:nth-child(3), .bento > .card:nth-child(4) { grid-column: span 1; }
  .dial { width: 70px; height: 70px; right: 20px; top: 20px; }
  .bento-light h3, .bento-light p { max-width: calc(100% - 84px); }
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento > .card:nth-child(3), .bento > .card:nth-child(4) { grid-column: span 2; }
  .card { padding: 24px; }
}

/* ------------------------------------------------------------------ presets */
.preset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.preset {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px 18px; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s;
}
.preset:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(26, 58, 143, 0.8); }
.p-name { font-weight: 600; font-size: 16px; }
.p-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.35; }
.p-thumb { align-self: stretch; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 14px; background: var(--navy-900); }
.p-drop {
  --rim: 0.55; --fill: 0.06; --blur: 0px; --hi: 0.6;
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, var(--hi)) 0 10%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, var(--fill)), rgba(255, 255, 255, calc(var(--fill) + 0.08)) 100%),
    linear-gradient(135deg, var(--navy-600), var(--navy-900));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, var(--rim)), inset 4px 6px 12px rgba(255, 255, 255, 0.12), inset -6px -8px 14px rgba(0, 0, 0, 0.4), 6px 10px 20px rgba(0, 0, 0, 0.45);
}
.p-clear { --rim: 0.45; --hi: 0.5; }
.p-subtle { --rim: 0.25; --hi: 0.25; --fill: 0.02; }
.p-frosted { --fill: 0.22; --rim: 0.5; }
.p-crystal { --rim: 0.85; --hi: 0.9; }
.p-bold { --rim: 0.8; --hi: 0.75; --fill: 0.04; }
.p-bubble { --rim: 0.95; --hi: 0.95; --fill: 0.02; }
.p-pebble { --rim: 0.6; --fill: 0.12; }
.p-smoky { --rim: 0.45; --fill: 0; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.4) 0 10%, transparent 30%), linear-gradient(135deg, #10131c, #000); }
.p-ice { --rim: 0.7; --fill: 0.3; --hi: 0.7; }
@media (max-width: 980px) { .preset-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .preset-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .preset { padding: 16px; } }

/* ------------------------------------------------------------------ light sections */
.section-light { background: var(--white); color: var(--navy-950); color-scheme: light; }
.section-light .kicker { color: var(--navy-600); }
.section-light .sub, .section-light p { color: rgba(4, 10, 31, 0.68); }
.section-light strong { color: var(--navy-950); }
.section-light .fine { color: rgba(4, 10, 31, 0.55); }
.section-light :focus-visible { outline-color: var(--navy-700); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 32px; border-radius: var(--radius); background: #f3f5fa; box-shadow: inset 0 0 0 1px rgba(4, 10, 31, 0.06); }
.step h3 { margin-top: 26px; }
.step p { margin-top: 10px; font-size: 16px; }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 20px; font-weight: 650; color: var(--white);
  background: radial-gradient(circle at 32% 28%, var(--navy-600), var(--navy-900) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), inset 3px 4px 8px rgba(255, 255, 255, 0.2), 0 10px 24px -8px rgba(7, 19, 48, 0.6);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-top: 50px; border-top: 1px solid rgba(4, 10, 31, 0.1); }
.spec-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(4, 10, 31, 0.08); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: rgba(4, 10, 31, 0.68); text-align: right; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; gap: 10px; } .spec-list { grid-template-columns: 1fr; } }

.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.install { padding: 32px; border-radius: var(--radius); background: #f3f5fa; box-shadow: inset 0 0 0 1px rgba(4, 10, 31, 0.06); }
.install h3 { display: flex; align-items: center; gap: 10px; }
.install h3 svg { width: 22px; height: 22px; }
.install ol { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; color: rgba(4, 10, 31, 0.72); }
@media (max-width: 760px) { .install-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ pricing */
.section-pricing { background: radial-gradient(70% 60% at 50% 55%, rgba(18, 41, 106, 0.55), transparent 70%), var(--ink); overflow: hidden; }
.price-card {
  position: relative; max-width: 480px; margin: 0 auto; padding: 40px 36px 30px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 40px 120px -30px rgba(26, 58, 143, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
.price-glow { position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 163, 214, 0.35), transparent 65%); pointer-events: none; }
.price-top { position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-name { font-weight: 600; color: var(--text-2); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 68px; font-weight: 680; letter-spacing: -0.045em; line-height: 1; }
.price .cur { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.price-note { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.price-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; position: relative; }
.price-list li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15.5px; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 19px no-repeat;
}
@media (max-width: 480px) { .price-card { padding: 32px 22px 24px; } .price { font-size: 56px; } }

/* ------------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--text-2); }
.faq a { color: var(--white); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ final CTA + footer */
.final-cta { background: radial-gradient(60% 80% at 50% 100%, rgba(26, 58, 143, 0.5), transparent 70%), var(--ink); }
.final-cta h2 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.05em; }
.final-cta .sub { margin: 18px auto 0; }
.final-cta .cta-row { justify-content: center; }

.site-footer { padding: 48px 0 40px; background: var(--black); border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { margin-top: 30px; display: grid; gap: 8px; font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ dialog */
.dialog {
  width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px; color: var(--white);
  background: linear-gradient(180deg, rgba(20, 34, 80, 0.92), rgba(6, 11, 26, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 40px 120px rgba(0, 0, 0, 0.6);
}
.dialog::backdrop { background: rgba(0, 3, 12, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .dialog[open] { animation: none; } }
.dialog-inner { padding: 34px 30px 28px; }
.dialog h2 { font-size: 26px; letter-spacing: -0.025em; }
.dialog p { margin-top: 12px; color: var(--text-2); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dialog-drop {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.8) 0 9%, transparent 28%), linear-gradient(135deg, var(--navy-600), var(--navy-900));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), inset 4px 6px 12px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(26, 58, 143, 0.6);
}

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ small screens: hero copy over the glass */
@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: 100px; padding-bottom: 150px; }
  .lede, .hero-meta { text-shadow: 0 2px 18px rgba(3, 6, 15, 0.55); }
  .hero-hint { left: var(--gutter); right: auto; }
  .scroll-cue { display: none; }
}
@media (max-width: 420px) {
  .cta-row .btn { flex: 1 1 100%; }
}
