:root {
  --bg: #070b1a;
  --bg-2: #0c1229;
  --surface: #111937;
  --surface-2: #162045;
  --line: rgba(148, 163, 255, 0.14);
  --text: #e7eaf6;
  --muted: #9aa3c7;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4f8bff 50%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .6); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(124, 92, 255, .6); }
.btn-light { background: #fff; color: #0b1020; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 11, 26, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.brand-text b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.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; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.orb-1 { width: 520px; height: 520px; background: #5b3dff; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #0ea5c6; bottom: -200px; right: -120px; opacity: .35; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--cyan); margin-right: 8px; font-weight: 700; }

.hero-visual { position: relative; }
.console { background: rgba(12, 18, 41, .85); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.console-bar i:nth-child(2) { background: #febc2e; }
.console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 10px; font-family: ui-monospace, Consolas, monospace; }
.console pre { margin: 0; padding: 22px 22px 56px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; line-height: 1.75; color: #cfd6f6; overflow-x: auto; }
.console .c { color: #6b76a3; } .console .k { color: #c084fc; } .console .s { color: #5eead4; } .console .f { color: #7dd3fc; }
.float-card { position: absolute; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: .8rem; animation: float 6s ease-in-out infinite; }
.float-card b { font-size: .95rem; }
.float-card span { color: var(--muted); }
.fc-1 { top: -26px; right: -18px; }
.fc-2 { bottom: -28px; left: -26px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .88rem; color: var(--muted); }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }
.grid { display: grid; gap: 22px; }

.services { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), rgba(17, 25, 55, .6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 24px 50px -24px rgba(124, 92, 255, .5); }
.card.featured { border-color: rgba(124, 92, 255, .45); background: linear-gradient(160deg, rgba(124, 92, 255, .2), var(--surface) 55%); }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.card.wide .icon { margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #a5b4fc; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; font-size: .96rem; }
.more { display: inline-block; margin-top: 16px; color: var(--cyan); font-weight: 600; font-size: .92rem; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(34, 211, 238, .1); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .25); }

/* AI split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.lead-sm { font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.ai-flow { position: relative; display: grid; gap: 16px; }
.ai-flow::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: var(--grad); opacity: .5; }
.flow-step { position: relative; display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 12px; }
.flow-step span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9rem; background: var(--grad); color: #fff; }
.flow-step b { font-size: 1.05rem; }
.flow-step p { margin: 2px 0 0; font-size: .92rem; }

/* Products */
.products { grid-template-columns: 1fr 1fr; gap: 28px; }
.product { position: relative; border-radius: 24px; padding: 38px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.p-clarivid::before { background: radial-gradient(600px 300px at 100% 0%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(160deg, #1b1240, #0d1230); }
.p-aidb::before { background: radial-gradient(600px 300px at 100% 0%, rgba(34, 211, 238, .3), transparent 60%), linear-gradient(160deg, #0b2440, #0d1230); }
.product { isolation: isolate; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); margin-bottom: 18px; }
.product h3 { font-size: 2.1rem; margin-bottom: 4px; }
.product h3 span { color: var(--muted); font-weight: 500; }
.tagline { color: #e2e8ff; font-weight: 500; margin-bottom: 18px; }
.product > p { color: #b9c1e3; }
.feat { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 10px; flex: 1; }
.feat li { padding-left: 26px; position: relative; font-size: .95rem; color: #d7dcf3; }
.feat li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.product .btn { align-self: flex-start; }

/* Steps */
.steps { grid-template-columns: repeat(4, 1fr); }
.step { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(124, 92, 255, .5); font-family: var(--display); font-weight: 700; color: #c4b5fd; margin-bottom: 18px; }
.step p { margin: 0; font-size: .95rem; }

/* Industries */
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; }
.chips.muted li { color: var(--muted); font-size: .88rem; padding: 8px 14px; }
.tech-title { margin-top: 40px; font-size: 1rem; color: var(--muted); font-weight: 500; }
.why { background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.why h3 { font-size: 1.5rem; margin-bottom: 18px; }
.why-item { padding: 16px 0; border-top: 1px solid var(--line); }
.why-item b { display: block; margin-bottom: 4px; }
.why-item p { margin: 0; font-size: .93rem; }

/* Contact */
.cta { background: radial-gradient(900px 400px at 10% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(34, 211, 238, .2), transparent 60%), var(--bg-2); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.eyebrow.light { color: #a5b4fc; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { font-size: 1.1rem; font-weight: 600; }
.form { background: rgba(12, 18, 41, .75); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.form .invalid { border-color: #f87171; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .82rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer p { font-size: .9rem; margin-top: 14px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font); margin-bottom: 14px; }
.footer-inner > div > a:not(.brand) { display: block; color: #c3c9e6; font-size: .93rem; padding: 4px 0; }
.footer-inner > div > a:hover { color: var(--cyan); }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .eyebrow .dot { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-inner, .split, .contact { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 11, 26, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav.open .nav-links { transform: none; }
  .nav.open { background: rgba(7, 11, 26, .97); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .products, .footer-inner { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 70px; }
  .section { padding: 76px 0; }
  .services, .steps, .form .row { grid-template-columns: 1fr; }
  .card.wide { grid-template-columns: 1fr; }
  .product, .why, .form { padding: 26px 22px; }
  .product h3 { font-size: 1.7rem; }
  .fc-1 { right: 6px; } .fc-2 { left: 6px; }
  .console pre { font-size: .76rem; padding: 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
