/* ===== DX Dev Tool — Landing Page ===== */
:root {
  --bg: #0b0f1a;
  --bg-alt: #0f1424;
  --surface: #141a2e;
  --surface-2: #1a2136;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #9aa4bf;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ===== Background orbs ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: #6366f1; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #22d3ee; top: 20%; right: -160px; opacity: 0.35; }
.orb-3 { width: 500px; height: 500px; background: #8b5cf6; bottom: -200px; left: 30%; opacity: 0.3; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark {
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  background: var(--accent-grad); color: #fff; padding: 4px 8px; border-radius: 9px; font-size: 15px;
}
.brand-accent { color: var(--muted); font-weight: 700; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); color: #c7cbff; margin-bottom: 28px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; max-width: 900px; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin-top: 24px; max-width: 640px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats { margin-top: 56px; display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 2rem; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700; color: var(--accent-2); }
.section-head h2 { margin-top: 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* ===== Tools grid ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; position: relative; overflow: hidden;
}
.tool-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--accent-grad); opacity: 0; transition: opacity .25s; z-index: 0; -webkit-mask: linear-gradient(#000, #000);
}
.tool-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.5); box-shadow: var(--shadow); }
.tool-live { cursor: pointer; display: flex; flex-direction: column; }
.tool-live:hover .tool-icon { background: var(--accent-grad); color: #fff; }
.tool-soon { opacity: 0.62; }
.tool-badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; z-index: 1;
  background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35);
}
.tool-badge.soon { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--border); }
.tool-subs {
  list-style: none; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.tool-subs li {
  font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 8px;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25); color: #c7cbff;
}
.tool-live:hover .tool-subs li { border-color: rgba(99, 102, 241, 0.5); }
.tool-go { margin-top: auto; padding-top: 16px; color: var(--accent-2); font-weight: 600; font-size: 0.92rem; }
.tool-live:hover .tool-go { color: #fff; }
.tool-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(99, 102, 241, 0.14); color: var(--accent-2);
  font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 16px; margin-bottom: 16px;
}
.tool-card h3 { font-size: 1.12rem; font-weight: 700; }
.tool-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.tools-note { text-align: center; margin-top: 34px; color: var(--muted); }
.tools-note a { color: var(--accent-2); font-weight: 600; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-ic { font-size: 1.8rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

/* ===== Founder ===== */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.founder-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; text-align: center;
  position: sticky; top: 92px;
}
.founder-avatar {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff; background: var(--accent-grad);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.8);
}
.founder-id h3 { font-size: 1.4rem; font-weight: 800; }
.founder-role { color: var(--accent-2); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.founder-loc { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.founder-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.founder-badges span {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text);
}
.founder-body { padding-top: 4px; }
.founder-quote {
  font-size: 1.3rem; font-weight: 600; line-height: 1.4; margin-bottom: 24px;
  border-left: 3px solid var(--accent); padding-left: 18px; color: var(--text);
}
.founder-body p { color: var(--muted); margin-bottom: 16px; }
.founder-body strong { color: var(--text); }
.founder-timeline { list-style: none; margin: 8px 0 28px; }
.founder-timeline li {
  padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.96rem;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.founder-timeline span {
  font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--accent-2);
  min-width: 96px; font-weight: 600;
}

/* ===== CTA ===== */
.section-cta { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(34,211,238,0.1));
  border: 1px solid rgba(99, 102, 241, 0.35); border-radius: 24px; padding: 60px 32px; max-width: 820px; margin: 0 auto;
}
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.cta-inner p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.cta-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.85rem; width: 100%; text-align: center; margin-top: 8px; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .founder { grid-template-columns: 1fr; }
  .founder-card { position: static; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 48px; }
  .section { padding: 60px 0; }
  /* Full-width only for page CTAs — not the compact nav button */
  .hero-cta, .cta-actions { width: 100%; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
}
/* Keep the header readable and on one line on small screens */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .brand { font-size: 16px; gap: 7px; flex-shrink: 0; }
  .brand-name { white-space: nowrap; }
  .brand-mark { font-size: 13px; padding: 3px 6px; flex-shrink: 0; }
  .nav .btn-sm { padding: 8px 12px; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 340px) {
  .brand-accent { display: none; }
  .nav .btn-sm { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
