:root {
  --bg: #000000;
  --bg-2: #0d0d0d;
  --panel: rgba(15, 15, 15, 0.85);
  --panel-2: rgba(20, 20, 20, 0.90);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-dim: #a0a0a0;
  --muted: #666666;
  --accent: #e08a28;
  --accent-soft: #b86a1c;
  --accent-glow: rgba(224, 138, 40, 0.28);
  --vanta-color-hero: #3d2200;
  --vanta-color-dim: #2a1600;
  --shimmer-rgb: 255, 190, 100;
  --danger: #b03a2e;
  --ok: #2e7d4f;
  --fluid-dark: #0a0a0a;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-brand: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo-filter: brightness(0) invert(1);
  /* RGB channel triplets for rgba() usage in animations */
  --text-rgb: 255, 255, 255;
  --accent-rgb: 224, 138, 40;
  --ok-rgb: 46, 125, 79;
  --danger-rgb: 176, 58, 46;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}


html {
  background: var(--bg);
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: transparent; }

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


/* === Layout shell === */
.shell {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
}
.brand-logo {
  height: 40px !important;
  width: 40px !important;
  object-fit: contain;
  flex-shrink: 0;
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  height: var(--nav-btn-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 4px;
  background: rgba(var(--accent-rgb), 0.18);
  backdrop-filter: blur(4px);
  color: var(--text-dim);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(var(--shimmer-rgb), 0.15) 40%,
    rgba(var(--shimmer-rgb), 0.45) 50%,
    rgba(var(--shimmer-rgb), 0.15) 60%,
    transparent 80%
  );
  transform: skewX(-15deg);
  animation: nav-cta-shimmer 3s linear infinite;
  pointer-events: none;
}
@keyframes nav-cta-shimmer {
  0%   { left: -80%; }
  100% { left: 140%; }
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* === Burger button === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--nav-btn-h);
  height: var(--nav-btn-h);
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.burger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* === Mobile menu === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 14px 24px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mobile-menu-link:last-of-type { border-bottom: none; }
.mobile-menu-link:hover { color: var(--text); }
.mobile-menu-cta {
  margin-top: 24px;
  font-size: 12px;
}

@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-right { --nav-btn-h: 28px; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .brand-logo { height: 28px !important; width: 28px !important; }
}

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
}

/* === Hero === */
#vanta-hero {
  position: fixed;
  inset: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
}
#vanta-hero canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(4px);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 24px 0 0;
  max-width: 14ch;
}
.hero h1 .line-2 {
  display: block;
  color: var(--accent);
  font-weight: 500;
}

.hero p.sub {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 52ch;
}

.hero-madefor {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.madefor-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  position: relative;
  padding-right: 16px;
}
.madefor-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--border-2);
}
.madefor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.madefor-list li {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 7px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 100px;
  background: rgba(var(--accent-rgb), 0.18);
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.madefor-list li::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(var(--shimmer-rgb), 0.15) 40%,
    rgba(var(--shimmer-rgb), 0.55) 50%,
    rgba(var(--shimmer-rgb), 0.15) 60%,
    transparent 80%
  );
  transform: skewX(-15deg);
  animation: madefor-shimmer 2s linear infinite;
  pointer-events: none;
}
.madefor-list li:nth-child(1)::after { animation-delay: -0.0s; }
.madefor-list li:nth-child(2)::after { animation-delay: -0.6s; }
.madefor-list li:nth-child(3)::after { animation-delay: -1.2s; }
.madefor-list li:nth-child(4)::after { animation-delay: -1.8s; }
@keyframes madefor-shimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}
.madefor-list li:hover {
  border-color: var(--accent);
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(15, 15, 15, 0.85);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hero side telemetry strip */
.hero-telemetry {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.tele-cell {
  background: rgba(15, 15, 15, 0.85);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.tele-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
}
.tele-value {
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-feature-settings: "tnum";
}
.tele-value .unit {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 4px;
}
.tele-value.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 880px) {
  .hero-telemetry { grid-template-columns: repeat(2, 1fr); }
}

/* === Features (full-height snap panels) === */
.feature-panel {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0 88px;
  position: relative;
}
.feature-panel-text {
  width: 42%;
  max-width: 480px;
  position: relative;
  z-index: 5;
  /* sit clearly over the fluid */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.feature-panel-text .feature-headline,
.feature-panel-text .feature-desc,
.feature-panel-text .feature-name {
  position: relative;
}

/* Feature panel animation visual */
.feature-panel-visual {
  flex-shrink: 0;
  width: 38%;
  max-width: 460px;
  height: 72vh;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-panel-visual iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

@media (max-width: 880px) {
  .feature-panel-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    z-index: 2; /* text is z-index: 5 */
    align-items: center;
    justify-content: center;
  }
}

/* === Word-by-word slide-up reveal === */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.05;
  padding-bottom: 0.12em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.7, 0.4),
    opacity 0.3s ease;
  will-change: transform, opacity;
}
.hero.in .word-inner,
.feature-panel.in .word-inner {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--word-i, 0) * 32ms),
    opacity 0.55s ease calc(var(--word-i, 0) * 32ms);
}

