/* ============================================================
   OX Recorder — Global Stylesheet
   Elegant black background, shining white. Apple-inspired.
   Pure CSS, no frameworks. Works on static GoDaddy hosting.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #000000;
  --bg-elev:       #0a0a0c;
  --bg-card:       #111114;
  --surface:       #1a1a1f;
  --hairline:      rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  --text:          #f5f5f7;
  --text-dim:      #a1a1a6;
  --text-faint:    #6e6e73;

  --accent:        #ffffff;
  --accent-glow:   rgba(255, 255, 255, 0.85);
  --silver-1:      #fbfbfd;
  --silver-2:      #c7c7cc;
  --silver-3:      #8e8e93;

  --blue:          #2997ff;

  --maxw:          1180px;
  --gutter:        clamp(20px, 5vw, 40px);
  --radius:        18px;
  --radius-lg:     28px;

  --header-h:      52px;

  --ease:          cubic-bezier(0.28, 0.11, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 11vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }

.center { text-align: center; }
.muted  { color: var(--text-dim); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-3);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.07; letter-spacing: -0.025em; }

.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.headline { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.subhead  { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
  max-width: 40ch;
}
.lead.center { margin-inline: auto; }

/* Shining white gradient text */
.shine {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8ee 38%, #9a9aa2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* clip-to-text shaves glyph descenders (g, y, p); pad so tails aren't cut */
  padding-bottom: 0.12em;
}
.glow { text-shadow: 0 0 38px rgba(255, 255, 255, 0.28); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--silver-1);
  color: #000;
  box-shadow: 0 0 0 rgba(255,255,255,0);
}
.btn--primary:hover {
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--hairline);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }

.btn--link {
  padding: 0;
  border-radius: 0;
  color: var(--blue);
  font-size: 1.05rem;
}
.btn--link:hover { text-decoration: underline; }
.btn--lg { padding: 15px 34px; font-size: 1.1rem; }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav__brand { display: flex; align-items: center; height: 100%; gap: 9px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav__brand svg { width: 26px; height: 26px; }
.nav__brand .ox { font-weight: 700; }
.nav__brand .sub { color: var(--text-faint); font-weight: 400; }
.nav__logo { height: auto; width: auto; max-height: calc(var(--header-h) - 20px); max-width: 150px; object-fit: contain; display: block; }
.nav__logo--footer { height: auto; max-height: 40px; }
@media (max-width: 900px) { .nav__logo { max-height: calc(var(--header-h) - 22px); max-width: 130px; } }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  display: block;
  padding: 7px 16px;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-radius: 980px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(255,255,255,0.08); }

/* ---------- Language dropdown ---------- */
.lang-dd { position: relative; margin-left: 0; flex-shrink: 0; }
.lang-dd__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px 6px 8px;
  border-radius: 980px;
  line-height: 1;
  transition: color .2s, background .2s, border-color .2s;
}
.lang-dd__btn:hover { color: var(--text); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.lang-dd__flag {
  width: 22px; height: 15px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  display: block;
}
.lang-dd__flag svg { width: 100%; height: 100%; display: block; }
.lang-dd__label { white-space: nowrap; }
.lang-dd__caret { width: 12px; height: 12px; color: var(--text-faint); transition: transform .25s var(--ease); }
.lang-dd.is-open .lang-dd__caret { transform: rotate(180deg); }

.lang-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(18, 18, 22, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 1100;
}
.lang-dd.is-open .lang-dd__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-dd__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.lang-dd__menu button:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.lang-dd__menu button.is-active { color: var(--text); background: rgba(255,255,255,0.10); }
/* group the right-hand nav controls */
.nav { gap: 16px; }
/* Center the menu items in the bar; brand stays left, language dropdown right */
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__toggle {
  display: none;
  width: 30px; height: 30px;
  background: none; border: none;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span { top: 14px; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 8px; font-size: 1.1rem; border-radius: 10px; }
  .nav__links li + li { border-top: 1px solid var(--hairline-soft); }
  /* Keep the language dropdown visible beside the hamburger on mobile */
  .nav { gap: 10px; }
  .nav__links { margin-left: 0; }
  .lang-dd { margin-left: auto; }
  .lang-dd__label { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--hairline-soft);
  padding-block: 56px 40px;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 32px;
}
.footer__brand .nav__brand {
  height: auto;
  align-items: flex-start;
  margin-bottom: 8px;
}
.footer__brand p {
  max-width: 34ch;
  line-height: 1.6;
  margin-top: 0;
}
.footer__col h4 { font-size: 0.82rem; color: var(--text); margin-bottom: 14px; font-weight: 600; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-faint); transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bar {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 60px 40px;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 34px; }

/* ---------- Product hero (centered rotating card) ---------- */
.hero--product { gap: 0; min-height: 0; padding-block: clamp(36px, 6vw, 64px) clamp(40px, 6vw, 70px); }
.hero--product .hero__head { display: flex; flex-direction: column; align-items: center; }
.hero--product .display { margin-top: 12px; }
.hero--product .lead { margin-top: 16px; }

/* ESP32-C3 abstract chip illustration (detail viewer) */
.chip-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.chip-art__glow {
  position: absolute;
  width: 62%; height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(150,170,235,0.40) 0%,
    rgba(110,130,210,0.20) 38%,
    rgba(0,0,0,0) 70%);
  filter: blur(20px);
  animation: chipPulse 4s ease-in-out infinite;
}
.chip-art__svg { position: relative; width: min(440px, 86vw); height: auto; }
@keyframes chipPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

