:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #3730a3;
  --dark: #0b1020;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .35);
}

* { 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;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.btn-primary:hover { box-shadow: 0 12px 24px -8px rgba(79,70,229,.7); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost.light { color: #e2e8f0; border-color: rgba(255,255,255,.25); }
.btn-ghost.light:hover { color: #fff; border-color: #fff; }
.btn-white { background: #fff; color: var(--brand-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow.light { color: #a5b4fc; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-accent { color: var(--brand); margin-left: 2px; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.nav-links { display: flex; gap: 1.75rem; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 72px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(6,182,212,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.grad { background: linear-gradient(120deg, var(--brand), #7c3aed 45%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: "✓"; color: #22c55e; font-weight: 700; margin-right: .4rem; }

.call-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-lg); max-width: 440px; margin-left: auto;
}
.call-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.call-name { font-weight: 700; font-size: .98rem; }
.call-status { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; margin: 16px 0; }
.wave span { width: 4px; border-radius: 4px; background: linear-gradient(var(--brand), var(--brand-2)); animation: wave 1.1s ease-in-out infinite; }
.wave span:nth-child(odd) { animation-duration: .9s; }
.wave span:nth-child(3n) { animation-duration: 1.3s; }
.wave span:nth-child(4n) { animation-delay: -.4s; }
.wave span:nth-child(5n) { animation-delay: -.7s; }
@keyframes wave { 0%,100% { height: 8px } 50% { height: 48px } }

.transcript { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: msgIn .4s forwards; }
.msg.bot { background: #eef2ff; color: #1e1b4b; border-bottom-left-radius: 4px; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg:nth-child(1) { animation-delay: .2s } .msg:nth-child(2) { animation-delay: 1s } .msg:nth-child(3) { animation-delay: 1.8s } .msg:nth-child(4) { animation-delay: 2.6s } .msg:nth-child(5) { animation-delay: 3.2s }
@keyframes msgIn { to { opacity: 1; transform: none } }
.typing { display: inline-flex; gap: 4px; width: auto; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes blink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
.call-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.tag.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-ink); }
.stats span { color: var(--muted); font-size: .92rem; }
.footnote { font-size: .75rem; color: var(--muted); text-align: center; margin: 14px auto 0; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #e2e8f0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.product.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.p-badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.p-icon { width: 48px; height: 48px; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; margin-bottom: 18px; }
.p-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 1.2rem; }
.product > p { color: var(--ink-2); font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: .25rem 0 1.5rem; display: grid; gap: .5rem; font-size: .9rem; color: var(--ink-2); }
.checks li { padding-left: 1.5rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: #e0e7ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.link { margin-top: auto; font-weight: 600; color: var(--brand); }
.link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num { font-size: .85rem; font-weight: 800; color: var(--brand); background: #eef2ff; border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: #fff; padding: 28px 24px; }
.feature h4 { font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Developers */
.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.dev-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; }
.dev-copy > p { color: #94a3b8; font-size: 1.05rem; }
.dev-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; color: #cbd5e1; }
.dev-list strong { color: #a5b4fc; font-weight: 600; }
.code-card { background: #111827; border: 1px solid #1f2937; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); min-width: 0; }
.code-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid #1f2937; background: #0f172a; }
.code-tab, .copy { background: none; border: 0; color: #94a3b8; font: 500 .85rem "Inter", sans-serif; padding: 8px 14px; cursor: pointer; border-radius: 8px 8px 0 0; }
.code-tab.active { color: #fff; background: #111827; }
.copy { margin-left: auto; border-radius: 8px; margin-bottom: 6px; border: 1px solid #334155; padding: 4px 12px; }
.copy:hover { color: #fff; }
.code { display: none; margin: 0; padding: 22px; overflow-x: auto; font: 400 .86rem/1.7 "JetBrains Mono", ui-monospace, monospace; color: #e2e8f0; }
.code.active { display: block; }
.code .c { color: #64748b; } .code .s { color: #86efac; } .code .k { color: #c4b5fd; }

/* Use cases */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, box-shadow .2s; }
.uc:hover { border-color: #c7d2fe; box-shadow: var(--shadow); }
.uc-emoji { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.uc h4 { font-size: 1.05rem; }
.uc p { color: var(--muted); font-size: .93rem; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand), #7c3aed 55%, #0891b2); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 2rem; font-weight: 800; }
.cta-inner p { margin: 0; opacity: .9; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: .75rem 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; }
.contact-copy > p { color: var(--ink-2); }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.c-card h4 { margin-bottom: .25rem; }
.c-card p { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.c-card a { color: var(--brand); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.form-tab { background: var(--bg-alt); border: 0; padding: 16px; font: 600 .98rem "Inter", sans-serif; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.form-tab.active { background: #fff; color: var(--brand); border-bottom-color: var(--brand); }
.lead-form { display: none; padding: 28px; gap: 14px; }
.lead-form.active { display: grid; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: 400 .95rem "Inter", sans-serif; color: var(--ink); padding: .7rem .85rem;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.lead-form .invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.lead-form label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--muted); }
.lead-form label.check input { width: auto; margin-top: 3px; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; padding: 64px 0 28px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-grid a { display: block; margin-bottom: 8px; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.muted { color: #94a3b8; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 24px; font-size: .85rem; }
.footer-bottom a:hover { color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .dev-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .call-card { margin: 0 auto; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0; }
  .products, .steps, .features, .usecases, .row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn { display: none; }
  .lead-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner h2 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .msg { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
