/* Vaydence marketing site — brand "Mist" (D-027, docs/11-brand.md)
   Paper #F4F3EF · Ink #17191E · Graphite #5C6069 · Cobalt #2B59F5 (the only accent) · Amber #B45309 (faults only).
   Glass tiles, no borders, no lines. (Variable names --green/--mist kept so older rules still work: --green is cobalt, --mist is "no line".) */
:root {
  --paper: #f4f3ef;
  --white: rgba(255, 255, 255, 0.55);
  --field: rgba(255, 255, 255, 0.62);
  --graphite: #17191e;
  --slate: #5c6069;
  --mist: transparent;
  --band: rgba(43, 89, 245, 0.10);
  --green: #2b59f5;
  --green-dark: #1f44c7;
  --glass-blur: blur(40px) saturate(180%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 24px 60px rgba(60, 54, 40, 0.10);
  --amber: #b45309;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--paper); background-image: radial-gradient(620px 620px at 78% -8%, rgba(43, 89, 245, 0.22), transparent 70%), radial-gradient(560px 560px at 96% 92%, rgba(190, 182, 166, 0.45), transparent 70%), radial-gradient(420px 420px at 40% 105%, rgba(120, 150, 255, 0.16), transparent 70%); background-attachment: fixed; color: var(--graphite); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s; cursor: pointer; font-family: var(--body); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); }
.btn-ghost { color: var(--graphite); background: var(--white); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 239, 0.7); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--mist); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--graphite); }
.actions { display: flex; gap: 10px; margin-left: 12px; }

