/* Canyon Road - Shared Styles */

:root {
  --pine-black: #06100C;
  --deep-fir:   #0A2A1F;
  --evergreen:  #0E4A33;
  --moss:       #4FA36A;
  --sage:       #C5D6AE;
  --river:      #1A8890;
  --sunlit:     #E2B84A;
  --stone:      #E2D8C9;
  --mist:       #F4F8F6;

  --bark:       #4A362A;
  --cedar:      #8A4A22;
  --soil:       #2A1E18;
  --clay:       #C86A3E;

  --radius: 18px;
  --radius2: 28px;
  --border: rgba(7, 17, 13, 0.12);
  --shadow: 0 22px 70px rgba(7, 17, 13, 0.14);
  --shadow2: 0 14px 36px rgba(7, 17, 13, 0.18);

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --display: "DM Serif Display", Georgia, serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--pine-black);
  background: var(--mist);
  overflow-x: hidden;
}

/* Flowing background that adapts to viewport */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(min(100vw, 1200px) min(60vh, 700px) at 15% -5%, rgba(197,214,174,0.65), transparent 60%),
    radial-gradient(min(90vw, 1100px) min(55vh, 700px) at 85% 5%, rgba(26,136,144,0.28), transparent 55%),
    radial-gradient(min(80vw, 900px) min(45vh, 500px) at 50% 50%, rgba(14,74,51,0.08), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--stone) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(min(90vw, 1100px) min(50vh, 600px) at 10% 95%, rgba(138,74,34,0.18), transparent 55%),
    radial-gradient(min(80vw, 900px) min(45vh, 560px) at 85% 90%, rgba(226,184,74,0.20), transparent 55%);
  pointer-events: none;
}

a { color: inherit; }

/* Animated link underlines */
.nav-links a.link,
.panel a,
.desc a,
.lead a,
footer a {
  position: relative;
  text-decoration: none;
}
.panel a::after,
.desc a::after,
.lead a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.panel a:hover::after,
.desc a:hover::after,
.lead a:hover::after {
  width: 100%;
}

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

