/* ========================================
   Traceplane Landing Page — Dark/Techy
   ======================================== */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --text: #e4e4ed;
  --text-secondary: #8888a0;
  --text-muted: #5a5a72;
  --accent-1: #6366f1;
  --accent-2: #06b6d4;
  --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.15));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-icon {
  flex-shrink: 0;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-cta:hover {
  border-color: var(--accent-1);
  color: #fff;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

/* ---- Code block ---- */
.hero-visual {
  max-width: 640px;
  margin: 0 auto;
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: left;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-comment { color: var(--text-muted); }
.code-kw { color: #c084fc; }
.code-str { color: #34d399; }
.code-num { color: #fbbf24; }

/* ---- Sections ---- */
.section {
  padding: 100px 24px;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-inner > h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 700px;
}

/* ---- Problem grid ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-color: var(--border-light);
}

.problem-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Pipeline ---- */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.pipeline-arrow {
  width: 2px;
  height: 32px;
  background: var(--gradient);
  margin: 0 auto;
  opacity: 0.4;
}

.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.pipeline-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pipeline-step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

.step-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.format-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 6px;
  padding: 4px 12px;
}

.verdict-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.verdict {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
}

.verdict.pass {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.verdict.review {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.verdict.reject {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
}

.feature-highlight {
  grid-column: 1 / -1;
  background: var(--gradient-subtle);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Solutions grid ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.solution-card:hover {
  border-color: var(--accent-1);
}

.solution-icon {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.solution-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.solution-card code {
  font-size: 13px;
  color: var(--accent-2);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Persona grid ---- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}

.persona-card:hover {
  border-color: var(--border-light);
}

.persona-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.persona-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Waitlist ---- */
.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-inner h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.waitlist-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 14px;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

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

.waitlist-form select {
  color: var(--text-muted);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%235a5a72' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.waitlist-form select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  border-color: var(--accent-1);
}

.waitlist-form button {
  margin-top: 4px;
  font-size: 16px;
  padding: 14px;
}

.form-success {
  font-size: 16px;
  color: #34d399;
  padding: 20px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
}

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

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

.footer-logo {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero {
    padding: 120px 20px 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
  }

  .code-block {
    font-size: 12px;
    padding: 20px;
  }

  .section {
    padding: 64px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-highlight {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
