/* Self-hosted fonts (SIL OFL): no third-party requests. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --black: #0B0B0C;
  --graphite: #1C1C1F;
  --bone: #EDEDE8;
  --text-2: #B9B9BF;
  --text-3: #8E8E95;
  --accent: #FF6A1A;
  --accent-hover: #FF8040;

  /* Liquid glass surface */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(28, 28, 31, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --blur: saturate(160%) blur(22px);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.accent { color: var(--accent); }
.fine { font-size: 13px; color: var(--text-3); }
.link { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(237, 237, 232, 0.35); }
.link:hover { text-decoration-color: var(--bone); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bone); color: var(--black); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* Glass primitive */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* Ambient drops: soft blurred light behind the glass */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.drop { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: drift 24s var(--ease) infinite alternate; }
.drop-a { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle, rgba(255, 106, 26, 0.38), transparent 65%); }
.drop-b { width: 40vmax; height: 40vmax; right: -14vmax; top: 30vh; background: radial-gradient(circle, rgba(237, 237, 232, 0.14), transparent 65%); animation-delay: -8s; }
.drop-c { width: 34vmax; height: 34vmax; left: 20vw; bottom: -18vmax; background: radial-gradient(circle, rgba(255, 106, 26, 0.18), transparent 65%); animation-delay: -16s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }

/* Header: floating glass bar */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; }
.header-bar {
  width: min(1120px, 100%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  background: var(--glass-bg-strong);
}
.brand img { width: 88px; height: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; color: var(--text-2); transition: color .2s var(--ease); }
.nav a:hover { color: var(--bone); }
@media (max-width: 760px) { .nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #140700; box-shadow: 0 8px 24px rgba(255, 106, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-glass { background: var(--glass-bg); color: var(--bone); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(72px, 14vh, 140px) 0 clamp(64px, 10vh, 110px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); }
.pill strong { color: var(--bone); font-weight: 600; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18); }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); max-width: 17ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 2.3vw, 22px); color: var(--text-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(720px, 100%); }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, 0.07); }
.facts strong { font-size: 16px; }
.facts span { font-size: 13px; color: var(--text-3); }
@media (max-width: 560px) { .facts { gap: 8px; } .facts li { padding: 12px 8px; } .facts strong { font-size: 14px; } .facts span { font-size: 12px; } }

/* Sections */
.section { padding: clamp(64px, 11vh, 120px) 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 0 auto 44px; max-width: 680px; }
.section-head h2 { font-size: clamp(34px, 5.4vw, 60px); }
.sub { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }

/* Configurator */
.config { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 880px) { .config { grid-template-columns: minmax(0, 1fr); } }
.preview-card { position: sticky; top: 96px; border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 880px) { .preview-card { position: static; } }
.preview-stage {
  aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #26262A 0%, #121214 60%, #0B0B0C 100%);
  display: flex; align-items: center; justify-content: center;
}
.preview-stage svg { width: 86%; height: 86%; overflow: visible; }
.preview-card .fine { padding: 0 8px 4px; }

.config-form { border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 24px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, label { display: block; font-size: 14px; font-weight: 600; color: var(--bone); margin-bottom: 12px; padding: 0; }
legend span, .count { font-weight: 400; color: var(--text-3); }
.field { display: flex; flex-direction: column; }
input[type="text"], input[type="number"] {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 17px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }

/* Segmented control (Apple-style) */
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.segmented button {
  flex: 1 1 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); color: var(--bone); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }

/* Swatches: glossy drops */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35), inset 0 4px 6px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35), inset 0 4px 6px rgba(255, 255, 255, 0.35), 0 0 0 3px var(--black), 0 0 0 5px var(--bone); }
.warn { margin-top: 10px; font-size: 13px; color: #FFB48A; }

.stepper { display: flex; align-items: center; gap: 6px; padding: 4px; width: fit-content; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, 0.14); }
.stepper input { width: 72px; min-height: 44px; text-align: center; border: 0; background: transparent; padding: 0; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.total { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.total-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.total-value { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* Catalog */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 18px; border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); }
.card-visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px);
  background: radial-gradient(120% 90% at 50% 15%, #232327 0%, #111113 70%);
  display: flex; align-items: center; justify-content: center;
}
.card-visual svg { width: 42%; height: auto; opacity: 0.85; }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--bone);
  background: rgba(11, 11, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; flex-grow: 1; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card .desc { font-size: 14px; color: var(--text-3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-right: 4px; }
.card .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps h3 { font-size: 22px; letter-spacing: -0.025em; }
.steps p { color: var(--text-2); font-size: 16px; }

/* FAQ */
.faq { border-radius: var(--r-lg); padding: 6px 24px; }
.faq details + details { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 40px 22px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--text-2); font-size: 16px; }

/* CTA + footer */
.cta { border-radius: 36px; padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cta h2 { font-size: clamp(34px, 5.4vw, 60px); }
.site-footer { padding: 28px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* Graceful fallback when backdrop-filter is unavailable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn-glass, .tag { background: var(--graphite); }
}

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