/* NAV - Blended by default, solid on scroll */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(244,248,246,0.92);
  border-bottom-color: rgba(7,17,13,0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand .name {
  display: grid;
  gap: 0px;
  min-width: 0;
}
.brand strong {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand span {
  font-family: var(--mono);
  font-size: 12px;
  opacity: .72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 13px;
  text-decoration: none;
  opacity: .86;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  opacity: 1;
  border-color: rgba(14,74,51,0.20);
  background: rgba(7,17,13,0.04);
}

/* Products dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  text-decoration: none;
  opacity: .86;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  color: inherit;
  font-family: inherit;
}
.dropdown-toggle:hover {
  opacity: 1;
  border-color: rgba(14,74,51,0.20);
  background: rgba(7,17,13,0.04);
}
.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 180px;
  background: rgba(244,248,246,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(14,74,51,0.16);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(7,17,13,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 8px;
  opacity: 0.9;
}
.dropdown-menu a:hover {
  background: rgba(14,74,51,0.08);
  opacity: 1;
}
.dropdown-menu .product-name {
  font-weight: 600;
  color: var(--deep-fir);
}
.dropdown-menu .product-desc {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(14,74,51,0.20);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--pine-black);
}
.mobile-menu-toggle:hover {
  background: rgba(7,17,13,0.04);
}
.mobile-menu-toggle svg {
  display: block;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,16,12,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--mist);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(7,17,13,0.15);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(7,17,13,0.10);
}
.mobile-nav-header strong {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-nav-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--pine-black);
  opacity: 0.7;
}
.mobile-nav-close:hover {
  opacity: 1;
}
.mobile-nav-content {
  padding: 20px;
  display: grid;
  gap: 8px;
}
.mobile-nav-content a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  transition: background 0.15s ease;
}
.mobile-nav-content a:hover {
  background: rgba(7,17,13,0.04);
}
.mobile-nav-content .section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 20px 16px 8px 16px;
}
.mobile-nav-content .product-item {
  padding-left: 28px;
  font-size: 14px;
}
.mobile-nav-content .product-item .product-name {
  font-weight: 600;
  color: var(--deep-fir);
}
.mobile-nav-content .product-item .product-desc {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
.mobile-nav-buttons {
  padding: 20px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(7,17,13,0.10);
}
.mobile-nav-buttons .btn {
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 750;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--evergreen);
  color: #fff;
  box-shadow: var(--shadow2);
}
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 18px 44px rgba(7,17,13,0.22); }
.btn.ghost {
  background: rgba(238,242,240,0.55);
  border: 1px solid rgba(122,78,45,0.30);
  color: var(--cedar);
}
.btn.ghost:hover { background: rgba(231,229,223,0.75); }

/* HERO */
.hero {
  padding: 72px 0 20px 0;
}
.hero-surface {
  position: relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.58);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-surface::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(22,61,46,0.13), transparent 62%),
    radial-gradient(820px 480px at 88% 20%, rgba(43,111,120,0.11), transparent 62%),
    radial-gradient(780px 520px at 22% 92%, rgba(122,78,45,0.11), transparent 62%),
    radial-gradient(760px 520px at 84% 96%, rgba(216,181,106,0.13), transparent 62%),
    linear-gradient(90deg, rgba(122,78,45,0.05), rgba(216,181,106,0.08), rgba(43,111,120,0.05));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 52px 44px 44px 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.72);
  box-shadow: 0 10px 22px rgba(7,17,13,0.06);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  width: fit-content;
}
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(106,143,91,0.16);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(106,143,91,0.16); }
  50% { box-shadow: 0 0 0 8px rgba(106,143,91,0.08); }
}

