@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700&family=Barlow:wght@300;400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:        #06080f;
  --bg2:       #0b0f1c;
  --bg3:       #111827;
  --amber:     #E84D1C;
  --navy:      #0C2040;
  --orange:    #FF5A1F;
  --green:     #00E5A0;
  --text:      #E8EDF5;
  --text-dim:  #6B7A99;
  --border:    rgba(232,77,28,0.22);
  --border-2:  rgba(255,255,255,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(6,8,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-logo-mark::after {
  content: 'P';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--amber);
  line-height: 1;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text span:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.nav-logo-text span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--amber);
  padding: 9px 20px;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: #fff !important;
  color: var(--bg) !important;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d1ldvf68ux039x.cloudfront.net/thumbs/photos/2102/6526756/1000w_q95.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(0.6);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(6,8,15,0.7) 40%,
    rgba(6,8,15,0.2) 70%,
    transparent 100%
  );
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,183,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,183,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 80px;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--amber);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title span {
  display: block;
  color: var(--amber);
  -webkit-text-stroke: 0px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(232,237,245,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--bg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 32px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.hero-stats {
  position: absolute;
  bottom: 80px;
  right: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.hero-stat {
  text-align: right;
}

.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--amber);
  line-height: 1;
}

.hero-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ─── TICKER ─── */
.ticker-wrap {
  background: var(--amber);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bg);
  text-transform: uppercase;
  padding: 0 32px;
}

.ticker span::before {
  content: '◆ ';
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTIONS ─── */
section { padding: 100px 80px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--amber);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── ABOUT STRIP ─── */
.about-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.about-text {
  padding: 100px 80px;
}

.about-text p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.9;
  margin-top: 24px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-image {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) saturate(0.7);
  transition: transform 0.6s ease;
}

.about-image:hover img { transform: scale(1.04); }

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg2) 0%, transparent 50%);
}

/* ─── FEATURES ─── */
.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: var(--border-2);
}

.feature-card {
  background: var(--bg2);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card:hover { background: var(--bg3); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--amber);
  transition: height 0.3s;
}

.feature-card:hover::before { height: 100%; }

.feature-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 28px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ─── GUIDED SCENARIOS ─── */
.guided-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-2);
  padding: 100px 80px;
}

.guided-layout {
  margin-bottom: 56px;
  max-width: 680px;
}

.guided-text .section-title { margin-bottom: 16px; }

.guided-meta {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-2);
  margin: 28px 0 36px;
}

.guided-meta-item {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border-2);
}

.guided-meta-item:last-child { border-right: none; }

.guided-meta-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--amber);
  line-height: 1;
}

.guided-meta-lbl {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.guided-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}

.guided-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
}

.guided-steps li:first-child { border-top: 1px solid var(--border-2); }

.guided-steps li::before {
  content: counter(steps, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 2px;
}

.guided-steps li strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Scenario pills strip ── */
.guided-pills-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border-2);
  flex-wrap: wrap;
}

.guided-pill-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.guided-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guided-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  padding: 5px 12px;
  transition: border-color 0.2s, color 0.2s;
}

.guided-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 640px) {
  .guided-section { padding: 56px 20px; }
  .guided-meta { flex-direction: column; }
  .guided-meta-item { border-right: none; border-bottom: 1px solid var(--border-2); }
  .guided-meta-item:last-child { border-bottom: none; }
  .guided-pills-row { gap: 12px; }
}

/* ─── PHOTO GRID ─── */
.photo-section { background: var(--bg); padding-bottom: 0; }

.photo-header { margin-bottom: 48px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 4px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}

.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
  transition: all 0.5s ease;
  display: block;
}

.photo-item:hover img {
  filter: brightness(0.9) saturate(1);
  transform: scale(1.05);
}

.photo-item:nth-child(1) { grid-column: span 2; grid-row: span 2; min-height: 480px; }
.photo-item:nth-child(2) { min-height: 236px; }
.photo-item:nth-child(3) { min-height: 236px; }
.photo-item:nth-child(4) { min-height: 236px; }
.photo-item:nth-child(5) { min-height: 236px; }
.photo-item:nth-child(6) { grid-column: span 2; min-height: 300px; }
.photo-item:nth-child(7) { min-height: 300px; }
.photo-item:nth-child(8) { min-height: 300px; }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(transparent, rgba(6,8,15,0.9));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,183,0,0.8);
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.photo-item:hover .photo-caption { transform: translateY(0); }

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background: var(--bg2);
  border-top: 1px solid var(--border-2);
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-top: 64px;
  align-items: start;
}

.role-card {
  border: 1px solid var(--border-2);
  padding: 48px 40px;
  position: relative;
}

.role-card.instructor { border-color: rgba(255,183,0,0.3); }
.role-card.trainee    { border-color: rgba(0,229,160,0.3); }

.role-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 28px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.instructor .role-badge { background: var(--amber); color: var(--bg); }
.trainee .role-badge    { background: var(--green); color: var(--bg); }

.role-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--text);
  margin-bottom: 16px;
}

.role-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.role-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.role-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.role-features li::before {
  content: '→';
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.trainee .role-features li::before { color: var(--green); }

.roles-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.divider-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg2);
}

/* ─── SENSORS ─── */
.sensors-section {
  background: var(--bg);
  padding: 100px 80px;
}

.sensors-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: center;
}

.sensor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.sensor-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  border: 1px solid var(--border);
  padding: 7px 14px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all 0.2s;
}

.sensor-tag:hover {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}

/* ─── SCENARIOS ─── */
.scenarios-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-2);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: var(--border-2);
}

