:root {
  --bg: #070a12;
  --bg-soft: #0b1020;
  --surface: rgba(255,255,255,.055);
  --surface-strong: rgba(255,255,255,.09);
  --card: #0e1424;
  --text: #f7f8fc;
  --muted: #aab3c8;
  --line: rgba(255,255,255,.12);
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #4ade80;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 40px));
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 550px at 15% -10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(820px 520px at 90% 8%, rgba(34,211,238,.10), transparent 62%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-light {
  color: #101426;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
}
.section-light .muted { color: #5f6879; }
.section-light .eyebrow { color: #5c45d7; }
.section-light .card { background: rgba(255,255,255,.78); border-color: rgba(16,20,38,.10); box-shadow: 0 24px 80px rgba(34,44,90,.08); }

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b7aaff;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.2vw, 98px); max-width: 1000px; margin-bottom: 26px; }
h2 { font-size: clamp(38px, 5vw, 66px); margin-bottom: 24px; }
h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
p.lead { font-size: clamp(18px, 2vw, 23px); color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(105deg, #ffffff 0%, #cfd2ff 35%, #7c5cff 66%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7,10,18,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: conic-gradient(from 220deg, var(--accent), var(--accent-2), #9d7cff, var(--accent));
  box-shadow: 0 0 28px rgba(124,92,255,.35);
  position: relative;
}
.brand-mark::after { content:""; position:absolute; inset:8px; border-radius:8px; background:#090d17; transform: rotate(18deg); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: #d7dcef; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { min-width: 44px; text-align: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; font-weight: 800; }
.menu-btn { display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background:transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  font-weight: 750; font-size: 14px;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.075); }
.btn-primary { border: 0; color: white; background: linear-gradient(120deg, var(--accent), #6157ff 52%, #2d7ff9); box-shadow: 0 12px 40px rgba(98,86,255,.30); }
.btn-primary:hover { background: linear-gradient(120deg, #8a6dff, #695eff 52%, #3d8bff); }
.btn-ghost { background: transparent; }
.btn-arrow::after { content:"↗"; font-size: 16px; }

.hero { padding: 82px 0 72px; min-height: calc(100vh - 76px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(50px, 6.2vw, 88px); }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top: 34px; }
.hero-note { margin-top: 26px; display:flex; gap:18px; flex-wrap:wrap; color: #8e99b3; font-size: 13px; }
.hero-note span { display:flex; align-items:center; gap:8px; }
.hero-note span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--accent-3); box-shadow:0 0 14px rgba(74,222,128,.7); }

.hero-visual { min-height: 560px; position: relative; perspective: 1000px; }
.orbit {
  position: absolute; inset: 7% 0 auto 2%; aspect-ratio: 1/1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 50% 50%, rgba(124,92,255,.10), transparent 62%);
  animation: rotate 24s linear infinite;
}
.orbit::before,.orbit::after { content:""; position:absolute; border-radius:50%; border:1px dashed rgba(255,255,255,.09); }
.orbit::before { inset: 13%; }
.orbit::after { inset: 28%; }
@keyframes rotate { to { transform: rotate(360deg); } }

.flow-card {
  position: absolute; width: 210px; padding: 16px 16px 15px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(13,19,34,.82); backdrop-filter: blur(14px);
  box-shadow: 0 24px 65px rgba(0,0,0,.26);
  transition: transform .3s var(--ease);
}
.flow-card:hover { transform: translateY(-5px) scale(1.02); }
.flow-card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing:.12em; color:#8190ad; }
.flow-card strong { display:block; font-size:18px; margin-top:4px; }
.flow-card small { color:#8995ad; }
.flow-card:nth-of-type(1) { top: 9%; left: 8%; }
.flow-card:nth-of-type(2) { top: 32%; right: 0; }
.flow-card:nth-of-type(3) { bottom: 18%; left: 1%; }
.flow-card:nth-of-type(4) { bottom: 2%; right: 10%; }

.ai-core {
  position:absolute; width:180px; height:180px; border-radius:42px; left:50%; top:48%; transform:translate(-50%,-50%) rotate(9deg);
  background: linear-gradient(145deg, rgba(124,92,255,.95), rgba(34,211,238,.72));
  box-shadow: 0 0 90px rgba(124,92,255,.26), inset 0 1px rgba(255,255,255,.35);
  display:grid; place-items:center; overflow:hidden;
}
.ai-core::before { content:""; position:absolute; inset:1px; border-radius:41px; background:linear-gradient(145deg,#101628,#0b1220); }
.ai-core::after { content:"AI"; position:relative; font-weight:900; font-size:44px; letter-spacing:-.08em; transform:rotate(-9deg); background:linear-gradient(120deg,#fff,#8fdcff); -webkit-background-clip:text; color:transparent; }

.trust-row { padding: 24px 0 0; }
.trust-grid { display:grid; grid-template-columns:repeat(5,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-grid span { padding:18px 14px; text-align:center; color:#8f99ae; font-size:13px; border-right:1px solid var(--line); }
.trust-grid span:last-child { border-right:0; }

.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)); padding:28px; box-shadow:var(--shadow); }
.card-icon { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; margin-bottom:48px; background:linear-gradient(140deg, rgba(124,92,255,.2), rgba(34,211,238,.12)); border:1px solid rgba(255,255,255,.1); font-size:22px; }
.card p { color:var(--muted); }
.card-link { margin-top:24px; display:inline-flex; align-items:center; gap:8px; font-weight:750; font-size:14px; }
.card-link::after { content:"→"; transition: transform .2s ease; }
.card-link:hover::after { transform:translateX(4px); }

.section-head { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:46px; }
.section-head > div:first-child { max-width:780px; }
.section-head p { max-width:420px; margin-bottom:8px; }

.problem-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:start; }
.sticky-copy { position:sticky; top:126px; }
.step-list { display:grid; gap:16px; }
.step { padding:28px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.035); display:grid; grid-template-columns:52px 1fr; gap:20px; }
.step-num { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; font-weight:850; color:#c8c0ff; background:rgba(124,92,255,.14); border:1px solid rgba(124,92,255,.22); }
.step p { color:var(--muted); margin-bottom:0; }

.metric-strip { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:26px; overflow:hidden; background:rgba(255,255,255,.03); }
.metric { padding:28px; border-right:1px solid var(--line); }
.metric:last-child { border-right:0; }
.metric strong { display:block; font-size:26px; letter-spacing:-.03em; }
.metric span { color:var(--muted); font-size:13px; }

.architecture { position:relative; overflow:hidden; }
.architecture::before { content:""; position:absolute; inset:20% -20% auto; height:1px; background:linear-gradient(90deg,transparent,rgba(124,92,255,.6),rgba(34,211,238,.5),transparent); }
.pipeline { margin-top:44px; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; position:relative; }
.pipe { border:1px solid var(--line); border-radius:20px; padding:26px 20px; background:#0b1120; min-height:180px; }
.pipe b { display:block; margin-bottom:10px; }
.pipe p { color:var(--muted); font-size:14px; }
.pipe-tag { display:inline-flex; margin-top:14px; padding:6px 9px; border-radius:999px; background:rgba(124,92,255,.12); color:#beb4ff; font-size:11px; font-weight:800; }

.cta-box { padding:54px; border-radius:32px; border:1px solid rgba(255,255,255,.12); background:
  radial-gradient(650px 260px at 15% 0%, rgba(124,92,255,.28), transparent 70%),
  radial-gradient(600px 300px at 100% 100%, rgba(34,211,238,.15), transparent 70%),
  #0b1020;
  display:flex; justify-content:space-between; gap:40px; align-items:center; box-shadow:var(--shadow);
}
.cta-box h2 { max-width:760px; font-size:clamp(36px,4.8vw,64px); margin-bottom:0; }

.page-hero { padding:86px 0 58px; }
.page-hero h1 { max-width:980px; }
.page-hero .lead { max-width:800px; }
.breadcrumb { display:flex; gap:8px; color:#8e98ad; font-size:13px; margin-bottom:28px; }
.breadcrumb span { color:#5f6b84; }

.feature-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.feature { padding:30px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.035); }
.feature p { color:var(--muted); }

.article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.article-card { border:1px solid var(--line); border-radius:22px; overflow:hidden; background:rgba(255,255,255,.035); }
.article-cover { min-height:180px; background:
  radial-gradient(circle at 30% 30%, rgba(124,92,255,.42), transparent 34%),
  radial-gradient(circle at 70% 72%, rgba(34,211,238,.28), transparent 30%),
  #0c1323; position:relative; }
.article-cover::after { content:""; position:absolute; inset:20%; border:1px solid rgba(255,255,255,.12); border-radius:24px; transform:rotate(10deg); }
.article-body { padding:24px; }
.article-body p { color:var(--muted); }
.article-meta { font-size:12px; color:#7f8ba2; margin-bottom:12px; }

.prose { max-width:820px; margin:0 auto; }
.prose h2 { margin-top:58px; font-size:clamp(30px,4vw,46px); }
.prose h3 { margin-top:34px; }
.prose p, .prose li { color:#c0c7d6; font-size:18px; }
.prose ul { padding-left:22px; }
.prose blockquote { margin:38px 0; padding:24px 28px; border-left:3px solid var(--accent); background:rgba(124,92,255,.08); border-radius:0 18px 18px 0; color:#e6e8f2; }

.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:start; }
.form-card { padding:28px; border:1px solid var(--line); border-radius:26px; background:rgba(255,255,255,.045); box-shadow:var(--shadow); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:grid; gap:8px; }
.field.full { grid-column:1/-1; }
label { font-size:13px; font-weight:700; color:#c9cfde; }
input,select,textarea { width:100%; min-height:50px; border-radius:13px; border:1px solid var(--line); background:#090e1a; color:var(--text); padding:12px 14px; outline:none; transition:border .2s ease, box-shadow .2s ease; }
textarea { min-height:130px; resize:vertical; }
input:focus,select:focus,textarea:focus { border-color:rgba(124,92,255,.68); box-shadow:0 0 0 4px rgba(124,92,255,.10); }
.form-status { margin-top:12px; min-height:22px; font-size:13px; color:#9ca8be; }
.form-status.success { color:#75e69b; }
.form-status.error { color:#ff8da0; }
.hp { position:absolute!important; left:-10000px!important; opacity:0!important; pointer-events:none!important; }

.chat-launcher { position:fixed; right:22px; bottom:22px; z-index:60; width:58px; height:58px; border-radius:18px; border:0; background:linear-gradient(135deg,var(--accent),#2d7ff9); color:white; box-shadow:0 18px 50px rgba(65,74,255,.38); cursor:pointer; font-weight:900; }
.chat-panel { position:fixed; right:22px; bottom:92px; z-index:60; width:min(380px,calc(100vw - 28px)); height:520px; max-height:calc(100vh - 125px); border:1px solid var(--line); border-radius:24px; background:#0a0f1c; box-shadow:0 30px 90px rgba(0,0,0,.5); display:none; overflow:hidden; }
.chat-panel.open { display:grid; grid-template-rows:auto 1fr auto; }
.chat-head { padding:16px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.chat-head strong { display:block; }
.chat-head small { color:#8490a7; }
.chat-close { border:0; background:transparent; font-size:22px; cursor:pointer; }
.chat-messages { padding:16px; overflow:auto; display:flex; flex-direction:column; gap:10px; }
.msg { max-width:84%; padding:11px 13px; border-radius:15px; font-size:14px; line-height:1.45; }
.msg.bot { background:rgba(255,255,255,.06); border:1px solid var(--line); align-self:flex-start; }
.msg.user { background:linear-gradient(120deg,var(--accent),#4e78ff); align-self:flex-end; }
.chat-form { padding:12px; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr auto; gap:8px; }
.chat-form input { min-height:44px; }
.chat-form button { width:44px; min-height:44px; border-radius:12px; border:0; background:#fff; color:#0a0f1c; font-weight:900; cursor:pointer; }

.footer { padding:72px 0 30px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns:1.3fr repeat(3,.7fr); gap:40px; }
.footer h4 { margin:0 0 14px; font-size:13px; text-transform:uppercase; letter-spacing:.1em; color:#7f8aa1; }
.footer a { display:block; color:#bac2d3; font-size:14px; margin:8px 0; }
.footer a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:56px; padding-top:22px; border-top:1px solid var(--line); color:#717d94; font-size:12px; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; }
}

@media (max-width: 980px) {
  .nav-links { position:fixed; inset:76px 14px auto; display:none; padding:18px; flex-direction:column; align-items:stretch; background:#0c1220; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .menu-btn { display:grid; place-items:center; }
  .nav-actions .btn { display:none; }
  .hero-grid,.problem-layout,.contact-grid { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-visual { min-height:500px; max-width:620px; width:100%; margin:0 auto; }
  .grid-3,.article-grid { grid-template-columns:1fr 1fr; }
  .pipeline { grid-template-columns:1fr 1fr; }
  .metric-strip { grid-template-columns:1fr 1fr; }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .sticky-copy { position:relative; top:auto; }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column:2/4; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding:76px 0; }
  .hero { padding-top:58px; }
  h1 { font-size:clamp(44px,14vw,70px); }
  h2 { font-size:clamp(36px,10vw,52px); }
  .hero-visual { min-height:440px; }
  .flow-card { width:178px; padding:13px; }
  .flow-card:nth-of-type(1) { left:0; top:4%; }
  .flow-card:nth-of-type(2) { right:0; top:31%; }
  .flow-card:nth-of-type(3) { left:0; bottom:18%; }
  .flow-card:nth-of-type(4) { right:0; bottom:0; }
  .ai-core { width:140px; height:140px; border-radius:34px; }
  .trust-grid { grid-template-columns:1fr 1fr; }
  .trust-grid span { border-bottom:1px solid var(--line); }
  .trust-grid span:nth-child(even) { border-right:0; }
  .trust-grid span:last-child { grid-column:1/-1; border-bottom:0; }
  .grid-3,.grid-2,.feature-grid,.article-grid,.pipeline,.form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .section-head,.cta-box,.footer-bottom { flex-direction:column; align-items:flex-start; }
  .cta-box { padding:34px 24px; }
  .metric-strip { grid-template-columns:1fr; }
  .metric { border-right:0!important; border-bottom:1px solid var(--line); }
  .metric:last-child { border-bottom:0; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
  .footer-grid > div:nth-child(4) { grid-column:auto; }
}

/* ============================================
   Cuántika Brand System — v3
   Palette derived from the official logo.
   ============================================ */
:root {
  --bg: #080711;
  --bg-soft: #0d0a18;
  --surface: rgba(255,255,255,.055);
  --surface-strong: rgba(255,255,255,.09);
  --card: #110d21;
  --text: #fbfbff;
  --muted: #b8b4c8;
  --line: rgba(255,255,255,.12);
  --accent: #6327c4;
  --accent-2: #3492db;
  --accent-3: #fa58b1;
  --accent-warm: #f8d365;
  --brand-indigo: #2317a3;
  --brand-blue: #263caf;
  --brand-cyan: #3492db;
  --brand-violet: #6327c4;
  --brand-purple: #973fe3;
  --brand-pink: #fa58b1;
  --brand-coral: #f98b91;
  --brand-yellow: #f8d365;
}

body {
  background:
    radial-gradient(920px 580px at 13% -10%, rgba(99,39,196,.23), transparent 60%),
    radial-gradient(780px 520px at 92% 4%, rgba(250,88,177,.11), transparent 62%),
    radial-gradient(620px 440px at 75% 55%, rgba(52,146,219,.055), transparent 68%),
    var(--bg);
}

.section-light {
  color: #171021;
  background: linear-gradient(180deg, #fcfaff 0%, #f5f0ff 62%, #fff9fc 100%);
}
.section-light .muted { color: #665f73; }
.section-light .eyebrow { color: #5f22b8; }
.section-light .card { box-shadow: 0 24px 80px rgba(74,35,115,.08); }

.eyebrow { color: #d9bdf4; }
.gradient-text {
  background: linear-gradient(105deg, #ffffff 0%, #f7d46a 20%, #fa58b1 48%, #973fe3 72%, #3492db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  background: rgba(8,7,17,.78);
  border-bottom-color: rgba(255,255,255,.075);
}
.brand { gap: 0; line-height: 0; }
.brand-logo {
  width: 176px;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  object-position: left center;
}
.footer .brand-logo { width: 184px; }

.btn-primary {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-violet) 47%, var(--brand-pink) 100%);
  box-shadow: 0 14px 42px rgba(99,39,196,.30), 0 6px 24px rgba(250,88,177,.10);
}
.btn-primary:hover {
  background: linear-gradient(120deg, #304cc0 0%, #7432d4 48%, #fb6bbb 100%);
}

.hero-note span::before {
  background: var(--brand-pink);
  box-shadow: 0 0 14px rgba(250,88,177,.65);
}
.orbit {
  background: radial-gradient(circle at 50% 50%, rgba(99,39,196,.13), transparent 62%);
}
.flow-card {
  background: rgba(15,10,29,.84);
}
.ai-core {
  background: linear-gradient(145deg, var(--brand-blue) 2%, var(--brand-violet) 50%, var(--brand-pink) 100%);
  box-shadow: 0 0 90px rgba(99,39,196,.26), 0 0 58px rgba(250,88,177,.08), inset 0 1px rgba(255,255,255,.35);
}
.ai-core::before { background: linear-gradient(145deg,#17102b,#0c0a17); }
.ai-core::after {
  background: linear-gradient(120deg,#fff 0%, #f8d365 42%, #fa8dc8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.card-icon {
  background: linear-gradient(140deg, rgba(99,39,196,.22), rgba(250,88,177,.10) 58%, rgba(52,146,219,.10));
}
.step-num {
  color: #ead3ff;
  background: linear-gradient(145deg, rgba(99,39,196,.18), rgba(250,88,177,.08));
  border-color: rgba(151,63,227,.28);
}
.architecture::before {
  background: linear-gradient(90deg,transparent,rgba(38,60,175,.58),rgba(151,63,227,.62),rgba(250,88,177,.48),transparent);
}
.pipe { background: #0e0a1a; }
.pipe-tag {
  background: rgba(99,39,196,.14);
  color: #e5c9fb;
}
.cta-box {
  background:
    radial-gradient(650px 280px at 12% 0%, rgba(99,39,196,.31), transparent 70%),
    radial-gradient(620px 300px at 100% 100%, rgba(250,88,177,.13), transparent 70%),
    radial-gradient(420px 220px at 76% 0%, rgba(248,211,101,.05), transparent 72%),
    #0d0a18;
}
.article-cover {
  background:
    radial-gradient(circle at 27% 30%, rgba(250,88,177,.38), transparent 32%),
    radial-gradient(circle at 72% 72%, rgba(99,39,196,.42), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(248,211,101,.11), transparent 28%),
    #100b1d;
}
.prose blockquote {
  border-left-color: var(--brand-pink);
  background: rgba(99,39,196,.09);
}
input,select,textarea { background:#0c0915; }
input:focus,select:focus,textarea:focus {
  border-color:rgba(151,63,227,.72);
  box-shadow:0 0 0 4px rgba(99,39,196,.12);
}
.chat-launcher {
  background: linear-gradient(135deg,var(--brand-blue),var(--brand-violet) 55%,var(--brand-pink));
  box-shadow:0 18px 50px rgba(99,39,196,.38);
}
.chat-panel { background:#0c0916; }
.msg.user { background:linear-gradient(120deg,var(--brand-blue),var(--brand-violet) 60%,var(--brand-pink)); }

@media (max-width: 980px) {
  .nav-links { background:#0e0a1a; }
}
@media (max-width: 680px) {
  .brand-logo { width: 148px; max-height: 40px; }
  .footer .brand-logo { width: 168px; }
}


/* ============================================
   Hero flow diagram refinement — v4
   Fixes overlap and replaces floating cards
   with a cleaner, high-impact flow system.
   ============================================ */
.hero-visual {
  display: grid;
  align-content: center;
}
.hero-visual .orbit,
.hero-visual .flow-card,
.hero-visual .ai-core {
  display: none !important;
}
.flow-diagram {
  position: relative;
  width: min(100%, 620px);
  margin-left: auto;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(380px 220px at 10% 0%, rgba(52,146,219,.08), transparent 70%),
    radial-gradient(420px 260px at 100% 0%, rgba(250,88,177,.08), transparent 70%),
    radial-gradient(520px 240px at 50% 100%, rgba(99,39,196,.24), transparent 72%),
    rgba(10,8,22,.88);
  box-shadow: 0 28px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.flow-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.35), transparent 100%);
  pointer-events: none;
}
.flow-diagram-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.flow-diagram-head h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  max-width: 360px;
}
.ai-badge {
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue) 0%, var(--brand-violet) 55%, var(--brand-pink) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 70px rgba(99,39,196,.35);
}
.flow-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.flow-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52,146,219,.18), rgba(99,39,196,.9), rgba(250,88,177,.55));
  transform: translateY(-50%);
  box-shadow: 0 0 24px rgba(99,39,196,.22);
}
.flow-stage {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
}
.flow-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(250,88,177,.7);
  border-right: 2px solid rgba(250,88,177,.7);
  transform: translateY(-50%) rotate(45deg);
}
.flow-stage:last-child::after { display: none; }
.stage-num {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, rgba(38,60,175,.5), rgba(151,63,227,.65));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.stage-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #9aa2bf;
}
.flow-stage strong {
  display: block;
  font-size: 23px;
  line-height: 1.06;
  margin-bottom: auto;
}
.flow-stage small {
  display: block;
  margin-top: 16px;
  color: #a3a9bf;
  line-height: 1.4;
}
.flow-summary {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #ccd1df;
  font-size: 14px;
}
.flow-summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.flow-summary span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-cyan), var(--brand-pink));
  box-shadow: 0 0 18px rgba(250,88,177,.5);
}

@media (max-width: 1180px) {
  .flow-track { grid-template-columns: 1fr 1fr; }
  .flow-track::before {
    left: 50%;
    right: auto;
    width: 2px;
    height: calc(100% - 48px);
    top: 24px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(52,146,219,.18), rgba(99,39,196,.9), rgba(250,88,177,.55));
  }
  .flow-stage::after {
    top: auto;
    bottom: -10px;
    right: calc(50% - 6px);
    transform: rotate(135deg);
  }
  .flow-stage:nth-child(2)::after { display: none; }
  .flow-stage:nth-child(4)::after { display: none; }
}
@media (max-width: 680px) {
  .flow-diagram { padding: 22px; border-radius: 26px; }
  .flow-diagram-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .flow-diagram-head h3 { max-width: none; }
  .ai-badge {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 28px;
  }
  .flow-track {
    grid-template-columns: 1fr;
  }
  .flow-track::before {
    left: 20px;
    width: 2px;
    top: 20px;
    height: calc(100% - 40px);
    transform: none;
  }
  .flow-stage {
    min-height: auto;
    padding-left: 72px;
  }
  .flow-stage::after {
    left: 14px;
    right: auto;
    bottom: -12px;
    top: auto;
    transform: rotate(135deg);
  }
  .flow-stage:last-child::after { display: none; }
  .stage-num {
    position: absolute;
    left: 14px;
    top: 16px;
    margin-bottom: 0;
  }
}


/* ============================================
   Hero Flow — v5 minimalist
   Lightweight process diagram for the homepage.
   ============================================ */
.hero-visual {
  min-height: 520px;
  display: grid;
  align-content: center;
}
.hero-flow {
  width: min(100%, 620px);
  margin-left: auto;
  padding: 18px 0 0;
}
.hero-flow-head {
  margin-bottom: 24px;
}
.hero-flow-head h3 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
  max-width: 14ch;
}
.hero-flow-head p {
  max-width: 48ch;
  margin-bottom: 0;
  color: #aeb3c6;
  font-size: 15px;
}
.hero-flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.hero-step {
  position: relative;
  padding: 18px 16px;
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}
.hero-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  color: #8b84bf;
  font-size: 24px;
  line-height: 1;
}
.hero-step-num {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
  color: #7e87a4;
  margin-bottom: 24px;
}
.hero-step strong {
  display: block;
  font-size: 19px;
  line-height: 1.08;
  margin-bottom: 10px;
}
.hero-step small {
  display: block;
  color: #a5aac0;
  line-height: 1.45;
}
.hero-flow-pill {
  margin: 20px auto 0;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: #f0e9ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
}
.hero-flow-pill::before {
  content: "✦";
  margin-right: 10px;
  color: var(--brand-pink);
}
.hero-step:nth-child(1) { box-shadow: inset 0 0 0 1px rgba(52,146,219,.14), 0 10px 30px rgba(0,0,0,.18); }
.hero-step:nth-child(2) { box-shadow: inset 0 0 0 1px rgba(151,63,227,.14), 0 10px 30px rgba(0,0,0,.18); }
.hero-step:nth-child(3) { box-shadow: inset 0 0 0 1px rgba(99,39,196,.16), 0 10px 30px rgba(0,0,0,.18); }
.hero-step:nth-child(4) { box-shadow: inset 0 0 0 1px rgba(248,211,101,.14), 0 10px 30px rgba(0,0,0,.18); }

@media (max-width: 1180px) {
  .hero-flow-track {
    grid-template-columns: 1fr 1fr;
  }
  .hero-step:not(:last-child)::after {
    right: -16px;
  }
  .hero-step:nth-child(2)::after { content: "↓"; right: 50%; top: calc(100% + 8px); transform: translateX(50%); }
  .hero-step:nth-child(3)::after { content: "→"; top: 50%; right: -18px; transform: translateY(-50%); }
}
@media (max-width: 980px) {
  .hero-flow {
    margin: 0 auto;
  }
  .hero-flow-head h3 {
    max-width: none;
  }
}
@media (max-width: 680px) {
  .hero-visual {
    min-height: auto;
  }
  .hero-flow-head h3 {
    font-size: 30px;
  }
  .hero-flow-track {
    grid-template-columns: 1fr;
  }
  .hero-step {
    min-height: auto;
  }
  .hero-step::after,
  .hero-step:not(:last-child)::after,
  .hero-step:nth-child(2)::after,
  .hero-step:nth-child(3)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
  }
  .hero-step:last-child::after {
    display: none;
  }
}


/* ============================================
   Hero diagram rollback — v7
   Restores the original floating hero diagram
   and sets the center block copy to IA FIRST.
   ============================================ */
.hero-visual {
  min-height: 560px;
  position: relative;
  perspective: 1000px;
  display: block;
  align-content: initial;
}
.hero-visual .hero-flow,
.flow-diagram {
  display: none !important;
}
.hero-visual .orbit {
  display: block !important;
}
.hero-visual .flow-card {
  display: block !important;
}
.hero-visual .ai-core {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ai-core::after {
  content: none !important;
}
.ai-core span,
.ai-core small {
  position: relative;
  z-index: 2;
  transform: rotate(-9deg);
  background: linear-gradient(120deg,#fff 0%, #f8d365 44%, #fa8dc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.ai-core span {
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -.08em;
}
.ai-core small {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .16em;
}
@media (max-width: 680px) {
  .hero-visual {
    min-height: 440px;
  }
  .hero-visual .ai-core {
    width: 140px;
    height: 140px;
    border-radius: 34px;
  }
  .ai-core span {
    font-size: 31px;
  }
  .ai-core small {
    font-size: 11px;
  }
}


/* ============================================
   Hero cleanup — v8
   Removes the center IA FIRST block.
   ============================================ */
.hero-visual .ai-core {
  display: none !important;
}