/* Hero staggered fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-inner > div:first-child > * {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-inner .kicker { animation-delay: 0.1s; }
.hero-inner h1 { animation-delay: 0.2s; }
.hero-inner .lead { animation-delay: 0.35s; }
.hero-inner .bullets { animation-delay: 0.5s; }
.hero-inner .cta { animation-delay: 0.65s; }
.hero-visual {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.4s forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

h1 {
  margin: 16px 0 14px 0;
  font-family: var(--display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--deep-fir);
  position: relative;
  display: inline-block;
}
h1::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--evergreen), var(--river), var(--sunlit));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 1s ease-out 0.5s forwards;
  will-change: transform;
}
@keyframes lineGrow {
  to { transform: scaleX(1); }
}

.lead {
  margin: 0;
  font-size: 17px;
  opacity: .92;
  max-width: 60ch;
  line-height: 1.55;
}
.lead-accent {
  position: relative;
  display: inline-block;
}
.lead-accent::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--evergreen), var(--river), var(--sunlit));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 1s ease-out 1.5s forwards;
  will-change: transform;
}
.lead em {
  font-style: normal;
  color: var(--deep-fir);
  background: linear-gradient(135deg, rgba(226,184,74,0.25), rgba(216,181,106,0.18));
  border: 1px solid rgba(216,181,106,0.3);
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(226,184,74,0.15);
  animation: emGlow 3s ease-in-out infinite;
}
@keyframes emGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(226,184,74,0.15); }
  50% { box-shadow: 0 0 20px rgba(226,184,74,0.25); }
}

.bullets {
  margin: 24px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 54ch;
}
.bullets li {
  padding-left: 18px;
  position: relative;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--evergreen);
  opacity: 0.6;
}
.bullets strong {
  display: block;
  color: var(--deep-fir);
  font-size: 15px;
  margin-bottom: 2px;
}
.bullets span {
  display: block;
  font-size: 14px;
  opacity: .85;
  line-height: 1.45;
}
.bullets code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(14,74,51,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--deep-fir);
}

.cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.note {
  font-family: var(--mono);
  font-size: 12px;
  opacity: .76;
}

.hero-visual {
  border-radius: var(--radius2);
  border: 1px solid rgba(14,74,51,0.16);
  background: linear-gradient(145deg, rgba(10,42,31,0.95), rgba(6,16,12,0.98));
  box-shadow: 0 18px 44px rgba(7,17,13,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
  min-height: 360px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 300px at 20% 30%, rgba(26,136,144,0.15), transparent 60%),
    radial-gradient(350px 250px at 80% 70%, rgba(226,184,74,0.12), transparent 60%),
    radial-gradient(300px 200px at 50% 50%, rgba(79,163,106,0.08), transparent 50%);
  pointer-events: none;
}

/* Hero Terminal */
.hero-terminal {
  position: relative;
  z-index: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
}
.hero-terminal .terminal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
  letter-spacing: 0.03em;
}
.hero-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.hero-stream-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-stream-row.visible {
  opacity: 1;
  transform: translateX(0);
}
.hs-source {
  min-width: 135px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
}
.hs-ctx {
  font-weight: 400;
  font-size: 10px;
  opacity: 0.4;
  margin-left: 3px;
}
.hs-arrow {
  opacity: 0.3;
  flex-shrink: 0;
}
.hs-dest {
  flex: 1;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-badge {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease 0.18s, transform 0.3s ease 0.18s;
}
.hero-stream-row.visible .hs-badge {
  opacity: 1;
  transform: translateX(0);
}
.hs-badge.allowed {
  background: rgba(79,163,106,0.2);
  color: var(--moss);
  border: 1px solid rgba(79,163,106,0.3);
}
.hs-badge.blocked {
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.3);
}
.hs-badge.prompted {
  background: rgba(226,184,74,0.15);
  color: var(--sunlit);
  border: 1px solid rgba(226,184,74,0.3);
}
.hs-badge.redirected {
  background: rgba(26,136,144,0.2);
  color: #5ec4ca;
  border: 1px solid rgba(26,136,144,0.3);
}
.hero-cursor {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--moss);
  padding: 8px 14px 0;
  opacity: 0.5;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-cursor .blink {
  animation: cursorBlink 1s step-end infinite;
}

/* Network visualization */
.network-viz {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.network-viz svg {
  width: 100%;
  height: 100%;
}

/* Node animations */
@keyframes nodePulse {
  0%, 100% { opacity: 0.7; transform: scale(1) translateZ(0); }
  50% { opacity: 1; transform: scale(1.12) translateZ(0); }
}
@keyframes pathFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -8; }
}
@keyframes shieldPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.viz-node {
  animation: nodePulse 3s ease-in-out infinite;
  will-change: transform, opacity;
}
.viz-node.n1 { animation-delay: 0s; }
.viz-node.n2 { animation-delay: 0.5s; }
.viz-node.n3 { animation-delay: 1s; }
.viz-node.n4 { animation-delay: 1.5s; }
.viz-node.n5 { animation-delay: 2s; }
.viz-node.n6 { animation-delay: 0.3s; }

.viz-path {
  stroke-dasharray: 4 4;
  animation: pathFlow 2s linear infinite;
  will-change: stroke-dashoffset;
}
.viz-path.p1 { animation-delay: 0s; }
.viz-path.p2 { animation-delay: 0.3s; }
.viz-path.p3 { animation-delay: 0.6s; }
.viz-path.p4 { animation-delay: 0.9s; }

.viz-shield {
  animation: shieldPulse 4s ease-in-out infinite;
}

.hero-visual .overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  z-index: 2;
}
.chip {
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.9);
}
.chip.river { border-color: rgba(26,136,144,0.5); background: rgba(26,136,144,0.25); }
.chip.sun { border-color: rgba(226,184,74,0.5); background: rgba(226,184,74,0.2); }
.chip.wood { border-color: rgba(200,106,62,0.5); background: rgba(138,74,34,0.25); }

