/* ================================================================
   Edge Alpha Labs — design system
   Black / white / ember research-lab aesthetic
   ================================================================ */

:root {
  /* Surfaces */
  --bg: #060607;
  --bg-alt: #0a0a0c;
  --bg-card: #0e0e11;
  --bg-card-hover: #131317;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --text: #f4f2ef;
  --text-2: #a7a5a0;
  --text-3: #6f6d68;

  /* Fire accents */
  --ember: #ff6b2c;
  --amber: #ffb054;
  --gold: #d9a441;
  --fire-red: #e5484d;
  --ember-soft: rgba(255, 107, 44, 0.12);
  --ember-line: rgba(255, 107, 44, 0.35);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--ember); color: #0a0a0a; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #0a0a0a;
  padding: 0.6rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
}

.mini-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, #ff8a3d 100%);
  color: #180a03;
  box-shadow: 0 0 0 rgba(255, 107, 44, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 44, 0.35);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--ember-line);
  background: var(--ember-soft);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.02rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; }

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-cta { margin-left: 0.4rem; }

.site-nav a.active,
.dropdown a.active { color: var(--ember); }

/* Dropdown (Products) */
.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 68px;
}
.nav-drop-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: color 0.2s;
}
.nav-drop-btn:hover, .has-dropdown.open .nav-drop-btn { color: var(--text); }
.nav-drop-btn.active { color: var(--ember); }
.nav-drop-btn .caret {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.has-dropdown.open .caret,
.has-dropdown:hover .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #0b0b0e;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.5rem;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem !important;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--ember-soft); color: var(--text); }
.dropdown .dropdown-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.55rem 0.85rem 0.3rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(68px + clamp(4rem, 9vh, 7rem)) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 {
  background: linear-gradient(180deg, #ffffff 55%, #c9c6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.4rem;
}
.hero-copy .lead { max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-meta {
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Terminal mock */
.terminal-frame {
  background: linear-gradient(180deg, #0d0d10 0%, #09090b 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 107, 44, 0.06);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.terminal-bar .dot:first-child { background: rgba(229, 72, 77, 0.7); }

.terminal-title {
  margin-left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.terminal-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 44, 0); }
}

.terminal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.terminal-pane { background: #0a0a0d; padding: 1.1rem; }

.pane-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}

.graph-svg .node { fill: var(--ember); }
.graph-svg .node-a { fill: var(--ember); filter: drop-shadow(0 0 6px rgba(255, 107, 44, 0.8)); }
.graph-svg .node-b { fill: var(--amber); }
.graph-svg .node-c { fill: var(--gold); }
.graph-svg .node-d { fill: rgba(255, 176, 84, 0.5); }
.graph-svg .node-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  fill: var(--text-2);
}
.graph-svg .node-a { animation: nodeGlow 3.5s ease-in-out infinite; }
@keyframes nodeGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.spark-svg { width: 100%; height: 64px; margin-bottom: 0.9rem; }

.signal-list { display: grid; gap: 0.45rem; margin-bottom: 0.95rem; }
.signal-list li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.sig { font-size: 0.6rem; }
.sig-up { color: var(--ember); }
.sig-risk { color: var(--fire-red); }
.sig-flat { color: var(--gold); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0.25rem 0.6rem;
}
.chip-hot { color: var(--amber); border-color: var(--ember-line); background: var(--ember-soft); }

/* Pillars */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(3.5rem, 7vh, 5.5rem);
}

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover {
  border-color: var(--ember-line);
  background: rgba(255, 107, 44, 0.04);
  transform: translateY(-3px);
}
.pillar h3 { margin-bottom: 0.55rem; }
.pillar p { color: var(--text-2); font-size: 0.95rem; }

.pillar-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--ember-line);
  border-radius: 11px;
  color: var(--ember);
  background: var(--ember-soft);
  margin-bottom: 1.2rem;
}
.pillar-icon svg { width: 22px; height: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(68px + clamp(3.5rem, 8vh, 5.5rem)) 0 clamp(2.8rem, 6vh, 4.2rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 55vw; height: 55vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 1.1rem;
  background: linear-gradient(180deg, #ffffff 55%, #c9c6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead { max-width: 44rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(60% 130% at 50% 0%, rgba(255, 107, 44, 0.09), transparent),
    var(--bg-card);
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--text-2); max-width: 38rem; margin: 0 auto 1.8rem; }
.cta-band .btn + .btn { margin-left: 0.6rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.6rem, 5vh, 4rem); }
.section-head h2 { margin-bottom: 0.9rem; }
.section-sub { color: var(--text-2); font-size: 1.06rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.about-copy p + p { margin-top: 1.25rem; color: var(--text-2); }
.about-copy .lead { color: var(--text); }

.about-values { display: grid; gap: 1rem; }
.value {
  border-left: 2px solid var(--ember-line);
  padding: 0.35rem 0 0.35rem 1.3rem;
  transition: border-color 0.3s;
}
.value:hover { border-color: var(--ember); }
.value h3 {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 1.05rem; margin-bottom: 0.35rem;
}
.value-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ember);
  border: 1px solid var(--ember-line);
  border-radius: 6px;
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
.value p { color: var(--text-2); font-size: 0.94rem; }

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: var(--ember-line);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 32px rgba(255, 107, 44, 0.05);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-2); font-size: 0.96rem; }

