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

:root {
  --bg: #0a0a0f;
  --bg-dark: #06060a;
  --surface: #13131a;
  --surface-2: #1c1c26;
  --border: #2a2a38;
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-green: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* =============================
   TYPOGRAPHY
   ============================= */
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p  { color: var(--text-muted); font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================
   LAYOUT
   ============================= */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.section { padding: 6rem 0; }
.section-dark { background: var(--bg-dark); }

/* =============================
   NAVBAR
   ============================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* =============================
   BUTTONS
   ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; border-radius: 10px; }

/* =============================
   HERO
   ============================= */
.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
}

.badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #4a4a6a;
  margin-bottom: 3rem;
}

/* DEMO CARD */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.demo-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
}

.demo-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99,102,241,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.demo-input-text {
  font-size: 0.95rem;
  color: var(--text);
}

.demo-arrow {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  animation: pulse-opacity 1.5s ease-in-out infinite;
}

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

.storyline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.storyline-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.storyline-list li.visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(99,102,241,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.sl-text { font-size: 0.93rem; color: var(--text); }
.sl-text strong { color: #c4b5fd; }

/* =============================
   PAIN POINTS
   ============================= */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.pain-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.pain-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }

.pain-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.pain-card strong { color: #f87171; }

/* =============================
   HOW IT WORKS
   ============================= */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 { color: var(--text); margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: center;
  padding-top: 1rem;
}

/* =============================
   FEATURES
   ============================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
  text-align: left;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; }
.feature-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; line-height: 1.65; }

/* =============================
   COMPARISON TABLE
   ============================= */
.compare-wrap { margin-top: 2.5rem; overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
}

.col-before { color: var(--text-muted); background: rgba(255,255,255,0.02); }
.col-after  { background: rgba(99,102,241,0.06); color: var(--text); }

.highlight-cell {
  color: #a5b4fc;
  font-weight: 700;
}

/* =============================
   WAITLIST
   ============================= */
.waitlist-sub {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.waitlist-sub strong { color: var(--text); }

.waitlist-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form input::placeholder { color: var(--text-muted); }

#waitlist-msg {
  font-size: 0.95rem;
  min-height: 1.5rem;
  color: var(--accent-green);
  font-weight: 600;
}

.privacy-note {
  font-size: 0.8rem;
  color: #4a4a6a;
  margin-top: 0.5rem;
}

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

.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.footer-tagline { font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-copy { font-size: 0.8rem; color: #3a3a5a; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 700px) {
  .pain-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .step { max-width: 100%; width: 100%; }
  .demo-card { padding: 1.2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}
