/* =========================================================
   Bluefolder — Tesla-inspired single page
   ========================================================= */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-mute: #6e6e73;
  --accent: #2a73ff;
  --accent-2: #4f9dff;
  --accent-glow: rgba(42, 115, 255, 0.45);
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1280px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: 920px; }

.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .container--split { grid-template-columns: 1fr; gap: 40px; }
  .container { padding: 0 20px; }
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
}

.section__head { margin-bottom: 56px; max-width: 760px; }

.section__head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 18px;
}

.section__lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 640px;
}

.section__head--centered .section__lede {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 16px;
}

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

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: #ffffff;
  color: #000000;
}
.btn--primary:hover { background: #e5e5e5; }

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.18); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  padding: 10px 20px;
  font-size: 13px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn--lg { padding: 18px 36px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  color: var(--accent-2);
  font-weight: 500;
  font-size: 15px;
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover { gap: 12px; }

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.85);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
}

.logo-mark {
  width: 18px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 2px 4px 4px 2px;
  position: relative;
  box-shadow: 0 0 16px var(--accent-glow);
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -2px;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}

.logo-mark--lg {
  width: 28px;
  height: 34px;
}
.logo-mark--lg::after {
  top: 6px;
  left: -3px;
  width: 22px;
  height: 3px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.nav__links a:hover { opacity: 1; }

.nav__cta { display: flex; }

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
}
.nav__menu span {
  width: 22px; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--line);
    padding: 24px 24px 32px;
    gap: 20px;
    font-size: 18px;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 110%, rgba(42, 115, 255, 0.28), transparent 60%),
    radial-gradient(800px 400px at 80% 0%, rgba(42, 115, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #000 0%, #050a18 60%, #000 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
}

.hero__content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__title {
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__chips {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero__chips li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__chips li:hover { color: var(--text); border-color: var(--accent); }

/* Hero scanner visual */
.hero__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0.32;
  pointer-events: none;
  /* Carve out the center so it doesn't fight the headline + chips */
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at center, transparent 0%, transparent 55%, black 95%);
  mask-image: radial-gradient(ellipse 70% 65% at center, transparent 0%, transparent 55%, black 95%);
}
.scanner {
  width: min(1100px, 100vw);
  height: auto;
  max-height: 100vh;
}

/* Subtle dark halo behind the text */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -80px -120px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
.hero__content { position: relative; }
.hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.hero__sub { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.scanner__ring--outer {
  transform-origin: 300px 300px;
  animation: spin 24s linear infinite;
}
.scanner__ring--mid {
  transform-origin: 300px 300px;
  animation: spin 40s linear infinite reverse;
}
.scanner__beam {
  animation: scanY 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(79, 157, 255, 0.6));
}
.pulse {
  transform-origin: center;
  animation: pulse 2.2s ease-out infinite;
}
.scanner__part {
  animation: floaty 6s ease-in-out infinite;
}
.scanner__badge {
  animation: floaty 6s ease-in-out -2s infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes scanY {
  0%, 100% { transform: translateY(80px); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(500px); opacity: 1; }
  60% { opacity: 0; }
}
@keyframes pulse {
  0% { r: 4; opacity: 0.6; }
  100% { r: 18; opacity: 0; }
}
@keyframes floaty {
  0%, 100% { transform: translate(150px, 180px); }
  50% { transform: translate(150px, 172px); }
}
@keyframes floatyBadge {
  0%, 100% { transform: translate(380px, 380px); }
  50% { transform: translate(380px, 372px); }
}
.scanner__badge { animation: floatyBadge 6s ease-in-out -2s infinite; }

@media (max-width: 720px) {
  .hero__visual { opacity: 0.3; }
}

/* =========================================================
   Stats band
   ========================================================= */

.stats {
  padding: 56px 0;
  background: linear-gradient(180deg, #050a18 0%, #000 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 157, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 157, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 460px) { .stats__grid { grid-template-columns: 1fr; } }

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  padding-left: 20px;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}
.stat__icon {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.stat__icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.stat__num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  display: inline-block;
}
.stat__unit {
  display: inline-block;
  margin-left: -6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-2);
  vertical-align: top;
}
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 220px;
  line-height: 1.4;
}

/* =========================================================
   Tab icons
   ========================================================= */

.tab { gap: 14px; }
.tab__icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}
.tab__icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active .tab__icon { opacity: 1; color: var(--accent-2); transform: scale(1.05); }

@media (max-width: 720px) {
  .tab__icon { width: 18px; height: 18px; }
  .tab__num { display: none; }
}

/* =========================================================
   Step icons
   ========================================================= */

.steps li { display: flex; flex-direction: column; }
.steps__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(42, 115, 255, 0.1);
  color: var(--accent-2);
  margin-bottom: 20px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.steps__icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.steps li:hover .steps__icon {
  background: rgba(42, 115, 255, 0.2);
  transform: scale(1.06);
}
.steps__num { margin-bottom: 10px; margin-top: -4px; }

/* =========================================================
   Format cards — icons & duration
   ========================================================= */

.format { display: flex; flex-direction: column; align-items: flex-start; }
.format__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.format__icon svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.format--featured .format__icon {
  background: rgba(42, 115, 255, 0.15);
  color: var(--accent-2);
  border-color: rgba(79, 157, 255, 0.3);
}
.format__duration {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 6px;
}
.format--featured .format__duration { color: var(--accent-2); }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--text-mute), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* =========================================================
   Tabs / Panels
   ========================================================= */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 18px 28px 18px 0;
  margin-right: 28px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tab__num {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  font-weight: 600;
}

