/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --surface: #1a2332;
  --surface-2: #1e2a3a;
  --border: #1e2d40;
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --cyan: #06B6D4;
  --blue: #3B82F6;
  --indigo: #6366F1;
  --emerald: #10B981;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === GRID BACKGROUND === */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* === SECTION COMMON === */
section { position: relative; }

.section-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 40px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 80px);
  color: #f8fafc;
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* === BRAIN CARD === */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.brain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.brain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.brain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brain-icon {
  width: 44px;
  height: 44px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brain-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.brain-status {
  font-size: 12px;
  color: var(--cyan);
}

.brain-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.brain-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-check.done { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); }
.task-check.active { background: rgba(6,182,212,0.15); border: 1px solid var(--cyan); position: relative; }
.task-check.pending { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }

.pulse-ring {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.5); }
  100% { box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

.brain-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.team-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.team-avatar.more {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 10px;
}

.synergy-score {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.score-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat {
  padding: 20px 24px;
}

.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-pct { color: var(--cyan); }
.stat-unit { font-size: 18px; color: var(--text-3); }

.stat-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.stat-divider {
  height: 1px;
  background: var(--border);
  margin: 0 24px;
}

/* === PROBLEM SECTION === */
.problem { padding: 120px 0; }

.problem-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.problem-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.problem-title {
  font-size: clamp(32px, 4vw, 56px);
  color: #f8fafc;
  margin-bottom: 24px;
  max-width: 640px;
}

.problem-title em { font-style: normal; color: var(--cyan); }

.problem-body {
  font-size: 16px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.problem-waves {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wave-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-2);
}

.wave-icon { opacity: 0.6; }

/* === FLASHBRAIN === */
.flashbrain { padding: 120px 0; background: var(--bg-2); }

.flashbrain-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.fb-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: #f8fafc;
  margin-bottom: 20px;
}

.fb-desc {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.7;
}

.fb-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon.cyan { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); }
.pillar-icon.blue { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); }
.pillar-icon.indigo { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); }
.pillar-icon.emerald { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); }

.pillar-title { font-size: 14px; font-weight: 600; color: #f8fafc; }
.pillar-sub { font-size: 12px; color: var(--text-3); }

/* === ORB === */
.fb-orb-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.fb-orb {
  position: absolute;
  border-radius: 50%;
}

.fb-orb-1 {
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: radial-gradient(circle at 40% 40%, rgba(6,182,212,0.08) 0%, transparent 60%);
  animation: orb-pulse 4s ease-in-out infinite;
}

.fb-orb-2 {
  width: 70%; height: 70%;
  top: 15%; left: 15%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite 0.5s;
}

.fb-orb-3 {
  width: 40%; height: 40%;
  top: 30%; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite 1s;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.fb-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fb-core-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

/* === CODEBASE === */
.codebase { padding: 120px 0; }

.codebase-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cb-visual { position: relative; }

.cb-graph {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
}

.graph-node.root { margin-bottom: 32px; }

.graph-node {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.node-dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.node-dot.cyan { background: var(--cyan); }
.node-dot.blue { background: var(--indigo); }

.node-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--text-2);
}

.node-tag {
  font-size: 10px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

.node-tag.cyan-tag { color: var(--cyan); background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.2); }
.node-tag.blue-tag { color: var(--indigo); background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }

.graph-branch {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding-left: 40px;
  position: relative;
}

.graph-branch::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.graph-line {
  width: 1px;
  height: 24px;
  background: var(--border);
  align-self: start;
  margin-top: 8px;
}

.graph-branch .graph-node { padding: 8px 0; }

.graph-connection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.conn-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.graph-connection span {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: var(--text-3);
}

.cb-title {
  font-size: clamp(26px, 3vw, 42px);
  color: #f8fafc;
  margin-bottom: 20px;
}

.cb-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cb-features { display: flex; flex-direction: column; gap: 12px; }

.cb-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.cb-feat svg { margin-top: 2px; flex-shrink: 0; }

/* === TEAM ASSEMBLY === */
.teamassembly { padding: 120px 0; background: var(--bg-2); }

.ta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.ta-header { text-align: center; margin-bottom: 64px; }

.ta-title {
  font-size: clamp(32px, 4vw, 52px);
  color: #f8fafc;
  margin-bottom: 20px;
}

.ta-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.ta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.ta-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ta-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
}

.ta-card-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* === PLATFORM === */
.platform { padding: 120px 0; }

.platform-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.platform-header { text-align: center; margin-bottom: 64px; }

.platform-title {
  font-size: clamp(40px, 5vw, 72px);
  color: #f8fafc;
  margin-bottom: 20px;
}

.platform-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.platform-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.p-tool:hover {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.03);
}

.p-icon { color: var(--text-3); }

/* === CLOSING === */
.closing { padding: 140px 0 120px; position: relative; overflow: hidden; }

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

.closing-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.closing-title {
  font-size: clamp(36px, 4.5vw, 60px);
  color: #f8fafc;
  margin-bottom: 28px;
  max-width: 680px;
}

.closing-body {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.75;
}

.closing-lines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
  max-width: 760px;
  margin-bottom: 64px;
}

.c-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--text-2);
}

.c-line-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.closing-vision {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  color: #f8fafc;
  max-width: 640px;
  line-height: 1.4;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  flex: 1;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-visual { grid-template-columns: 1fr; }
  .flashbrain-inner { grid-template-columns: 1fr; }
  .codebase-inner { grid-template-columns: 1fr; }
  .ta-cards { grid-template-columns: 1fr; }
  .platform-stack { grid-template-columns: repeat(2, 1fr); }
  .closing-lines { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content,
  .problem-inner,
  .flashbrain-inner,
  .codebase-inner,
  .ta-inner,
  .platform-inner,
  .closing-inner,
  .footer-inner { padding: 0 24px; }

  .hero { padding: 60px 0 80px; }
  .hero-title { font-size: 36px; }
  .problem-title { font-size: 28px; }
  .platform-title { font-size: 36px; }
  .closing-title { font-size: 28px; }

  .hero-stats { display: none; }
  .fb-orb-container { width: 220px; height: 220px; }
  .platform-stack { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}