/* ============================================================
   THE AI EDGE — REDESIGN v2
   ============================================================ */

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

h1, h2, h3, h4, h5, h6 {
  font: inherit;
  font-weight: inherit;
}

:root {
  --bg:     #080808;
  --cream:  #F0EAE0;
  --accent: #FF4405;
  --dim:    #141412;
  --border: #1E1E1C;
  --muted:  #58564F;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: crosshair;
}

/* THREE.JS CANVAS */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.5;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--cream);
}

.nav-logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.nav-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--cream);
  padding: 9px 20px;
  text-decoration: none;
  border: 1px solid var(--cream);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(88px, 16vw, 200px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -3px;
  margin-bottom: 36px;
  color: var(--cream);
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
}

.accent-line { color: var(--cream); }

.period { color: var(--accent); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 52px;
  max-width: 400px;
  opacity: 0;
}

/* ── SUBSCRIBE FORM ───────────────────────────────────────── */
.subscribe-form { opacity: 0; }

.input-wrap {
  display: flex;
  border: 1px solid var(--muted);
  max-width: 540px;
  transition: border-color 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--cream);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cream);
  caret-color: var(--accent);
}

.email-input::placeholder { color: var(--muted); }

.submit-btn {
  background: var(--accent);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.submit-btn:hover { background: #e03800; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hero-count {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  opacity: 0;
}

.count-num {
  color: var(--cream);
  font-weight: 500;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-wrap {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dim);
  overflow: hidden;
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
}

.marquee-track .dot {
  color: var(--accent);
  letter-spacing: 0;
}

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

/* ── WHAT'S INSIDE ──────────────────────────────────────── */
.inside-section {
  position: relative;
  z-index: 10;
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 40px;
}

.inside-grid {
  border-top: 1px solid var(--cream);
}

.inside-row {
  display: grid;
  grid-template-columns: 60px 240px 1fr 40px;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-30px);
  transition: border-color 0.2s;
}

.inside-row:hover {
  border-bottom-color: var(--accent);
}

.inside-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.inside-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0px;
  color: var(--cream);
}

.inside-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
}

.inside-icon {
  font-size: 20px;
  justify-self: end;
}

/* ── SAMPLE / TERMINAL ───────────────────────────────────── */
.sample-section {
  position: relative;
  z-index: 10;
  padding: 0 0 120px;
}

.terminal-card {
  border: 1px solid var(--border);
  background: var(--dim);
  opacity: 0;
  transform: translateY(40px);
}

.terminal-header {
  background: var(--cream);
  color: var(--bg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.25;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  flex: 1;
  color: var(--bg);
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  background: var(--accent);
  color: var(--cream);
  padding: 3px 10px;
  font-weight: 500;
}

.terminal-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.t-section { display: flex; flex-direction: column; gap: 12px; }

.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 500;
}

.t-section p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 720px;
}

.t-section strong { color: var(--cream); font-weight: 500; }

.t-insight {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  line-height: 1.6;
}

.t-divider {
  height: 1px;
  background: var(--border);
}

.t-stat {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.stat-big {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.65;
}

/* ── STATEMENT ───────────────────────────────────────────── */
.statement-section {
  position: relative;
  z-index: 10;
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.statement-block {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 112px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -2px;
  color: var(--cream);
}

.statement-accent { color: var(--accent); }

.subscribe-form-2 {
  opacity: 0;
  transform: translateY(20px);
}

.statement-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  opacity: 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--cream);
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--cream); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dim);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--cream);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.toast.error {
  border-left-color: #ff2020;
}

/* ── SCROLL REVEAL STATE ─────────────────────────────────── */
.revealed {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(80px, 13vw, 160px); }
  .inside-row { grid-template-columns: 50px 180px 1fr; }
  .inside-icon { display: none; }
  .statement-text { font-size: clamp(52px, 7vw, 100px); }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 14px 20px; }
  .nav-tag { display: none; }
  .nav-logo { font-size: 15px; letter-spacing: 2px; }
  .nav-btn { padding: 7px 14px; font-size: 10px; }

  /* Hero */
  .hero { padding: 96px 20px 72px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 3px; margin-bottom: 20px; }
  .hero-title {
    font-size: clamp(58px, 16vw, 100px);
    letter-spacing: -2px;
    margin-bottom: 24px;
  }
  .hero-sub { font-size: 15px; max-width: none; margin-bottom: 36px; }
  .hero-count { font-size: 9px; letter-spacing: 2px; }
  .scroll-hint { display: none; }

  /* Container */
  .container { padding: 0 20px; }

  /* Form */
  .input-wrap { flex-direction: column; }
  .email-input { padding: 15px 16px; font-size: 14px; }
  .submit-btn { width: 100%; justify-content: center; padding: 15px 20px; }

  /* Marquee */
  .marquee-track { gap: 24px; }

  /* Inside section */
  .inside-section { padding: 80px 0; }
  .section-label { margin-bottom: 28px; }
  .inside-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 0;
    transform: translateX(-20px);
  }
  .inside-num { font-size: 10px; }
  .inside-title { font-size: 20px; }
  .inside-desc { display: block; max-width: none; font-size: 13px; }
  .inside-icon { display: none; }

  /* Terminal / sample */
  .sample-section { padding: 0 0 80px; }
  .terminal-header { flex-wrap: wrap; gap: 10px; }
  .terminal-title { font-size: 9px; order: 3; width: 100%; }
  .terminal-tag { font-size: 9px; }
  .terminal-body { padding: 24px 16px; gap: 24px; }
  .t-section p { font-size: 14px; }
  .t-insight { font-size: 11px; padding-left: 12px; }
  .t-stat { flex-direction: column; gap: 6px; }
  .stat-big { font-size: 64px; }
  .stat-label { font-size: 13px; }

  /* Statement */
  .statement-section { padding: 80px 0; }
  .statement-block { margin-bottom: 40px; }
  .statement-text {
    font-size: clamp(40px, 11vw, 72px);
    letter-spacing: -1px;
    line-height: 0.95;
  }

  /* Footer */
  .footer { padding: 32px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  /* Toast */
  .toast { white-space: normal; text-align: center; max-width: calc(100vw - 40px); }
}

/* Small phones */
@media (max-width: 390px) {
  .hero-title { font-size: clamp(50px, 15vw, 80px); letter-spacing: -1px; }
  .nav-btn { display: none; }
  .statement-text { font-size: clamp(36px, 11vw, 56px); }
  .stat-big { font-size: 52px; }
}