.scenario-card {
  background: var(--bg2);
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.scenario-card:hover { background: var(--bg3); }

.scenario-emoji {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.scenario-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 8px;
}

.scenario-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── CTA ─── */
.cta-section {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border-2);
  overflow: hidden;
  padding: 120px 80px;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,183,0,0.07) 0%, transparent 70%);
}

.cta-section .section-title { margin-bottom: 20px; }

.cta-section .section-body {
  max-width: 480px;
  margin: 0 auto 48px;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.2s;
}

.appstore-btn:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.appstore-btn-text {
  text-align: left;
}

.appstore-btn-text span:first-child {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.appstore-btn-text span:last-child {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border-2);
  padding: 60px 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--text); }

.footer-legal {
  border-top: 1px solid var(--border-2);
  padding: 20px 0;
  margin-bottom: 8px;
}

.footer-legal-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0;
  transition: color 0.2s;
}

.footer-legal-toggle:hover { color: var(--amber); }

.legal-chevron {
  color: var(--text-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.footer-legal.open .legal-chevron { transform: rotate(180deg); }

.footer-legal.open .footer-legal-toggle { color: var(--amber); }

.footer-legal-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.footer-legal.open .footer-legal-body {
  max-height: 300px;
  padding-top: 16px;
}

.footer-legal-body p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
  max-width: 860px;
}

.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ─── HOW-TO PAGE ─── */
.howto-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}

.howto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,183,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,183,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.howto-body {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px;
}

/* Sticky sidebar */
.howto-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
  padding-right: 48px;
  border-right: 1px solid var(--border-2);
}

.howto-sidebar h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.howto-sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.howto-sidebar nav ul a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.howto-sidebar nav ul a:hover,
.howto-sidebar nav ul a.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: rgba(255,183,0,0.05);
}

/* How-to content */
.howto-content {
  padding-left: 64px;
}

.howto-section {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-2);
}

.howto-section:last-child {
  border-bottom: none;
}

.howto-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1;
}

.howto-section .step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.howto-section p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.9;
  margin-top: 16px;
  max-width: 660px;
}

.howto-section p strong {
  color: var(--text);
  font-weight: 500;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--border-2);
  padding: 28px 24px;
  position: relative;
}

.step-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: rgba(255,183,0,0.1);
  line-height: 1;
}

.step-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 0;
  max-width: none;
}

.tip-box {
  background: rgba(255,183,0,0.06);
  border: 1px solid rgba(255,183,0,0.25);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 660px;
}

.tip-box p {
  font-size: 14px;
  color: var(--text);
  margin-top: 0;
}

.tip-box strong { color: var(--amber); }

.warning-box {
  background: rgba(255,90,31,0.06);
  border: 1px solid rgba(255,90,31,0.25);
  border-left: 3px solid var(--orange);
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 660px;
}

.warning-box p {
  font-size: 14px;
  color: var(--text);
  margin-top: 0;
}

.warning-box strong { color: var(--orange); }

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
  background: var(--border-2);
}

.scenario-row {
  display: grid;
  grid-template-columns: 48px 180px 1fr;
  gap: 0;
  background: var(--bg2);
  align-items: start;
}

.scenario-row:hover { background: var(--bg3); }

.scenario-row-emoji {
  padding: 20px 0 20px 20px;
  font-size: 22px;
}

.scenario-row-name {
  padding: 20px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-right: 1px solid var(--border-2);
}

.scenario-row-desc {
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.button-ref {
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: 32px;
  background: var(--border-2);
  max-width: 480px;
}

.btn-ref-card {
  background: var(--bg2);
  padding: 20px;
  text-align: center;
}

.btn-ref-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--amber);
  display: block;
  margin-bottom: 6px;
}

.btn-ref-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.btn-ref-actions {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.trouble-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
  background: var(--border-2);
}

.trouble-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg2);
}

.trouble-problem {
  padding: 24px;
  border-right: 1px solid var(--border-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trouble-solution {
  padding: 24px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .hero-content { padding: 0 40px 60px; }
  .hero-stats { right: 40px; bottom: 60px; }
  section { padding: 80px 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item:nth-child(1) { grid-column: span 2; }
  .photo-item:nth-child(6) { grid-column: span 1; }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; }
  .about-image { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid { grid-template-columns: 1fr; gap: 24px; }
  .roles-divider { display: none; }
  .howto-body { grid-template-columns: 1fr; padding: 40px; }
  .howto-sidebar { display: none; }
  .howto-content { padding-left: 0; }
  .step-grid { grid-template-columns: 1fr; }
  .sensors-intro { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  nav { padding: 0 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .nav-logo-text span:first-child { font-size: 16px; }
  .nav-logo-text span:last-child { display: none; }
  .hero-content { padding: 0 24px 80px; }
  .hero-stats { display: none; }
  section { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item:nth-child(1),
  .photo-item:nth-child(6) { grid-column: span 1; }
  .scenarios-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .scenario-row { grid-template-columns: 40px 1fr; }
  .scenario-row-name { border-right: none; }
  .scenario-row-desc { display: none; }
  .button-ref { max-width: 100%; }
  .trouble-row { grid-template-columns: 1fr; }
  .trouble-problem { border-right: none; border-bottom: 1px solid var(--border-2); }
  .page-hero { padding: 110px 20px 48px !important; }
  .modules-section { padding: 0 20px 60px !important; }
  .info-bar { padding: 16px 20px !important; gap: 24px !important; flex-wrap: wrap; }
  .modules-grid { grid-template-columns: 1fr !important; }
  .training-footer { padding: 24px 20px !important; flex-direction: column; gap: 8px; }
  .howto-body { padding: 24px 20px !important; }
  h1, .page-title { font-size: clamp(40px, 11vw, 88px) !important; }
}