/* Hero */
.hero { padding: 88px 0 40px; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); line-height: 0.98; font-weight: 700; max-width: 11ch; }
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--slate); max-width: 38ch; margin: 28px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.trend { margin-top: 64px; margin-bottom: 0; }
.trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend figcaption { font-size: 13px; color: var(--slate); margin-top: 8px; }
.band { fill: var(--band); }
.band-label { font: 500 13px var(--body); fill: var(--green); }
.grid line { stroke: var(--mist); stroke-width: 1; }
.seg { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
.seg.fault { stroke: var(--amber); }
.seg-1 { animation-delay: .2s; }
.seg-2 { animation-delay: 1.2s; animation-duration: .9s; }
.seg-3 { animation-delay: 2.0s; animation-duration: 1.3s; }
.dot { fill: var(--white); stroke: var(--green); stroke-width: 3.5; }
.dot-fault { stroke: var(--amber); }
.ev-title { font: 600 17px var(--display); fill: var(--graphite); }
.ev-sub { font: 400 14px var(--body); fill: var(--slate); }
.event { opacity: 0; animation: appear .5s ease-out forwards; }
.ev-1 { animation-delay: 1.7s; }
.ev-2 { animation-delay: 2.3s; }
.ev-3 { animation-delay: 3.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections */
section { scroll-margin-top: 80px; }
.how, .platform, .integrators, .access { padding: 104px 0; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; font-weight: 700; max-width: 20ch; }
.section-lede { color: var(--slate); font-size: 19px; max-width: 46ch; margin: 18px 0 0; }

.how { background: transparent; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { display: none; content: ""; position: absolute; top: 19px; left: 20px; right: calc((100% - 96px) / 4 - 20px); height: 3px; background: var(--green); border-radius: 3px; }
.steps li { position: relative; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); border: 0; font: 700 16px var(--display); color: #fff; box-shadow: 0 8px 22px rgba(43, 89, 245, 0.28); position: relative; }
.steps h3 { font-size: 22px; margin-top: 20px; }
.steps p { color: var(--slate); margin: 8px 0 0; font-size: 16px; }

.platform-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.features { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.features div { padding: 22px 0; border-top: 1px solid var(--mist); }
.features dt { font: 600 19px var(--display); }
.features dd { margin: 6px 0 0; color: var(--slate); font-size: 16px; }

.integrators { background: transparent; color: var(--graphite); }
.integrators h2 { max-width: 22ch; }
.integrators p { color: var(--slate); font-size: 20px; max-width: 52ch; margin: 24px 0 0; }

.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; background: var(--white); border: 0; border-radius: 28px; padding: 32px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 16px var(--body); color: var(--graphite); background: var(--field); border: 0; border-radius: 16px; padding: 11px 12px; min-height: 46px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(43, 89, 245, .28); }
.form .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

.footer { border-top: 1px solid var(--mist); padding: 28px 0; font-size: 14px; color: var(--slate); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .actions { margin-left: auto; }
  .platform-grid, .access-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .steps, .features, .form { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .how, .platform, .integrators, .access { padding: 72px 0; }
  .trend { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .trend-svg { min-width: 660px; }
  .ev-sub { display: none; }
  .ev-title { font-size: 26px; }
  .band-label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg, .event { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Products carousel */
.products { --c-alarm: #2b59f5; --c-primer: #2b59f5; --c-link: #2b59f5; --c-graphics: #2b59f5; --c-analytics: #2b59f5; --c-ai: #2b59f5; --accent: #2b59f5;
  --p-bg: transparent; --p-card: rgba(255, 255, 255, 0.55); --p-line: transparent; --p-fg: #17191e; --p-quiet: #5c6069;
  background: var(--p-bg); color: var(--p-fg); padding: 96px 0 104px; overflow: hidden; }
.products-inner { display: grid; gap: 20px; }
.products-head { text-align: center; display: grid; justify-items: center; }
.products .section-lede { color: var(--p-quiet); }
.gl-stage { position: relative; height: 470px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
.gl-stage:active { cursor: grabbing; }
.gl-floor { position: absolute; left: 50%; top: 58%; width: min(980px, 98%); height: 250px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--p-line);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%); pointer-events: none; }
.products .tile { border: 0 !important; position: absolute; left: 50%; top: 50%; width: 220px; height: 236px; margin: -118px 0 0 -110px; border-radius: 28px; background: var(--p-card); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow);
  border: 1px solid var(--p-line); color: var(--p-fg); display: grid; justify-items: center; align-content: center; gap: 4px; padding: 14px; cursor: pointer; will-change: transform, opacity; font-family: var(--body); }
.products .tile.front { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 28px 60px -18px rgba(43, 89, 245, 0.35); }
.products .tile svg { width: 160px; height: 160px; display: block; }
.products .tile .name { font: 600 15px var(--display); }
.gl-controls { display: flex; justify-content: center; align-items: center; gap: 14px; }
.gl-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--p-card); color: var(--p-fg); border: 0; box-shadow: var(--glass-shadow); font-size: 18px; cursor: pointer; }
.gl-arrow:hover { color: var(--accent); }
.gl-dots { display: flex; gap: 8px; }
.gl-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(23, 25, 30, 0.18); cursor: pointer; }
.gl-dots button[aria-current="true"] { background: var(--accent); width: 26px; border-radius: 5px; }
.gl-panel { background: var(--p-card); border: 0; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); border-radius: 28px; padding: 28px 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; transition: opacity .25s; }
.gl-panel.fade { opacity: 0; }
.gl-panel > div { min-width: 0; display: grid; gap: 10px; align-content: start; }
.gl-panel .kind { font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gl-panel h2 { font-size: 28px; line-height: 1.2; max-width: none; }
.gl-panel p { margin: 0; color: var(--p-quiet); }
.gl-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; }
.gl-panel li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.gl-panel li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.gl-panel .cta { margin-top: 8px; }
.products .btn-solid { background: var(--accent); color: #fff; }
.products .btn-solid:hover { background: var(--accent); filter: brightness(1.1); }
.products :focus-visible { outline-color: var(--accent); }
@media (max-width: 720px) {
  .products { padding: 72px 0; }
  .gl-panel { grid-template-columns: 1fr; padding: 22px; }
  .gl-stage { height: 370px; }
  .products .tile { width: 180px; height: 196px; margin: -98px 0 0 -90px; }
  .products .tile svg { width: 128px; height: 128px; }
}