@media (max-width: 720px) {
  .tab { padding: 14px 16px 14px 0; margin-right: 14px; font-size: 15px; }
  .tab__label { font-size: 15px; }
}

.panel { display: none; animation: fadeUp 0.4s var(--ease); }
.panel.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 980px) {
  .panel__grid { grid-template-columns: 1fr; gap: 48px; }
}

.panel__copy h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 20px;
}
.panel__lede {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 560px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}
.checklist li strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.panel__loop {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel__loop h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 16px;
  font-weight: 600;
}

.loop-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.loop-list li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  color: var(--text-dim);
  font-size: 15px;
}
.loop-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .two-up { grid-template-columns: 1fr; } }
.two-up h5 { font-size: 14px; margin-bottom: 6px; }
.two-up p { color: var(--text-dim); font-size: 14px; }

/* Right-side art cards */
.panel__art { position: sticky; top: 100px; }

.art-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.art-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.art-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-dim);
}
.art-card__pill {
  background: rgba(42, 115, 255, 0.15);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.art-card__score {
  display: flex;
  justify-content: center;
  margin: 16px 0 28px;
}

.ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,0.06) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--surface-2);
  border-radius: 50%;
}
.ring__val {
  position: relative;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ring__val small { font-size: 16px; color: var(--text-dim); margin-left: 2px; font-weight: 500; }

.art-card__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.art-card__rows li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  gap: 12px;
}
.bar {
  display: block;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* Flow card */
.art-card--flow .flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.flow__node {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.flow__node--accent {
  background: rgba(42, 115, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent-2);
}
.flow__arrow {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  margin-left: 28px;
  position: relative;
}
.flow__arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.flow__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.flow__meta span { display: block; font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.flow__meta strong { font-size: 18px; font-weight: 600; }

/* Trace card */
.art-card--trace .trace { display: grid; gap: 10px; }
.trace__row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.trace__tag { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; color: var(--text); }
.trace__arrow { color: var(--text-mute); text-align: center; }
.trace__ctl { color: var(--text-dim); }
.trace__row--miss { border-color: rgba(255, 80, 80, 0.4); background: rgba(255, 80, 80, 0.06); }
.trace__row--miss .trace__ctl { color: #ff6b6b; }
.trace__legend {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}

/* =========================================================
   How it works (steps)
   ========================================================= */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: stepN;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.steps li:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.steps__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 24px;
}
.steps h3 { font-size: 22px; margin-bottom: 12px; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* =========================================================
   On-site / Training
   ========================================================= */

.onsite__copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}
.onsite__copy > p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 28px;
}

.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 15px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
}

.onsite__formats {
  display: grid;
  gap: 16px;
}
.format {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.format:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.format--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(42, 115, 255, 0.08), var(--surface));
}
.format h4 { font-size: 18px; margin-bottom: 8px; }
.format p { color: var(--text-dim); font-size: 14px; }
.format__badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   Booking form
   ========================================================= */

.form {
  margin-top: 16px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .form__grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: #111; color: var(--text); }

.form__actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.form__legal {
  color: var(--text-mute);
  font-size: 12px;
  text-align: center;
  max-width: 480px;
}

/* =========================================================
   About
   ========================================================= */

.about h2 {
  font-size: clamp(32px, 4.5vw, 52px);
}
.about__copy p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand h3 {
  font-size: 18px;
  letter-spacing: 0.18em;
  margin: 16px 0 6px;
}
.footer__brand p { color: var(--text-dim); font-size: 14px; }

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer ul a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__site { letter-spacing: 0.1em; }

/* =========================================================
   Industries
   ========================================================= */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }

.industry {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(42,115,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.industry:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.industry:hover::after { opacity: 1; }
.industry__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(42, 115, 255, 0.12);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.industry__icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.industry h3 { font-size: 18px; margin-bottom: 8px; }
.industry p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* =========================================================
   Principles
   ========================================================= */

.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .principles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles__grid { grid-template-columns: 1fr; } }

.principle {
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.principle::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.principle__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.principle h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.principle p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* =========================================================
   FAQ
   ========================================================= */

.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq__item {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.faq__item[open] { background: rgba(255, 255, 255, 0.015); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-2); }

.faq__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before {
  top: 50%; left: 6px; right: 6px;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq__icon::after {
  left: 50%; top: 6px; bottom: 6px;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq__item[open] .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
}
.faq__item[open] .faq__icon::before { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translateX(-50%) rotate(90deg); }

.faq__item p {
  padding: 0 4px 24px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}
.faq__item p a { color: var(--accent-2); }
.faq__item p a:hover { text-decoration: underline; }

/* =========================================================
   Form success state
   ========================================================= */

.form__success {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.4s var(--ease);
}
.form__success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  color: var(--accent-2);
}
.form__success-icon svg { width: 100%; height: 100%; }
.form__success h3 { font-size: 28px; margin-bottom: 12px; }
.form__success p { color: var(--text-dim); max-width: 420px; margin: 0 auto 28px; font-size: 16px; }

/* =========================================================
   404 / Error page
   ========================================================= */

.page-404 { min-height: 100vh; }
.errorpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 24px;
  overflow: hidden;
}
.errorpage__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 50%, rgba(42, 115, 255, 0.2), transparent 60%),
    linear-gradient(180deg, #000 0%, #050a18 50%, #000 100%);
}
.errorpage__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.errorpage__content { position: relative; z-index: 1; max-width: 720px; }

/* =========================================================
   Legal page
   ========================================================= */

.legal {
  padding: calc(var(--nav-h) + 80px) 0 80px;
}
.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 12px;
}
.legal__updated {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 56px;
}
.legal section { margin-bottom: 48px; }
.legal h2 {
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; margin: 12px 0 0; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