/* Terminal styles (for product pages) */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-content {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  flex: 1;
}
.terminal-line {
  margin: 4px 0;
}
.terminal-line .prompt {
  color: var(--moss);
}
.terminal-line .cmd {
  color: rgba(255,255,255,0.95);
}
.terminal-line .output {
  color: rgba(255,255,255,0.6);
  padding-left: 16px;
}
.terminal-line .allow {
  color: var(--moss);
}
.terminal-line .deny {
  color: #ff6b6b;
}
.terminal-line .approve {
  color: var(--sunlit);
}

/* Sections */
section.block {
  padding: 80px 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 72ch;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--evergreen), var(--river));
  border-radius: 1px;
}
h2.big {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--deep-fir);
  line-height: 1.12;
  position: relative;
  display: inline-block;
}
h2.big::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--evergreen), var(--river));
  border-radius: 1px;
}
.desc {
  margin: 0;
  font-size: 16px;
  opacity: .90;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  border-radius: var(--radius);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.72);
  padding: 18px;
  box-shadow: 0 14px 26px rgba(7,17,13,0.06);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7,17,13,0.1);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(14,74,51,0.78), rgba(226,184,74,0.62), rgba(26,136,144,0.62));
  opacity: .9;
}
.feature::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79,163,106,0.2), transparent 60%);
  opacity: 0.6;
}
.grid3 .feature:nth-child(2)::after {
  background: radial-gradient(circle at 30% 30%, rgba(226,184,74,0.25), transparent 60%);
}
.grid3 .feature:nth-child(3)::after {
  background: radial-gradient(circle at 30% 30%, rgba(26,136,144,0.25), transparent 60%);
}
.feature h3 {
  margin: 4px 0 8px 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--deep-fir);
}
.feature p {
  margin: 0;
  font-size: 13px;
  opacity: .90;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.60);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(7,17,13,0.06);
}
.panel h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--deep-fir);
}
.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  opacity: .92;
}
.list li strong {
  color: var(--deep-fir);
  background: rgba(163,177,138,0.22);
  border: 1px solid rgba(163,177,138,0.20);
  padding: 0 6px;
  border-radius: 8px;
}

/* Value split (for product pages) */
.value-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.72);
  padding: 24px;
  box-shadow: 0 14px 26px rgba(7,17,13,0.06);
}
.value-panel h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--deep-fir);
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-panel h3 .badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,74,51,0.1);
  color: var(--evergreen);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.value-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.value-panel li {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
  opacity: 0.9;
}
.value-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--evergreen);
  opacity: 0.5;
}
.value-panel.control li::before {
  background: var(--cedar);
}
.value-panel.beacon li::before {
  background: var(--river);
}
.value-panel .panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--evergreen);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,74,51,0.25);
}
.value-panel .panel-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.value-connector {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(14,74,51,0.05);
  border: 1px dashed rgba(14,74,51,0.2);
}

/* Tiers (for product pages) */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier {
  border-radius: var(--radius);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.72);
  padding: 24px;
  box-shadow: 0 14px 26px rgba(7,17,13,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7,17,13,0.1);
}
.tier.free {
  background: rgba(244,248,246,0.4);
  border-style: dashed;
}
.tier h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--deep-fir);
}
.tier p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.55;
  flex: 1;
}
.tier .tier-cta {
  margin-top: 20px;
}
.tier .btn {
  width: 100%;
  justify-content: center;
}

