/* ═══════════════════════════════════════════════════
   Theia OS — Landing Page Styles
   Design tokens → Layout → Components → Animations
   ═══════════════════════════════════════════════════ */

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

:root {
  /* Palette — matches Spline hero (purples on black) */
  --bg:            #050508;
  --bg-card:       rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text:          #e4e4e7;
  --text-muted:    #a1a1aa;
  --text-dim:      #71717a;
  --accent:        #a78bfa;          /* violet-400 */
  --accent-bright: #c4b5fd;          /* violet-300 */
  --accent-deep:   #6366f1;          /* indigo-500 */
  --accent-pink:   #e879f9;          /* fuchsia-400 */
  --success:       #34d399;          /* emerald-400 */
  --border:        rgba(255, 255, 255, 0.06);
  --border-focus:  rgba(167, 139, 250, 0.5);
  --glow-purple:   rgba(99, 102, 241, 0.15);
  --glow-pink:     rgba(232, 121, 249, 0.1);

  /* Type */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__icon {
  width: 28px;
  height: 28px;
  transition: transform 0.4s var(--ease-spring);
  transform-origin: center;
}

.nav__logo:hover .nav__icon {
  transform: rotate(-8deg) scale(1.08);
}

@media (prefers-reduced-motion: no-preference) {
  /* One-time draw-in of the mark on load */
  .nav__ring {
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    animation: logo-draw 1.1s var(--ease-out) 0.25s forwards;
  }

  .nav__stem {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: logo-draw 0.55s var(--ease-out) 0.9s forwards;
  }

  /* Idle pulse on the scan lines (evokes local processing) */
  .nav__scan {
    animation: logo-scan 3.4s ease-in-out 1.4s infinite;
  }

  .nav__scan--2 {
    animation-delay: 1.8s;
  }
}

@keyframes logo-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logo-scan {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
  letter-spacing: -0.01em;
}

.nav__cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: var(--space-2xl);
  pointer-events: none;
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.5;
  transition: opacity 0.6s var(--ease-out);
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-dot {
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes scroll-bob {
  0%, 100% { cy: 8; }
  50%      { cy: 16; }
}

/* ─── HERO CTA ─── */
.hero__cta {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
  margin-bottom: var(--space-2xl);
  pointer-events: auto;
}

.hero__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.4);
}

/* ─── PAIN POINTS — Gradient-Panel Card Grid ─── */
.pain {
  padding: var(--space-4xl) var(--space-xl) calc(var(--space-4xl) + 2rem);
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.pain__container {
  max-width: 1120px;
  margin: 0 auto;
}

.pain__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.pain__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.pain__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.pain__sub {
  margin-top: var(--space-lg);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Showcase: two feature columns flanking a central OS mockup */
.pain__showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.pain__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.pain__item {
  display: flex;
  flex-direction: column;
}

.pain__badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-md);
  font-size: 1.15rem;
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.pain__item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
  letter-spacing: -0.01em;
}

.pain__item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 30ch;
}

/* Central stage: bright brand gradient with a floating OS window illustration */
.pain__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, #dccdff, transparent 55%),
    radial-gradient(120% 100% at 88% 92%, #f6c9ee, transparent 55%),
    linear-gradient(150deg, #c4b5fd, #e879f9);
}

.pain__os {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(24, 8, 40, 0.35));
}

/* ─── HARDWARE — Bento Grid ─── */
.hardware {
  padding: var(--space-4xl) var(--space-xl) calc(var(--space-4xl) + 2rem);
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.hardware__container {
  max-width: 1120px;
  margin: 0 auto;
}

.hardware__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.hardware__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--space-lg);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.hardware__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: var(--space-3xl);
}

.hardware__bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.hardware__cell {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

/* Brand-tinted text cells for bento background diversity */
.hardware__cell:not(.hardware__cell--hero) {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.07), rgba(255, 255, 255, 0.015));
}

.hardware__cell:hover {
  border-color: rgba(167, 139, 250, 0.28);
  transform: translateY(-2px);
}

.hardware__cell--hero {
  grid-row: 1 / 3;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
}

.hardware__cell--hero .hardware__cell-content {
  margin-top: -3.5rem;
}

.hardware__img {
  width: 100%;
  height: clamp(220px, 34vh, 340px);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

.hardware__cell-content {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
}

.hardware__cell-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.hardware__cell h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
  letter-spacing: -0.01em;
}

.hardware__cell p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── WORKFLOW — Centered Header + Feature Card Grid ─── */
.workflow {
  padding: var(--space-4xl) var(--space-xl) calc(var(--space-4xl) + 2rem);
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.workflow__container {
  max-width: 1120px;
  margin: 0 auto;
}

.workflow__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.workflow__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-lg);
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-bright);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius-full);
}

.workflow__eyebrow i {
  font-size: 1rem;
}

.workflow__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.workflow__sub {
  margin-top: var(--space-md);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.workflow__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.workflow__item {
  padding: var(--space-2xl) var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.workflow__item:hover {
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-3px);
}

.workflow__item-icon {
  display: block;
  width: fit-content;
  font-size: 1.85rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 4px 14px rgba(167, 139, 250, 0.35));
  transition: transform 0.45s var(--ease-spring), filter 0.4s var(--ease-out);
}

