/* TraceLayer Landing Page — tracelayer.dev */

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

:root {
  --bg:       #0b0d14;
  --surface:  #12151f;
  --border:   #1e2235;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --accent:   #6366f1;
  --accent2:  #818cf8;
  --green:    #22c55e;
  --yellow:   #eab308;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:     'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--accent); color: #fff; }
.btn-secondary { background: rgba(99,102,241,.12); color: var(--accent2); border: 1px solid rgba(99,102,241,.3); }
.btn-outline   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-sm        { padding: 8px 16px; font-size: 13px; }
.btn-full      { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,20,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.logo-icon { font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a { color: var(--muted); transition: color .15s; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,.14) 0%, transparent 60%);
}
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent2);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent2), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: left;
  margin-bottom: 20px;
}
.hero-code pre { margin: 0; }
.hero-code code { font-family: var(--mono); font-size: 14px; color: var(--text); }
.hero-code .c { color: var(--muted); }
.hero-code .k { color: var(--accent2); }
.hero-compat { color: var(--muted); font-size: 13px; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  margin: 0 3px;
  color: var(--text);
}

/* ── Section shared ───────────────────────────────────────────────────────── */
section { padding: 88px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent2);
  margin-bottom: 14px;
}
.section-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Problem ──────────────────────────────────────────────────────────────── */
.problem { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.problem-icon { font-size: 28px; margin-bottom: 14px; }
.problem-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent2);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.step-body h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.step-body p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.step-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  overflow-x: auto;
}
.step-body code { font-family: var(--mono); }
.steps-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 36px;
}
.steps-note strong { color: var(--text); }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(99,102,241,.4); }
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Social Proof ─────────────────────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.testimonial blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
  quotes: "\201C" "\201D";
}
.testimonial blockquote::before { content: open-quote; color: var(--accent2); font-size: 20px; }
.testimonial cite { font-size: 13px; color: var(--muted); font-style: normal; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.pricing-card-featured {
  border-color: rgba(99,102,241,.5);
  background: linear-gradient(160deg, rgba(99,102,241,.06) 0%, var(--surface) 60%);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.pricing-tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.pricing-amount { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 24px; }
.pricing-period { font-size: 15px; font-weight: 400; color: var(--muted); }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li.muted { color: var(--muted); }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
.pricing-note a { color: var(--accent2); }

/* ── Waitlist ─────────────────────────────────────────────────────────────── */
.waitlist {
  background: linear-gradient(160deg, rgba(99,102,241,.08) 0%, var(--bg) 60%);
  border-top: 1px solid rgba(99,102,241,.2);
  text-align: center;
}
.waitlist-inner { max-width: 580px; }
.waitlist h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.waitlist p { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.waitlist-form input[type="email"]:focus { border-color: var(--accent); }
.waitlist-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.waitlist-links a { color: var(--accent2); }
.sep { color: var(--border); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); width: 100%; text-align: center; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .step { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .waitlist-form { flex-direction: column; align-items: stretch; }
}
