/* Rackifi — site styles. No framework, no web fonts: system stacks keep first paint instant. */

:root {
  --bg: #09090b;
  --bg-elev: #0f0f12;
  --card: #111114;
  --border: rgba(212, 212, 216, .12);
  --border-strong: rgba(212, 212, 216, .22);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #80808a;
  --gold: #e6b321;      /* sampled from the Rackifi logo */
  --gold-hi: #ffd257;
  --gold-lo: #c8920f;
  --green: #34d399;
  --amber: #fbbf24;
  --heart: #ff3d6e;
  --danger: #fb7185;
  --border-input: #5f5f65;  /* 3:1 against the panel and field fill (WCAG 1.4.11) */
  --grad: linear-gradient(120deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(230, 179, 33, .3); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-heading { color: var(--dim); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), scale .15s ease-out, background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn-primary { background: var(--grad); color: #111111; box-shadow: 0 8px 30px -10px rgba(230, 179, 33, .7); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(230, 179, 33, .85); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn-primary:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:not(:disabled):active { scale: .96; }
}

/* ---------- Header ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); }
/* Blur lives on a pseudo-element so the fixed mobile nav isn't trapped by backdrop-filter */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled::before {
  background: rgba(9, 9, 11, .74);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { display: block; width: auto; height: 44px; }
.footer-brand .brand img { height: auto; width: 240px; }
.tm { font-size: .5em; vertical-align: super; margin-left: 1px; color: var(--muted); font-weight: 500; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
}
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px var(--gutter) 40px;
  background: rgba(9, 9, 11, .97);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.site-nav a:not(.btn) { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
.site-nav .btn { margin-top: 20px; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 2px;
    padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .site-nav a:not(.btn) { padding: 8px 14px; font-size: .93rem; border: 0; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
  @media (hover: hover) { .site-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); } }
  .site-nav .btn { margin: 0 0 0 12px; }
  body.nav-open { overflow: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: clip;
}
/* Data-hall aisle, darkened behind the copy */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .aisle { width: 100%; height: 100%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0, transparent 22%),
    linear-gradient(180deg, rgba(9, 9, 11, .7) 0, transparent 18%),
    rgba(9, 9, 11, .72);
}
@media (min-width: 960px) {
  .hero-bg::after {
    background:
      linear-gradient(0deg, var(--bg) 0, transparent 18%),
      linear-gradient(180deg, rgba(9, 9, 11, .7) 0, transparent 16%),
      linear-gradient(90deg, var(--bg) 0, rgba(9, 9, 11, .94) 30%, rgba(9, 9, 11, .5) 55%, rgba(9, 9, 11, .08) 80%);
  }
}
.hero-inner { display: flex; align-items: center; min-height: clamp(560px, 80vh, 800px); padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { max-width: 660px; }

.console {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  max-width: 100%;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: rgba(9, 9, 11, .7);
  font: 500 .8rem/1.4 var(--mono); color: var(--muted);
}
.console .prompt { color: var(--green); }
.nobr { white-space: nowrap; }
.cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: -.3rem; background: var(--gold); animation: caret 1.1s steps(1) infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); animation: pulse 2.2s ease-in-out infinite; }

.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.h1-pre { display: block; margin-bottom: 16px; font: 600 clamp(.75rem, 1.2vw, .86rem)/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 52px 0 0;
  border-top: 1px solid var(--border-strong);
}
@media (min-width: 600px) { .hero-specs { grid-template-columns: repeat(4, 1fr); } }
.hero-specs div { padding-top: 18px; }
.hero-specs dt { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hero-specs dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }


/* Data-hall illustration */
.led { animation: blink 2.6s steps(1, end) infinite; }
.led-g { fill: var(--green); }
.led-c { fill: var(--gold); }
.led-a { fill: var(--amber); }
.led-v, .led-w { fill: #f4f4f5; }
.fast { animation-duration: .9s; }
.d1 { animation-delay: -.4s; } .d2 { animation-delay: -1.1s; } .d3 { animation-delay: -1.7s; } .d4 { animation-delay: -.8s; } .d5 { animation-delay: -2.1s; }
.fiber-base { fill: none; stroke: url(#g-fiber); stroke-width: 6; stroke-linecap: round; opacity: .18; }
.fiber { fill: none; stroke: url(#g-fiber); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 26; animation: flow 1.5s linear infinite; }
.fiber-2 { animation-duration: 1.1s; }
.fiber-3 { animation-duration: 1.9s; }

/* NOC-style status ticker */
.status-strip {
  display: flex; align-items: stretch;
  border-block: 1px solid var(--border);
  background: rgba(14, 14, 17, .8);
}
.status-viewport {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.status-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.status-track span {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 12px 28px; border-right: 1px solid var(--border);
  font: 500 .75rem/1 var(--mono); letter-spacing: .1em; color: var(--muted); white-space: nowrap;
}
.status-track i { width: 7px; height: 7px; border-radius: 50%; }
.status-track .ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-track .link { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.status-track .warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 40px; padding: 0 16px; cursor: pointer;
  border: 0; border-inline-start: 1px solid var(--border); background: var(--bg);
  font: 600 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--muted);
  transition: color .15s;
}
.motion-toggle .icon { width: 16px; height: 16px; }
.motion-toggle .i-play, .motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
@media (hover: hover) { .motion-toggle:hover { color: var(--text); } }
@media (scripting: none) { .motion-toggle { display: none; } }
@media (max-width: 479px) { .motion-toggle { padding-inline: 12px; } }
/* Ambient motion stops when paused (WCAG 2.2.2) */
.motion-paused :is(.led, .fiber, .status-track, .cursor, .dot, .leds i, .heart) { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.lazy-section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center > p { margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.kicker[data-u]::before {
  content: attr(data-u);
  padding: 5px 8px; border-radius: 6px;
  border: 1px solid rgba(230, 179, 33, .3); background: rgba(230, 179, 33, .08);
  letter-spacing: .06em;
}
.section h2 { margin-top: 16px; font-size: clamp(2rem, 4.3vw, 3.15rem); letter-spacing: -.035em; }
.section-head > p:not(.kicker), .section-copy { max-width: 65ch; margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Product cards (server faceplates) ---------- */
.product-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  --c: var(--gold);
  --c-bg: rgba(230, 179, 33, .08);
  --c-bd: rgba(230, 179, 33, .22);
  position: relative; overflow: hidden;
  padding: 0 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--card);
  transition: transform .3s var(--ease), border-color .3s;
}
.card:nth-child(3n+2) { --c: var(--gold-hi); --c-bg: rgba(230, 179, 33, .09); --c-bd: rgba(230, 179, 33, .25); }
.card:nth-child(3n+3) { --c: #f4f4f5; --c-bg: rgba(255, 255, 255, .06); --c-bd: rgba(255, 255, 255, .2); }
/* Gradient hairline border on hover */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
/* Cursor spotlight (position set by JS) */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(230, 179, 33, .13), transparent 45%);
}
@media (hover: hover) {
  .card:hover::before, .card:hover::after { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); }
  .card:hover .card-link .icon { transform: translateX(3px); }
}

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -26px 24px; padding: 10px 26px;
  border-bottom: 1px solid var(--border);
  /* perforated vent strip */
  background: radial-gradient(circle, rgba(9, 9, 11, .95) 1.3px, transparent 1.6px) 0 0 / 7px 7px, rgba(255, 255, 255, .025);
  font: 600 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--dim);
}
.card-meta > span:first-child { padding: 4px 8px; border-radius: 5px; background: var(--card); color: var(--muted); }
.leds { display: inline-flex; gap: 6px; padding: 4px 6px; border-radius: 5px; background: var(--card); }
.leds i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: blink 2.4s steps(1, end) infinite; }
.leds i:nth-child(2) { background: var(--c); box-shadow: 0 0 6px var(--c); animation-duration: .8s; animation-delay: -.3s; }
.leds i:nth-child(3) { animation-delay: -1.3s; animation-duration: 3.1s; }

.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; color: var(--c); background: var(--c-bg); border: 1px solid var(--c-bd); }
.card h3 { font-size: 1.25rem; }
.card p { margin-top: 10px; color: var(--muted); }
.card ul { display: grid; gap: 8px; margin-top: 18px; }
.card li { display: flex; gap: 10px; font-size: .93rem; color: #d4d4d8; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 1px; background: var(--c); }
.card-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; font-size: .93rem; color: var(--c); }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }

/* ---------- Fiber ---------- */
.fiber-section { background: linear-gradient(180deg, transparent, rgba(230, 179, 33, .05) 50%, transparent); }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.feature-list { display: grid; gap: 18px; margin: 32px 0 36px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list strong { display: block; font-weight: 600; }
.feature-list span:not(.check) { color: var(--muted); font-size: .95rem; }
.check { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: rgba(52, 211, 153, .1); color: var(--green); }
.check .icon { width: 16px; height: 16px; stroke-width: 2.5; }

.panel {
  position: relative; overflow: hidden;
  padding: 26px; border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #141417, #0b0b0d);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-title { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-badge { padding: 6px 10px; border-radius: 999px; font: 600 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); }
.tiers { display: grid; gap: 10px; }
.tier { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.tier-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tier-row strong { font: 700 1.2rem/1.2 var(--mono); }
.tier-row span { font-size: .85rem; color: var(--muted); }
.tier-bar { height: 6px; margin-top: 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tier-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.w-1 { width: 18%; } .w-2 { width: 52%; } .w-3 { width: 100%; }
.tier-custom { border-style: dashed; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.feature > .icon { width: 28px; height: 28px; color: var(--gold); }
.feature h3 { margin-top: 18px; font-size: 1.1rem; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Process (patched together like a cable run) ---------- */
.steps { display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--border-strong); }
.step::before {
  counter-increment: step;
  content: "U" counter(step, decimal-leading-zero);
  position: absolute; top: -13px; left: 0;
  padding: 5px 9px; border-radius: 6px;
  font: 600 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--gold);
  background: var(--bg); border: 1px solid rgba(230, 179, 33, .35);
}
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 1px; background: var(--grad); }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; gap: 40px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 28px; border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(230, 179, 33, .11), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 214, 102, .13), transparent 60%),
    var(--bg-elev);
}
@media (min-width: 960px) { .contact-wrap { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.contact-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: var(--gold); background: rgba(230, 179, 33, .08); border: 1px solid rgba(230, 179, 33, .2); }
.contact-ic .icon { width: 20px; height: 20px; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 500; color: #d4d4d8; }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-size: 1rem; /* 16px stops iOS zoom-on-focus */
  border-radius: 12px; border: 1px solid var(--border-input);
  background: rgba(9, 9, 11, .65);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 179, 33, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: .875rem; color: var(--danger); }
.field ::placeholder { color: var(--dim); opacity: 1; }
.form-note { font-size: .875rem; color: var(--muted); }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(9, 9, 11, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a1b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field select option { background: var(--bg-elev); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { flex: 1 1 220px; min-height: 1.5em; font-size: .93rem; color: var(--muted); }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 64px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(17, 17, 20, .85)); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer-brand p { margin-top: 14px; max-width: 36ch; color: var(--muted); font-size: .95rem; }
.footer-col h2 { margin-bottom: 16px; font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: .95rem; transition: color .2s; }
@media (hover: hover) { .footer-col a:hover { color: var(--text); } }

.made-with { display: grid; justify-items: center; gap: 12px; margin-top: 56px; padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
.made-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5em;
  padding: 16px 30px; border-radius: 999px;
  font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -.02em;
  border: 1px solid rgba(255, 61, 110, .3);
  background: radial-gradient(120% 160% at 50% 0%, rgba(255, 61, 110, .16), rgba(255, 61, 110, .03));
  box-shadow: 0 0 60px -20px rgba(255, 61, 110, .45);
}
.heart { width: 1.25em; height: 1.25em; fill: var(--heart); filter: drop-shadow(0 0 10px rgba(255, 61, 110, .65)); animation: beat 1.4s ease-in-out infinite; }
.pa { background: linear-gradient(120deg, #ffd166, #ff8fab 55%, var(--heart)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.made-sub { font: 500 .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--dim); }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; min-height: 100svh; padding: 40px var(--gutter); text-align: center; }
.notfound h1 { margin-top: 18px; font-size: clamp(2.4rem, 8vw, 4.5rem); letter-spacing: -.04em; }
.notfound p { margin: 14px auto 28px; max-width: 46ch; color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); } 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .05); } }
@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 45% { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .lede, .hero-ctas, .hero-specs { animation: rise .3s ease-out both; }
  .hero .lede { animation-delay: .1s; }
  .hero-ctas { animation-delay: .2s; }
  .hero-specs { animation-delay: .3s; }
}

/* Scroll reveal only runs when JS is available */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 12px; filter: blur(4px); transition: opacity .3s ease-out, translate .3s ease-out, filter .3s ease-out; }
  .reveal.in { opacity: 1; translate: none; filter: none; }
  .product-grid > .reveal:nth-child(3n+2), .why-grid > .reveal:nth-child(4n+2), .steps > .reveal:nth-child(4n+2) { transition-delay: .1s; }
  .product-grid > .reveal:nth-child(3n+3), .why-grid > .reveal:nth-child(4n+3), .steps > .reveal:nth-child(4n+3) { transition-delay: .2s; }
  .why-grid > .reveal:nth-child(4n+4), .steps > .reveal:nth-child(4n+4) { transition-delay: .3s; }
  .panel .tier-bar i { transform: scaleX(0); }
  .panel.in .tier-bar i { transform: none; }
  .card.reveal { transition: opacity .3s ease-out, translate .3s ease-out, filter .3s ease-out, transform .3s var(--ease), border-color .3s; }
}

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

