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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text-primary: #f0ede8;
  --text-secondary: #7a7670;
  --text-muted: #3d3a35;
  --accent: #e8ff5c;
  --accent-dim: #b8cc3d;
  --amber: #ff9b00;
  --think-green: #4ade80;
  --reason-amber: #fbbf24;
  --next-blue: #60a5fa;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: lowercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--amber);
  bottom: 0;
  left: 20%;
  opacity: 0.06;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-headline br { display: block; }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 440px;
}

/* === DEVICE FRAME === */
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 280px;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.device-screen {
  background: #0d0d0d;
  border-radius: 26px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
}

.call-status-dot {
  width: 7px;
  height: 7px;
  background: var(--think-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.call-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  flex: 1;
}

.call-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.thinking-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.think-line {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #161616;
  border: 1px solid #1e1e1e;
  animation: slide-in 0.4s ease-out forwards;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.think-line:nth-child(2) { animation-delay: 0.3s; }
.think-line:nth-child(3) { animation-delay: 0.6s; }

.think-active {
  border-color: #252520;
}

.think-next {
  border-color: #1a2530;
  opacity: 0.7;
}

.think-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.think-active .think-tag { background: #0d2010; color: var(--think-green); }
.think-active:nth-child(2) .think-tag { background: #1d1400; color: var(--reason-amber); }
.think-next .think-tag { background: #0d1825; color: var(--next-blue); }

.think-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.camera-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #161616;
  border: 1px solid #1a1a1a;
}

.camera-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.camera-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* === WHY SECTION === */
.why {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 4rem;
  align-items: start;
}

.why-stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 120px;
  margin-top: 0.5rem;
}

.why-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.why-headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.why-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  background: #0d0d0d;
}

.section-title {
  max-width: 1200px;
  margin: 0 auto 3rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.2s ease;
}

.feature-card:hover {
  background: #141414;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === HOW === */
.how {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-top: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* === CLOSER === */
.closer {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(232, 255, 92, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.closer-inner {
  position: relative;
  z-index: 1;
}

.closer-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.closer-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-device { order: -1; }
  .device-frame { width: 240px; }
  .why-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .why-divider { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 0.5rem; }
  .closer { padding: 5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 1.5rem 3rem; }
  .features { padding: 4rem 1.5rem; }
  .why { padding: 4rem 1.5rem; }
  .how { padding: 4rem 1.5rem; }
}