/* Waitlist / Contact form */
.waitlist,
.contact {
  border-radius: var(--radius2);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(15,47,36,0.92);
  color: rgba(238,242,240,0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.waitlist::before,
.contact::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(820px 420px at 10% 0%, rgba(106,143,91,0.28), transparent 60%),
    radial-gradient(760px 420px at 90% 20%, rgba(43,111,120,0.22), transparent 60%),
    radial-gradient(760px 420px at 30% 110%, rgba(122,78,45,0.24), transparent 60%),
    radial-gradient(760px 420px at 90% 110%, rgba(226,184,74,0.22), transparent 60%);
  pointer-events: none;
}
.waitlist-inner,
.contact-inner {
  position: relative;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
}
.waitlist h2,
.contact h2 {
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.08;
  text-shadow: 0 0 30px rgba(79,163,106,0.4), 0 0 60px rgba(79,163,106,0.2);
}
.waitlist p,
.contact p {
  margin: 0;
  opacity: .90;
  font-size: 15px;
  max-width: 62ch;
}
.form {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.input,
.textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(238,242,240,0.18);
  background: rgba(7,17,13,0.30);
  color: rgba(238,242,240,0.92);
  outline: none;
  font-size: 14px;
  font-family: inherit;
}
.textarea {
  min-height: 80px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder { color: rgba(238,242,240,0.58); }
.btn.sun {
  background: var(--sunlit);
  color: var(--pine-black);
  box-shadow: 0 14px 34px rgba(216,181,106,0.20);
}
.btn.sun:hover { filter: brightness(1.03); }
.small {
  font-family: var(--mono);
  font-size: 12px;
  opacity: .78;
}

/* FAQ */
details {
  border-radius: var(--radius);
  border: 1px solid rgba(14,74,51,0.16);
  background: rgba(244,248,246,0.72);
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(7,17,13,0.06);
  transition: background 0.2s ease;
}
details:hover {
  background: rgba(244,248,246,0.9);
}
details + details { margin-top: 12px; }
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--deep-fir);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--evergreen);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: 0;
  opacity: .92;
  font-size: 14px;
  overflow: hidden;
}
details[open] p {
  animation: faqOpen 0.3s ease-out forwards;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); margin-top: 0; }
  to { opacity: 0.92; transform: translateY(0); margin-top: 10px; }
}

