:root {
  --bg: #fbfbfd;
  --bg-alt: #f3f4f9;
  --surface: #ffffff;
  --text: #0b1020;
  --muted: #5b6475;
  --border: #e4e7ef;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --accent-text: #ffffff;
  --grid-line: rgba(15, 23, 42, .05);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, .35);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090f;
    --bg-alt: #0c0f18;
    --surface: #111522;
    --text: #eef0f6;
    --muted: #9aa3b5;
    --border: #1f2434;
    --accent: #818cf8;
    --accent-2: #22d3ee;
    --accent-text: #07090f;
    --grid-line: rgba(255, 255, 255, .04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: .9rem;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #8b5cf6 50%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.4rem; border-radius: 12px; font-weight: 600; font-size: .98rem;
  background: var(--accent); color: var(--accent-text);
  border: 1px solid transparent;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn-small { padding: .55rem 1rem; font-size: .9rem; border-radius: 10px; }
.btn-light { background: #fff; color: #1e1b4b; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 120px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, #8b5cf6 22%, transparent), transparent 70%),
    radial-gradient(500px 380px at 70% 80%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
    radial-gradient(500px 300px at 5% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--muted); margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px color-mix(in srgb, #10b981 22%, transparent); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.stats { display: flex; gap: 2.5rem; margin: 2.75rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--border); max-width: 460px; }
.stats div { margin: 0; }
.stats dt { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stats dd { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }

.hero-visual { position: relative; }
.stack {
  position: relative; padding: 1.25rem; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; gap: .7rem;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: float 7s ease-in-out infinite;
}
.mini {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.mini:nth-child(2) { margin-left: 1.5rem; margin-right: -1.5rem; }
.mini:nth-child(4) { margin-left: -1rem; margin-right: 1rem; }
.mini b { display: block; font-family: var(--display); font-size: .98rem; }
.mini i { font-style: normal; font-size: .8rem; color: var(--muted); }
.mini .live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px color-mix(in srgb, #10b981 20%, transparent); }
@keyframes float { 50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-10px); } }

.mono {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  box-shadow: 0 8px 18px -8px var(--c1, var(--accent));
}
.mono-ghost { background: transparent; color: var(--accent); border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: none; font-size: 1.4rem; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p:last-child { font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c1, var(--accent)) 35%, var(--border)); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.card h3 { margin-bottom: .45rem; }
.card p { flex: 1; font-size: .95rem; }
.badge {
  font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c1, var(--accent)) 12%, transparent);
  color: color-mix(in srgb, var(--c1, var(--accent)) 85%, var(--text));
}
.link { color: var(--c1, var(--accent)); font-weight: 600; font-size: .93rem; display: inline-flex; gap: .35rem; }
.arrow { transition: transform .2s; }
.card:hover .arrow { transform: translateX(4px); }
.card-idea { background: transparent; border-style: dashed; box-shadow: none; }
.card-idea:hover { background: var(--surface); }

.feature {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.feature .num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--display); font-weight: 800; font-size: .85rem; color: color-mix(in srgb, var(--muted) 60%, transparent); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
}
.feature svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { font-size: .95rem; margin: 0; }

.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.about h2 { max-width: 12ch; }
.about-lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; letter-spacing: -.01em; }

.contact-section { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(34, 211, 238, .45), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(236, 72, 153, .35), transparent 70%),
    linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed);
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.cta-card p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 2rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand p { margin: .75rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.footer-links a { color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .cards, .features { grid-template-columns: 1fr; }
  .stats { gap: 1.75rem; }
  .stack { transform: none; animation: none; }
  .mini:nth-child(2), .mini:nth-child(4) { margin: 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 16px 1rem; display: none;
  }
  .nav-links a { padding: .75rem 0; }
  .nav-links .btn { margin-top: .5rem; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