/* ---------- About ---------- */
.about { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.founder { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
/* Gold corner brackets, like rack-ear mounts */
.founder::before, .founder::after { content: ""; position: absolute; width: 56px; height: 56px; pointer-events: none; }
.founder::before { top: -10px; left: -10px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-top-left-radius: 16px; }
.founder::after { right: -10px; bottom: -10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); border-bottom-right-radius: 16px; }
.founder-photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border-strong);
  background: radial-gradient(70% 60% at 50% 30%, rgba(230, 179, 33, .16), transparent 70%), var(--card);
}
.founder-photo picture, .founder-photo img { width: 100%; height: 100%; }
.founder-photo img { object-fit: cover; object-position: 50% 25%; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; border-radius: inherit; }
.founder figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 8px;
  background: rgba(9, 9, 11, .8); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.founder figcaption strong { display: block; font-weight: 700; }
.founder figcaption small { font: 600 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.founder .leds { --c: var(--gold); }
.about-lead { margin-top: 20px; font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.55; color: var(--text); }
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 32px 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.facts div { padding: 16px 18px; background: var(--bg-elev); }
.facts dt { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 8px 0 0; font-weight: 700; font-size: 1.05rem; }
.notfound-logo { margin: 0 auto 28px; }

/* ---------- Brands ---------- */
.brands { border-bottom: 1px solid var(--border); }
.brands-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: clamp(28px, 4vw, 40px); }
.brands h2 { font: 600 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.brand-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(28px, 5vw, 64px); }
.brand-list li { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; color: #b4b4bc; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry {
  position: relative; padding: 30px 24px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(230, 179, 33, .06), transparent 45%), var(--card);
}
.industry::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; background: var(--grad); }
.industry > .icon { width: 28px; height: 28px; color: var(--gold); }
.industry h3 { margin-top: 18px; font-size: 1.1rem; }
.industry p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .industry-grid > .reveal:nth-child(4n+2) { transition-delay: .1s; }
  .industry-grid > .reveal:nth-child(4n+3) { transition-delay: .2s; }
  .industry-grid > .reveal:nth-child(4n+4) { transition-delay: .3s; }
}