/* Footer - Blended by default, solid on scroll */
footer {
  padding: 34px 0 44px 0;
  font-size: 12px;
  transition: opacity 0.3s ease, background 0.3s ease;
  opacity: 0.65;
  background: transparent;
}
footer.scrolled {
  opacity: 1;
  background: rgba(244,248,246,0.6);
}
.foot {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.foot-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.foot-col-head {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-bottom: 10px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  padding: 3px 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.foot-col a:hover {
  opacity: 1;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}
.foot-bottom .social-link {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.foot-bottom .social-link:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 22px 34px 22px; }
  h1 { font-size: 48px; }
  h2.big { font-size: 30px; }
  section.block { padding: 60px 0; }
  .grid3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .value-split { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .waitlist-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .nav-links a.link, .nav-links .dropdown { display: none; }
  .hero-visual { min-height: 280px; margin-top: 24px; }
  .hero-terminal { min-height: 280px; padding: 16px; }
  .hs-source { min-width: auto; }
  .hero-stream-row { gap: 8px; font-size: 11px; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav-overlay { display: block; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  h1 { font-size: 38px; }
  h2.big { font-size: 26px; }
  section.block { padding: 48px 0; }
  .container { padding: 0 18px; }
  .hero { padding-top: 38px; }
  .hero-inner { padding: 32px 18px 28px 18px; }
  .hero-visual { min-height: 220px; }
  .hero-terminal { min-height: 220px; padding: 14px; }
  .hero-stream-row { font-size: 10px; padding: 7px 10px; gap: 6px; }
  .hs-badge { font-size: 9px; padding: 2px 7px; }
  .chip { font-size: 10px; padding: 6px 8px; }
  .tiers { grid-template-columns: 1fr; }
  .stream-row { font-size: 11px; padding: 8px 10px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { justify-content: center; }
  .nav-links > .btn { display: none; }
  .foot-links { grid-template-columns: 1fr; gap: 20px; }
  .waitlist-inner,
  .contact-inner { padding: 24px 18px; }
  .waitlist h2,
  .contact h2 { font-size: 26px; }
  .lead { font-size: 15px; }
  .world-card { padding: 24px 20px; }
  .worlds-grid { gap: 14px; }
  .feature { padding: 16px; min-height: auto; }
}

/* Two Worlds Strip */
.worlds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.world-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10,42,31,0.92), rgba(6,16,12,0.96));
  border: 1px solid rgba(79,163,106,0.16);
  padding: 32px;
  color: rgba(238,242,240,0.92);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(7,17,13,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.world-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7,17,13,0.2);
}
.world-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}
.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-card.endpoint::before {
  background: linear-gradient(180deg, var(--river), rgba(26,136,144,0.4));
}
.world-card.endpoint::after {
  background: radial-gradient(300px 200px at 85% 15%, rgba(26,136,144,0.12), transparent 60%);
}
.world-card.headless::before {
  background: linear-gradient(180deg, var(--moss), rgba(79,163,106,0.4));
}
.world-card.headless::after {
  background: radial-gradient(300px 200px at 85% 15%, rgba(79,163,106,0.12), transparent 60%);
}
.world-card .world-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
  position: relative;
}
.world-card h3 {
  margin: 0 0 6px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  position: relative;
  line-height: 1.2;
}
.world-card .world-product {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sunlit);
  margin-bottom: 12px;
  position: relative;
}
.world-card p {
  margin: 0 0 20px 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.55;
  position: relative;
}
.world-card .btn.ghost {
  border-color: rgba(238,242,240,0.2);
  color: rgba(238,242,240,0.9);
  background: rgba(238,242,240,0.08);
  position: relative;
}
.world-card .btn.ghost:hover {
  background: rgba(238,242,240,0.15);
}
.worlds-connector {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(14,74,51,0.06);
  border: 1px dashed rgba(14,74,51,0.2);
}
.worlds-connector p {
  margin: 0 0 8px 0;
  font-size: 15px;
  opacity: 0.85;
}
.worlds-connector a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--evergreen);
  text-decoration: none;
}
.worlds-connector a:hover {
  text-decoration: underline;
}

/* Event Stream */
.stream-panel {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10,42,31,0.95), rgba(6,16,12,0.98));
  border: 1px solid rgba(14,74,51,0.16);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(7,17,13,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.stream-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 300px at 10% 20%, rgba(26,136,144,0.1), transparent 60%),
    radial-gradient(350px 250px at 90% 80%, rgba(226,184,74,0.08), transparent 60%);
  pointer-events: none;
}
.stream-panel .terminal-header {
  position: relative;
}
.stream-rows {
  position: relative;
  display: grid;
  gap: 2px;
}
.stream-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}
.stream-row:hover {
  background: rgba(255,255,255,0.06);
}
.stream-source {
  min-width: 150px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.stream-ctx {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.5;
  margin-left: 4px;
}
.stream-arrow {
  opacity: 0.4;
  flex-shrink: 0;
}
.stream-dest {
  flex: 1;
  opacity: 0.75;
}
.stream-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.stream-badge.allowed {
  background: rgba(79,163,106,0.2);
  color: var(--moss);
  border: 1px solid rgba(79,163,106,0.3);
}
.stream-badge.blocked {
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.3);
}
.stream-badge.prompted {
  background: rgba(226,184,74,0.15);
  color: var(--sunlit);
  border: 1px solid rgba(226,184,74,0.3);
}
.stream-badge.redirected {
  background: rgba(26,136,144,0.2);
  color: #5ec4ca;
  border: 1px solid rgba(26,136,144,0.3);
}

@media (max-width: 980px) {
  .worlds-grid { grid-template-columns: 1fr; }
  .stream-source { min-width: auto; }
  .stream-row { flex-wrap: wrap; gap: 8px; }
}