/* Reveal helper for non-text blocks (chips, buttons, telemetry-like rows) */
.hero .stagger-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
}
.hero.in .stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger-i, 0) * 60ms + 320ms);
}

.feature-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}
.feature-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
}
.feature-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.feature-desc em {
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 500;
}

.feature-stepper {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.feature-stepper.visible {
  opacity: 1;
}
.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.5);
}
.step-line {
  width: 36px;
  height: 1px;
  background: var(--border-2);
}

@media (max-width: 880px) {
  .feature-panel {
    align-items: flex-end;
    padding: 0 0 56px;
  }
  .feature-panel-text {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 24px;
  }
  .feature-stepper { bottom: 32px; }
}

/* === Section (legacy non-pin) === */
.section {
  padding: 140px 0;
  position: relative;
  scroll-snap-align: start;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 18ch;
}
.section-title--wide {
  max-width: 28ch;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
}
.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.5;
}

/* === Features === */
.features-list {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-row {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  padding: 48px 48px;
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  transition: background 0.3s ease;
}
.feature-row:hover {
  background: rgba(25, 25, 25, 0.95);
}
.feature-row:hover .feature-index {
  color: var(--accent);
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  padding-top: 6px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 500;
}

.feature-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  font-weight: 500;
}

.feature-desc {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 16px;
  margin: 0;
}

.feature-visual {
  margin-top: 24px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.4;
}

@media (max-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 24px;
  }
  .feature-index { padding-top: 0; }
}

/* === How it works === */
.steps {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.step:hover,
.step:active {
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 55%), var(--panel-2);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 500;
}
.step p {
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 15px;
  margin: 0;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

/* === Built for === */
.builtfor-list {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bf-card {
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.7), rgba(11, 14, 19, 0.85));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.bf-card:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.85), rgba(13, 16, 22, 0.85));
}
.bf-card:hover .bf-illu {
  transform: translateY(-4px);
}
.bf-illu {
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
}
.bf-illu svg {
  width: 100%;
  height: 100%;
}
.bf-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.bf-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 500;
}
.bf-card p {
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 880px) {
  .builtfor-list { grid-template-columns: 1fr; }
}

/* === Testimonials === */
.testimonials {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
}
.testimonial {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 36px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.testimonial:hover,
.testimonial:active {
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 55%), var(--panel-2);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.t-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.85;
  height: 28px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.005em;
  flex: 1;
}
.testimonial figcaption {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.t-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.t-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* === CTA === */
.cta {
  scroll-snap-align: start;
  padding: 100px 0 140px;
  position: relative;
}
.cta-card {
  position: relative;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  padding: 80px 60px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
  z-index: 0;
}
.cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(var(--shimmer-rgb), 0.08) 40%,
    rgba(var(--shimmer-rgb), 0.25) 50%,
    rgba(var(--shimmer-rgb), 0.08) 60%,
    transparent 80%
  );
  transform: skewX(-15deg);
  animation: cta-shimmer 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes cta-shimmer {
  0%   { left: -80%; }
  100% { left: 140%; }
}
.cta-content { position: relative; z-index: 2; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 500;
  max-width: 18ch;
}
.cta p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.5;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}
.cta-form input {
  background: var(--panel);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-form input::placeholder { color: var(--muted); }

.whatsapp-cta,
.instagram-cta {
  display: none;
}


@media (max-width: 720px) {
  .cta-card { padding: 48px 24px; }
  .cta-card::after {
    top: -80%;
    left: 0;
    width: 200%;
    height: 40%;
    transform: skewY(-15deg);
    background: linear-gradient(
      180deg,
      transparent 20%,
      rgba(var(--shimmer-rgb), 0.08) 40%,
      rgba(var(--shimmer-rgb), 0.25) 50%,
      rgba(var(--shimmer-rgb), 0.08) 60%,
      transparent 80%
    );
    animation: cta-shimmer-mobile 3.5s linear infinite;
  }
  @keyframes cta-shimmer-mobile {
    0%   { top: -80%; }
    100% { top: 140%; }
  }
  .cta-form { grid-template-columns: 1fr; }
  .cta-form button[type="submit"] { display: none; }
  .cta-form input { display: none; }

  .whatsapp-cta,
  .instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 2px;
  }
}