.card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ember);
  transition: color 0.2s;
}
.card-link:hover { color: var(--amber); }

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  display: inline-block;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1.15rem;
}
.tag-flagship { color: var(--ember); border-color: var(--ember-line); background: var(--ember-soft); }
.tag-media { color: var(--gold); border-color: rgba(217, 164, 65, 0.4); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.product-flagship {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at top right, rgba(255, 107, 44, 0.08), transparent 55%),
    var(--bg-card);
}
.product-flagship h3 { font-size: 1.6rem; }
.product-flagship p { max-width: 40rem; }

/* ---------- Terminal section ---------- */
.terminal-headline {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.check-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}
.check-list li::before {
  content: "▸";
  color: var(--ember);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.module-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 1rem 1.3rem;
  background: var(--bg-card);
  transition: background 0.25s;
}
.module-list li + li { border-top: 1px solid var(--line); }
.module-list li:hover { background: var(--bg-card-hover); }
.module-name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ember);
  min-width: 9.5rem;
}
.module-desc { color: var(--text-2); font-size: 0.92rem; }

.terminal-cta { margin-top: 1.8rem; }

/* ---------- Research ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.research-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.insight-card { display: flex; flex-direction: column; }
.insight-card h3 { font-size: 1.08rem; line-height: 1.35; }
.insight-card p { flex: 1; }
.insight-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.8rem;
}
.insight-cat { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.channel-list { display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.channel-list li { display: grid; gap: 0.15rem; }
.channel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.channel-list a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.channel-list a:hover { color: var(--ember); }

.contact-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.015);
}
.contact-note p { color: var(--text-2); font-size: 0.94rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-field { display: grid; gap: 0.45rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field select:invalid { color: var(--text-3); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
}

.form-status { font-size: 0.9rem; color: var(--amber); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050506;
  padding: clamp(3rem, 6vh, 4.5rem) 0 1.8rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--line);
}

.footer-tagline {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.94rem;
  max-width: 22rem;
}

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-2);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover {
  color: var(--ember);
  border-color: var(--ember-line);
  background: var(--ember-soft);
}

.footer-col { display: grid; gap: 0.65rem; align-content: start; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.footer-col a {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.2s;
  width: fit-content;
}
.footer-col a:hover { color: var(--text); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .graph-svg .node-a { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .product-grid, .research-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .product-flagship { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 6, 7, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin: 1.1rem 0 0; justify-content: center; }

  /* Dropdown becomes an accordion on mobile */
  .has-dropdown {
    height: auto;
    display: block;
    position: static;
  }
  .nav-drop-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 0.3rem 0 0.6rem 1rem;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: grid; }
  .dropdown a { border-bottom: none !important; padding: 0.6rem 0.5rem !important; }

  .pillars { grid-template-columns: 1fr; }
  .about-grid, .terminal-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .terminal-body { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .product-grid, .research-grid, .insight-grid { grid-template-columns: 1fr; }
  .product-flagship { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .container { width: calc(100% - 2.4rem); }
}