/* Animated chip internals */
.chip-flow {
  opacity: 0.9;
  animation: chipFlow 1.6s linear infinite;
}
@keyframes chipFlow { to { stroke-dashoffset: -40; } }

.chip-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: chipCore 2.4s ease-in-out infinite;
}
@keyframes chipCore {
  0%, 100% { opacity: 0.85; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.12); }
}
.chip-core-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: chipRing 2.4s ease-in-out infinite;
}
@keyframes chipRing {
  0%   { opacity: 0.6; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(2.1); }
  100% { opacity: 0;   transform: scale(2.1); }
}
.chip-die {
  transform-box: fill-box;
  transform-origin: center;
  animation: chipDie 8s linear infinite;
}
@keyframes chipDie { to { transform: rotate(360deg); } }
.chip-pins circle {
  animation: chipPins 2.4s ease-in-out infinite;
}
@keyframes chipPins {
  0%, 100% { fill: #5a6190; }
  50%      { fill: #aab4e6; }
}

@media (prefers-reduced-motion: reduce) {
  .chip-flow, .chip-core, .chip-core-ring, .chip-die, .chip-pins circle,
  .chip-art__glow { animation: none; }
  .chip-core-ring { opacity: 0; }
}

.hero__stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(8px, 2vw, 24px);
}
.hero__stage .stage { width: min(440px, 86vw); aspect-ratio: 1 / 1; }
/* Shining glow pooled beneath the centered hero card */
.hero__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 3vw, 30px);
  transform: translateX(-50%);
  width: min(420px, 72vw);
  height: 90px;
  background: radial-gradient(ellipse at center,
    rgba(220,228,255,0.34) 0%,
    rgba(150,170,235,0.18) 40%,
    rgba(0,0,0,0) 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 4.5s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}