/* === Footer === */
.footer {
  scroll-snap-align: start;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a:hover { color: var(--accent); }

/* === Scroll hint === */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint .bar {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (max-width: 880px) {
  .scroll-hint { bottom: 16px; }
}

/* === Tweaks panel safe zone === */
#tweaks-root { position: relative; z-index: 100; }

/* === Reveal on scroll === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* === Crosshair decorative === */
.corner-marks {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 3;
}
.corner-marks span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--border-2);
  border-style: solid;
  border-width: 0;
}
.corner-marks span.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner-marks span.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner-marks span.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner-marks span.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* === Section number === */
.sec-num {
  position: fixed;
  top: 100px;
  right: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sec-num.visible { opacity: 1; }
@media (max-width: 720px) {
  .sec-num { top: 70px; right: 20px; }
}

/* ============================================================
   INLINE ANIMATIONS
   All four feature-panel animations, scoped to avoid conflicts
   ============================================================ */

/* ── Film Reel ─────────────────────────────────────────────── */
.film-scene {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.film-reel {
  width: 80px;
  height: 80px;
  animation: film-spin 5s linear infinite;
  flex-shrink: 0;
}
.film-reel--right { animation-direction: reverse; }
.film-reel svg { width: 100%; height: 100%; }
.film-reel svg circle { stroke: rgba(var(--text-rgb), 0.55); fill: none; }
.film-reel svg line  { stroke: rgba(var(--text-rgb), 0.50); }
@keyframes film-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.film-strip-track {
  position: relative;
  width: 130px;
  height: 380px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  border-top: 2px solid rgba(var(--text-rgb), 0.35);
  border-bottom: 2px solid rgba(var(--text-rgb), 0.35);
}
.film-strip-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.film-unit {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}
.film-perfs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 3px 0;
}
.film-perf {
  width: 10px;
  height: 7px;
  border: 1.5px solid rgba(var(--text-rgb), 0.45);
  border-radius: 2px;
  flex-shrink: 0;
}
.film-frame {
  width: 80px;
  height: 56px;
  border: 1.5px solid rgba(var(--text-rgb), 0.55);
  margin: 0 3px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.film-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(var(--text-rgb), 0.20);
}
.film-scene-line {
  position: absolute;
  background: rgba(var(--text-rgb), 0.18);
}
.film-tick-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(var(--text-rgb), 0.45);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  margin-left: 4px;
  flex-shrink: 0;
}
.film-playhead {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(var(--accent-rgb), 0.6);
  pointer-events: none;
  z-index: 20;
}
.film-playhead::before {
  content: '';
  position: absolute;
  left: -1px; top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(var(--accent-rgb), 0.85);
}
.film-playhead::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid rgba(var(--accent-rgb), 0.85);
}