/* Brighten the glow on card hover */
.workflow__item:hover .workflow__item-icon {
  filter: drop-shadow(0 8px 22px rgba(167, 139, 250, 0.6));
}

/* Distinct hover flourish per icon */
.workflow__item:hover .ph-lightning {
  transform: rotate(-10deg) scale(1.22);
}

.workflow__item:hover .ph-shield-check {
  transform: scale(1.2);
}

.workflow__item:hover .ph-terminal-window {
  transform: translateX(3px) scale(1.15);
}

.workflow__item:hover .ph-code {
  transform: rotate(10deg) scale(1.15);
}

/* Staggered pop-in as the cards scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .reveal--visible .workflow__item-icon {
    animation: icon-pop 0.6s var(--ease-spring) backwards;
  }

  .reveal--visible .workflow__item:nth-child(2) .workflow__item-icon {
    animation-delay: 0.1s;
  }

  .reveal--visible .workflow__item:nth-child(3) .workflow__item-icon {
    animation-delay: 0.2s;
  }

  .reveal--visible .workflow__item:nth-child(4) .workflow__item-icon {
    animation-delay: 0.3s;
  }
}

@keyframes icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-15deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.18) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.workflow__item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
  letter-spacing: -0.01em;
}

.workflow__item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── SIGNUP SECTION ─── */
.signup {
  position: relative;
  padding: calc(var(--space-4xl) + 1rem) var(--space-xl);
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Restrained brand aurora - violet is the Theia brand, kept low-opacity and intentional */
.signup::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90vw);
  height: 520px;
  background: radial-gradient(closest-side, var(--glow-purple), transparent 72%);
  pointer-events: none;
}

.signup__container {
  position: relative;
  width: 100%;
  max-width: 580px;
  text-align: center;
  z-index: 1;
}

.signup__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.signup__heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.signup__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

/* Form */
.signup__form {
  margin-bottom: var(--space-md);
}

.signup__input-group {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.signup__input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.signup__input::placeholder {
  color: var(--text-dim);
}

.signup__input:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.signup__button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.signup__button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 24px rgba(167, 139, 250, 0.4);
}

.signup__button:active {
  transform: scale(0.98);
}

.signup__button-loading {
  display: none;
}

.signup__button--loading .signup__button-text {
  display: none;
}

.signup__button--loading .signup__button-loading {
  display: inline-flex;
}

.signup__privacy {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── SUCCESS STATE ─── */
.signup__success {
  display: none;
}

.signup__success[aria-hidden="false"] {
  display: block;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.signup__success-icon {
  margin-bottom: var(--space-lg);
}

.signup__success-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.signup__success-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-2xl);
}

/* ─── MICRO-SURVEY ─── */
.signup__survey {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  text-align: center;
}

.signup__survey-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.signup__survey-intro strong {
  color: var(--text);
}

.signup__survey-question {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.signup__survey-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.signup__survey-option {
  cursor: pointer;
}

.signup__survey-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.signup__survey-chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-out);
  user-select: none;
}

.signup__survey-option input:checked + .signup__survey-chip {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}

.signup__survey-chip:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

.signup__survey-submit {
  padding: 0.6rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}

.signup__survey-submit:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

.signup__survey-thanks {
  display: none;
  font-size: 1.05rem;
  color: var(--success);
  margin-top: var(--space-lg);
}

.signup__survey-thanks[aria-hidden="false"] {
  display: block;
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

/* ─── FOOTER ─── */
.footer {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered child reveal within a section once it enters view */
.pain__item,
.hardware__cell,
.workflow__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal--visible .pain__item,
.reveal--visible .hardware__cell,
.reveal--visible .workflow__item {
  opacity: 1;
  transform: none;
}

.reveal--visible .pain__item:nth-child(2),
.reveal--visible .hardware__cell:nth-child(2),
.reveal--visible .workflow__item:nth-child(2) { transition-delay: 0.08s; }

.reveal--visible .pain__item:nth-child(3),
.reveal--visible .hardware__cell:nth-child(3),
.reveal--visible .workflow__item:nth-child(3) { transition-delay: 0.16s; }

.reveal--visible .pain__item:nth-child(4),
.reveal--visible .workflow__item:nth-child(4) { transition-delay: 0.24s; }


/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .pain__showcase {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .pain__stage {
    order: -1;
  }

  .pain__col {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2xl);
  }

  .pain__item {
    flex: 1 1 240px;
  }

  .hardware__bento {
    grid-template-columns: 1fr;
  }

  .hardware__cell--hero {
    grid-row: auto;
  }

  .workflow__strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    padding: var(--space-sm) var(--space-md);
  }

  .pain__col {
    flex-direction: column;
  }

  .hero__cta {
    font-size: 0.95rem;
    padding: 0.7rem 2rem;
  }

  .hero {
    min-height: 100svh;
  }

  .workflow__strip {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .signup {
    padding: var(--space-3xl) var(--space-md);
  }

  .signup__input-group {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
    justify-content: center;
  }

  .signup__survey-options {
    flex-direction: column;
    align-items: stretch;
  }

  .signup__survey-chip {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .pain__item,
  .hardware__cell,
  .workflow__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

