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

:root {
  --bg: #080808;
  --bg-2: #0c0c0e;
  --border: rgba(255, 255, 255, 0.07);
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.50);
  --text-3: rgba(255, 255, 255, 0.28);
  --green: #22c55e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1060px;
}

html { scroll-behavior: smooth; }

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

/* Mountains canvas */
.mountains-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72vh;
  z-index: 0;
  pointer-events: none;
}
.mountains-bg canvas { width: 100%; height: 100%; display: block; }

.nav, section, footer, .hero { position: relative; z-index: 1; }

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

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.nav-dot.small { width: 5px; height: 5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-1) !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.13) !important; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 28px 80px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.hero-heading {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #000;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--text-1); border-color: rgba(255,255,255,0.18); }

.hero-demo-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-demo-link:hover { color: var(--text-2); }

/* Hero preview */
.hero-preview { display: flex; align-items: center; justify-content: center; opacity: 0.70; }

.preview-window {
  width: 100%;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.preview-dot.dim { background: rgba(255,255,255,0.15); }

.preview-brand {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-3);
  flex: 1;
}

.preview-q-panel,
.preview-a-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}

.preview-label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 5px;
}

.preview-q-text {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

.preview-a-text {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  min-height: 60px;
}

.preview-footer {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.preview-mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 500;
  color: #4ade80;
}

.preview-mic-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pdot 1.5s ease-in-out infinite;
}

@keyframes pdot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Sections */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
}

.section-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 52px;
}

.section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 48px;
}

/* Demo */
.demo-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-widget {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.demo-q-area {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-a-area { padding: 20px 24px 24px; }

.demo-field-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.demo-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.demo-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-1);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.demo-input::placeholder { color: var(--text-3); }
.demo-input:focus { border-color: rgba(255,255,255,0.20); }

.demo-send-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--text-1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.15s, transform 0.12s;
}
.demo-send-btn:hover { background: rgba(255,255,255,0.85); transform: scale(1.04); }
.demo-send-btn:disabled { background: rgba(255,255,255,0.10); color: var(--text-3); cursor: not-allowed; transform: none; }

.demo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.demo-chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.demo-chip:hover { border-color: rgba(255,255,255,0.20); color: var(--text-1); }

.demo-output {
  min-height: 88px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.demo-placeholder { color: var(--text-3); font-size: 15px; font-style: italic; }

.demo-status {
  margin-top: 10px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-status .thinking {
  display: flex;
  gap: 4px;
  align-items: center;
}

.demo-status .thinking span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: think 1.2s ease-in-out infinite;
}
.demo-status .thinking span:nth-child(2) { animation-delay: 0.16s; }
.demo-status .thinking span:nth-child(3) { animation-delay: 0.32s; }

@keyframes think {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40%            { transform: translateY(-3px); opacity: 0.9; }
}

/* How it works */
.how-section {
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  flex-shrink: 0;
  width: 28px;
  padding-top: 2px;
}

.step-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

/* Features */
.features-section {
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 32px 28px;
}
.features-section .section-inner { padding-bottom: 96px; }

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.footer-note { font-size: 12px; color: var(--text-3); }

/* ── Polish (hover/glass only — animations handled by AOS) ──────────────── */

.btn-ghost:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
}

.preview-window {
  box-shadow: 0 0 60px rgba(99,102,241,0.08), 0 20px 60px rgba(0,0,0,0.5);
}

.feature {
  transition: background 0.22s ease, transform 0.22s ease;
  position: relative;
}
.feature:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

.nav-cta {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-top-color: rgba(255,255,255,0.26) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-top-color: rgba(255,255,255,0.38) !important;
}

.demo-chip {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.09);
  border-top-color: rgba(255,255,255,0.16);
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.demo-chip:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.32);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-preview { order: -1; }
  .preview-window { max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .section-inner { padding: 68px 20px; }
  .demo-q-area, .demo-a-area { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .demo-suggestions { display: none; }
}