/* ── Notification ──────────────────────────────────────────── */
.anim-notif {
  align-items: center;
}
@media (max-width: 880px) {
  .anim-notif {
    align-items: flex-start;
  }
}
.notif-stack {
  position: relative;
  width: 280px;
}
.notif-card {
  position: absolute;
  width: 280px;
  padding: 13px 17px;
  border: 1.5px solid rgba(var(--text-rgb), 0.55);
  border-radius: 12px;
  background: var(--bg);
  color: rgba(var(--text-rgb), 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}
.notif-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(var(--text-rgb), 0.5);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-badge {
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.6;
}
.notif-message {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(var(--text-rgb), 0.75);
}
.notif-time {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(var(--text-rgb), 0.45);
  margin-top: 2px;
}
.notif-card.notif-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Floorplan ─────────────────────────────────────────────── */
.floor-scene {
  width: min(280px, 90%);
  aspect-ratio: 320 / 460;
}
.floor-scene svg { width: 100%; height: 100%; overflow: visible; }
/* CSS overrides for SVG presentation attributes */
.anim-floor #fp line { stroke: rgba(var(--text-rgb), 0.58) !important; }
.anim-floor #w7,
.anim-floor #w8 { stroke: rgba(var(--text-rgb), 0.32) !important; }
.anim-floor #d1,
.anim-floor #d2 { stroke: rgba(var(--text-rgb), 0.20) !important; }
.anim-floor #z1f              { fill: var(--ok); }
.anim-floor #z2f,
.anim-floor #z3f              { fill: var(--accent); }
.anim-floor #z4f              { fill: var(--danger); }
.anim-floor #z1b              { stroke: var(--ok);    fill: none; }
.anim-floor #z2b,
.anim-floor #z3b              { stroke: var(--accent); fill: none; }
.anim-floor #z4b              { stroke: var(--danger); fill: none; }
.anim-floor #l1,
.anim-floor #l2,
.anim-floor #l3,
.anim-floor #l4               { fill: var(--text); }
.anim-floor #pr               { stroke: var(--danger); }
.anim-floor #hdr              { fill: var(--text); }
.anim-floor #cams path        { fill: rgba(var(--text-rgb), 0.28); }
.anim-floor #cams text        { fill: rgba(var(--text-rgb), 0.32); }
.anim-floor #grid path        { stroke: rgba(var(--text-rgb), 0.045); }

/* ── Chat ──────────────────────────────────────────────────── */
.chat-window {
  width: 380px;
  max-width: 100%;
  height: 460px;
  position: relative;
  overflow: hidden;
  padding: 20px 16px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-bubble {
  max-width: 72%;
  padding: 11px 15px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}
.chat-bubble--right {
  align-self: flex-end;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.chat-bubble--left {
  align-self: flex-start;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-bubble.chat-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chat-bubble.chat-fading {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.chat-typing {
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid var(--border-2);
  border-radius: 20px;
  border-bottom-left-radius: 4px;
  padding: 11px 15px;
  display: flex;
  gap: 5px;
  align-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-typing.chat-visible  { opacity: 1; transform: translateY(0) scale(1); }
.chat-typing.chat-fading   { opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

/* ── Dashboard ─────────────────────────────────────────── */
.dash-window {
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.dash-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ok);
}

.dash-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.dash-body { display: flex; flex-direction: column; }

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
.dash-row:last-child { border-bottom: none; }
.dash-row.dash-visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-row--danger { animation: dash-danger-pulse 2.4s ease-in-out infinite; }
@keyframes dash-danger-pulse {
  0%, 100% { background: transparent; }
  50%       { background: rgba(var(--danger-rgb), 0.10); }
}

.dash-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-val {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  font-feature-settings: "tnum";
}

.dash-val--danger {
  color: var(--danger);
  animation: dash-blink 2.4s ease-in-out infinite;
}
@keyframes dash-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.dash-val--ok  { color: var(--ok); }
.dash-val--dim { color: var(--text-dim); }

.dash-sparkline {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dash-sparkline.dash-visible { opacity: 1; }

.spark-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.spark-bar {
  flex: 1;
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 2px 2px 0 0;
  height: 0;
  transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.spark-bar.spark-current { background: var(--accent); }

/* =================== PAGE LOADER =================== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loader-logo {
  width: min(320px, 80vw);
  transform: translateX(0.45vw);
}

#loader-logo svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(360px, 80vw);
  text-align: center;
  transform: translateY(20px);
}

#loader-name {
  font-family: "Oswald", sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

@media (max-width: 720px) {
  #loader-name {
    font-size: clamp(56px, 14vw, 80px);
  }
}

@media (max-width: 880px) {
  .dash-window {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

#loader-by {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  margin-top: 20px;
  opacity: 0.6;
  width: 100%;
  transform: none;
}

#loader-brand {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
}

/* === Nav right group === */
.nav-right {
  --nav-btn-h: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Theme toggle button === */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  width: var(--nav-btn-h);
  height: var(--nav-btn-h);
  padding: 0;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
html:not([data-theme="light"]) .icon-moon,
html[data-theme="light"] .icon-sun { display: none; }

/* === Light theme === */
[data-theme="light"] {
  --bg: #ede6d5;
  --bg-2: #f5efdf;
  --panel: rgba(255, 252, 245, 0.72);
  --panel-2: rgba(244, 240, 231, 0.85);
  --border: rgba(20, 24, 31, 0.10);
  --border-2: rgba(20, 24, 31, 0.22);
  --text: #14181f;
  --text-dim: #4a4f5a;
  --muted: #7a7569;
  --accent: #e08a28;
  --accent-soft: #b86a1c;
  --accent-glow: rgba(224, 138, 40, 0.28);
  --text-rgb: 20, 24, 31;
  --accent-rgb: 224, 138, 40;
  --logo-filter: none;
  --vanta-color-hero: #f0d4a8;
  --vanta-color-dim: #e8c080;
  --shimmer-rgb: 255, 255, 255;
}
[data-theme="light"] .nav {
  background: linear-gradient(to bottom, rgba(237, 230, 213, 0.92), rgba(237, 230, 213, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .hero-eyebrow {
  background: rgba(255, 252, 245, 0.7);
}
[data-theme="light"] .btn-ghost {
  background: rgba(255, 252, 245, 0.78);
}
[data-theme="light"] .tele-cell {
  background: rgba(255, 252, 245, 0.78);
}
[data-theme="light"] .feature-row {
  background: rgba(255, 252, 245, 0.78);
}
[data-theme="light"] .feature-row:hover {
  background: rgba(252, 248, 240, 0.92);
}
[data-theme="light"] .feature-panel-text {
  text-shadow: 0 1px 0 rgba(236, 231, 219, 0.6);
}