.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 5vw, 56px);
  margin-top: clamp(4px, 1vw, 14px);
}
.hero__chips li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__chips .chip-num { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero__chips .chip-lbl { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- CSS-only entrance animation ----------
   Plays on load with no JS, so the first screen is never blank.
   Each .anim-N is staggered. */
.anim {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s var(--ease) forwards;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.16s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.40s; }
.anim-5 { animation-delay: 0.56s; }
.anim-6 { animation-delay: 0.68s; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; animation: none; }
}

/* ---------- Generic grid sections ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #0b0b0e 100%);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.card__icon { width: 46px; height: 46px; margin-bottom: 18px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.55; }

/* Feature tile (image + text) */
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #121216 0%, #08080a 100%);
  border: 1px solid var(--hairline-soft);
  padding: 44px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.tile h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tile p { color: var(--text-dim); margin-top: 12px; max-width: 32ch; }
.tile__art { margin-top: auto; padding-top: 28px; }

/* Spec strip */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div { background: var(--bg); padding: 30px 24px; text-align: center; }
.specs .num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.specs .lbl { color: var(--text-faint); font-size: 0.82rem; margin-top: 6px; letter-spacing: 0.02em; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 3D Card Viewer ---------- */
.viewer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.viewer--reverse { grid-template-columns: 0.95fr 1.05fr; }
.viewer--reverse .viewer__copy { order: 1; }
.viewer--reverse .stage { order: 2; }
@media (max-width: 900px) {
  .viewer,
  .viewer--reverse { grid-template-columns: 1fr; gap: 12px; }
  /* On mobile, always show the product model first, copy below. */
  .viewer--reverse .viewer__copy { order: 2; }
  .viewer--reverse .stage { order: 1; }
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  /* Scale the whole 3D model down on narrow screens so the fixed-px
     card faces never overflow the viewport. 1 on desktop. */
  --stage-scale: 1;
}
.stage:active { cursor: grabbing; }
.stage__floorglow {
  position: absolute;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(120,140,200,0.16), transparent 65%);
  filter: blur(6px);
}

/* The card built from 6 faces */
.card3d {
  position: relative;
  width: 300px;            /* visual width  (150mm side) */
  height: 250px;           /* visual height (125mm side) */
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(-28deg);
  transition: transform .1s linear;
}
.card3d__face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #2a2a30 0%, #141417 55%, #0c0c0e 100%);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.card3d__face--front,
.card3d__face--back { width: 300px; height: 250px; }
.card3d__face--front { transform: translateZ(11px); }
.card3d__face--back  { transform: rotateY(180deg) translateZ(11px);
  background: linear-gradient(145deg, #202024 0%, #111113 100%); }

/* thin edges: thickness 22px => 11px each way (exaggerated for 5.5mm so it's visible) */
.card3d__face--right, .card3d__face--left { width: 22px; height: 250px; left: 139px; }
.card3d__face--right { transform: rotateY(90deg) translateZ(150px); }
.card3d__face--left  { transform: rotateY(-90deg) translateZ(150px); }
.card3d__face--top, .card3d__face--bottom { width: 300px; height: 22px; top: 114px; }
.card3d__face--top    { transform: rotateX(90deg) translateZ(125px); }
.card3d__face--bottom { transform: rotateX(-90deg) translateZ(125px); }

.card3d__edge {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #3a3a42, #17171b 60%, #0a0a0c);
}

/* Surface details on the front face */
.surf-logo {
  position: absolute; top: 26px; left: 26px;
  display: flex; align-items: center; gap: 7px;
  color: var(--silver-2); font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
}
.surf-logo svg { width: 18px; height: 18px; }
.surf-logo__img { height: 26px; width: auto; display: block; opacity: 0.95; }
.surf-model {
  position: absolute; bottom: 22px; left: 26px;
  color: var(--text-faint); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.surf-indicator {
  position: absolute; top: 30px; right: 34px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d058;
  box-shadow: 0 0 8px 2px rgba(52,208,88,0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
.surf-mic {
  position: absolute; top: 31px; right: 54px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #0a0a0a;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06);
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* Edge port callouts (on the right edge face) */
.port {
  position: absolute;
  background: #050506;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 2px;
  left: 50%; transform: translateX(-50%);
}
.port--usbc { top: 60px;  width: 11px; height: 5px; border-radius: 3px; }
.port--sd   { top: 120px; width: 14px; height: 4px; }
.port--switch { top: 175px; width: 6px; height: 10px; background: var(--silver-3); }

/* Hint + controls */
.stage__hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; color: var(--text-faint);
  display: flex; align-items: center; gap: 7px;
  opacity: .8; transition: opacity .4s;
}
.stage.dragged .stage__hint { opacity: 0; }
.viewer__copy h2 { margin-bottom: 18px; }
.viewer__copy .feature-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.viewer__copy .feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-dim); }
.viewer__copy .feature-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.viewer__copy .feature-list strong { color: var(--text); font-weight: 500; display: block; }

/* ---------- Code block (Developer) ---------- */
.codeblock {
  background: #0c0c0f;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}
.codeblock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(255,255,255,0.02);
}
.codeblock__bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background:#ff5f57 } .dot--y { background:#febc2e } .dot--g { background:#28c840 }
.codeblock__bar .fname { margin-left: 8px; color: var(--text-faint); font-size: 0.82rem; }
.codeblock pre { margin: 0; padding: 22px; overflow-x: auto; font-size: 0.88rem; line-height: 1.7; }
.codeblock code { color: #e6e6e6; }
.tok-key { color: #ff7ab2; }
.tok-type { color: #5ac8fa; }
.tok-fn  { color: #d0a8ff; }
.tok-str { color: #9ef0a0; }
.tok-num { color: #ffd479; }
.tok-com { color: #6e6e73; font-style: italic; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  font-size: 0.9rem; color: var(--silver-2);
}
.step h4 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-method { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hairline-soft); }
.contact-method svg { width: 26px; height: 26px; color: var(--silver-2); flex-shrink: 0; }
.contact-method .lbl { color: var(--text-faint); font-size: 0.8rem; }
.contact-method a, .contact-method .val { font-size: 1.15rem; color: var(--text); }
.contact-method a:hover { color: var(--blue); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }
.form-status { margin-top: 16px; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #34d058; }
.form-status.err { color: #ff6b6b; }

/* ---------- Product comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.prod {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  background: linear-gradient(180deg, #101014 0%, #08080a 100%);
  text-align: center;
}
.prod__badge {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver-3); border: 1px solid var(--hairline);
  padding: 5px 13px; border-radius: 980px; margin-bottom: 18px;
}
.prod h3 { font-size: 1.9rem; margin-bottom: 8px; }
.prod .tagline { color: var(--text-dim); margin-bottom: 26px; }
.prod__art { margin: 0 auto 26px; height: 180px; display:flex; align-items:center; justify-content:center; }
.prod ul { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.prod ul li { display: flex; gap: 10px; color: var(--text-dim); font-size: 0.96rem; }
.prod ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--silver-2); }

/* ---------- Responsive stage scaling ---------- */
/* The 3D card faces use fixed pixel sizes (needed for transform-style:
   preserve-3d). Scale the whole model down so it never overflows. */
@media (max-width: 900px)  { .stage { --stage-scale: 0.92; min-height: 360px; } }
@media (max-width: 600px)  { .stage { --stage-scale: 0.78; min-height: 320px; } }
@media (max-width: 420px)  { .stage { --stage-scale: 0.62; min-height: 280px; } }
@media (max-width: 360px)  { .stage { --stage-scale: 0.54; min-height: 250px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page intro ---------- */
.page-intro { padding-block: clamp(70px, 12vw, 130px) clamp(30px, 5vw, 50px); text-align: center; }
.divider { height: 1px; background: var(--hairline-soft); border: 0; margin-block: 0; }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 14px; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.maxw-prose { max-width: 60ch; }
.maxw-prose.center { margin-inline: auto; }
