:root {
  --black: #020202;
  --black-soft: #070707;
  --panel: rgba(9, 10, 12, .78);
  --panel-solid: #0b0d10;
  --panel-light: #101318;
  --text: #f7f8fa;
  --muted: #8a919d;
  --blue: #188cff;
  --blue-light: #55bdff;
  --blue-dark: #0754d8;
  --yellow: #ffd735;
  --yellow-soft: #ffe978;
  --green: #31e99a;
  --red: #ff6474;
  --line: rgba(255, 255, 255, .10);
  --line-blue: rgba(36, 143, 255, .34);
  --line-yellow: rgba(255, 215, 53, .34);
  --shadow: 0 30px 100px rgba(0, 0, 0, .72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--yellow); color: #000; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.shell { width: min(1180px, calc(100% - 42px)); margin-inline: auto; }

/* Animated background */
.motion-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -18%, rgba(20, 105, 255, .12), transparent 35%),
    linear-gradient(180deg, #020202 0%, #030405 55%, #020202 100%);
}
.grid-plane {
  position: absolute;
  inset: -20%;
  opacity: .22;
  background-image:
    linear-gradient(rgba(70, 137, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 137, 255, .14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 68%);
  transform: perspective(850px) rotateX(68deg) translateY(34%);
  transform-origin: center;
  animation: gridMove 18s linear infinite;
}
.aurora {
  position: absolute;
  width: 52vw;
  height: 52vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(115px);
  opacity: .12;
  mix-blend-mode: screen;
}
.aurora-blue {
  background: var(--blue);
  top: 2%;
  right: -28%;
  animation: auroraBlue 15s ease-in-out infinite alternate;
}
.aurora-yellow {
  background: var(--yellow);
  bottom: 4%;
  left: -35%;
  opacity: .07;
  animation: auroraYellow 18s ease-in-out infinite alternate;
}
.beam {
  position: absolute;
  width: 2px;
  height: 80vh;
  opacity: .2;
  background: linear-gradient(transparent, var(--blue), transparent);
  filter: blur(.2px);
}
.beam-one { left: 18%; top: -12%; transform: rotate(25deg); animation: beamSlide 12s ease-in-out infinite; }
.beam-two { right: 18%; bottom: -15%; transform: rotate(-31deg); animation: beamSlide 15s ease-in-out -5s infinite reverse; background: linear-gradient(transparent, var(--yellow), transparent); }
.particle-layer { position: absolute; inset: 0; }
.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--duration) linear var(--delay) infinite;
}
.particle.blue { background: var(--blue-light); box-shadow: 0 0 12px var(--blue); }
.particle.yellow { background: var(--yellow); box-shadow: 0 0 12px rgba(255, 215, 53, .8); }

@keyframes gridMove { to { transform: perspective(850px) rotateX(68deg) translateY(calc(34% + 72px)); } }
@keyframes auroraBlue { from { transform: translate3d(0, 0, 0) scale(.86); } to { transform: translate3d(-18%, 22%, 0) scale(1.18); } }
@keyframes auroraYellow { from { transform: translate3d(0, 0, 0) scale(.9); } to { transform: translate3d(25%, -25%, 0) scale(1.12); } }
@keyframes beamSlide { 0%, 100% { opacity: .05; transform: translateX(-50px) rotate(25deg); } 50% { opacity: .26; transform: translateX(70px) rotate(25deg); } }
@keyframes particleFloat {
  0% { transform: translate3d(0, 28px, 0) scale(.4); opacity: 0; }
  15% { opacity: .65; }
  70% { opacity: .3; }
  100% { transform: translate3d(var(--drift), -150px, 0) scale(1.1); opacity: 0; }
}

/* Header */
.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.035em; font-size: 21px; }
.brand-name strong { color: var(--yellow); }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  color: #050505;
  background: linear-gradient(145deg, var(--yellow-soft), var(--yellow));
  box-shadow: 0 0 0 5px rgba(255, 215, 53, .04), 0 14px 40px rgba(255, 215, 53, .12);
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -70% 35%;
  transform: rotate(28deg);
  background: rgba(255, 255, 255, .52);
  animation: logoShine 4.8s ease-in-out infinite;
}
.brand-mark span { position: relative; z-index: 1; font-weight: 950; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 11px; }
@keyframes logoShine { 0%, 68% { transform: translateX(-180%) rotate(28deg); } 100% { transform: translateX(280%) rotate(28deg); } }
.desktop-nav { display: flex; align-items: center; gap: 31px; color: #a7adb8; font-size: 14px; }
.desktop-nav a { position: relative; transition: color .2s ease; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--yellow); transition: right .25s ease; }
.desktop-nav a:hover { color: white; }
.desktop-nav a:hover::after { right: 0; }
.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  font-weight: 750;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.nav-action:hover { border-color: var(--line-blue); background: rgba(24, 140, 255, .09); transform: translateY(-2px); }
.nav-action-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

/* Hero */
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  align-items: center;
  gap: 70px;
  padding: 62px 0 92px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a4aab5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 7px rgba(255, 215, 53, .08), 0 0 22px rgba(255, 215, 53, .7); animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 215, 53, 0), 0 0 28px rgba(255, 215, 53, .9); } }
.hero h1 {
  margin: 24px 0 22px;
  max-width: 760px;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: .99;
  letter-spacing: -.062em;
}
.hero h1 span { display: block; }
.headline-blue { color: var(--blue-light); text-shadow: 0 0 40px rgba(24, 140, 255, .18); }
.headline-yellow { color: var(--yellow); text-shadow: 0 0 40px rgba(255, 215, 53, .12); }
.hero-copy > p { max-width: 650px; color: var(--muted); line-height: 1.82; font-size: 17px; }
.hero-actions { display: flex; gap: 13px; margin-top: 31px; flex-wrap: wrap; }
.button {
  min-height: 54px;
  padding: 0 23px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-weight: 820;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: #050505; background: linear-gradient(110deg, var(--yellow-soft), var(--yellow)); box-shadow: 0 18px 55px rgba(255, 215, 53, .13); }
.button-primary:hover { box-shadow: 0 22px 65px rgba(255, 215, 53, .22); }
.button-secondary { border: 1px solid var(--line-blue); color: #e8f4ff; background: linear-gradient(110deg, rgba(24, 140, 255, .11), rgba(255,255,255,.02)); }
.button-secondary:hover { border-color: var(--blue-light); box-shadow: 0 18px 50px rgba(24, 140, 255, .1); }
.button-arrow { font-size: 18px; }
.trust-row { margin-top: 27px; display: flex; gap: 23px; flex-wrap: wrap; color: #a2a8b4; font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px rgba(24, 140, 255, .9); }
.trust-row span:nth-child(2) i { background: var(--yellow); box-shadow: 0 0 14px rgba(255, 215, 53, .75); }

/* Hero animated core */
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; perspective: 1000px; }
.visual-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(24, 140, 255, .18), transparent 68%); filter: blur(15px); animation: glowBreath 5s ease-in-out infinite; }
.ai-core {
  position: relative;
  z-index: 4;
  width: 218px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 52px;
  border: 1px solid rgba(90, 176, 255, .52);
  background:
    linear-gradient(145deg, rgba(24, 140, 255, .13), rgba(255, 215, 53, .035)),
    rgba(5, 7, 10, .94);
  box-shadow:
    inset 0 0 50px rgba(24, 140, 255, .09),
    0 0 0 9px rgba(24, 140, 255, .025),
    0 50px 100px rgba(0, 0, 0, .72),
    0 0 75px rgba(24, 140, 255, .12);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  animation: coreFloat 5.2s ease-in-out infinite;
}
.ai-core::before, .ai-core::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.ai-core::before { inset: 12px; border: 1px dashed rgba(255, 215, 53, .21); animation: spinSlow 18s linear infinite; }
.ai-core::after { inset: -1px; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.12), transparent 48%); transform: translateX(-100%); animation: coreShine 5s ease-in-out infinite; }
.core-label { color: var(--yellow); font-size: 11px; font-weight: 850; letter-spacing: .32em; margin-left: .32em; }
.ai-core strong { font-size: 76px; line-height: 1; letter-spacing: -.07em; background: linear-gradient(135deg, white, var(--blue-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-core small { margin-top: 10px; color: #77808d; font-size: 10px; font-weight: 750; letter-spacing: .25em; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(24, 140, 255, .22); }
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 18px var(--yellow); left: 50%; top: -5px; }
.orbit-one { width: 320px; height: 320px; animation: spin 17s linear infinite; }
.orbit-two { width: 410px; height: 410px; border-color: rgba(255, 215, 53, .13); animation: spin 25s linear infinite reverse; }
.orbit-two::after { background: var(--blue-light); box-shadow: 0 0 18px var(--blue); }
.orbit-three { width: 485px; height: 485px; border-style: dashed; opacity: .38; animation: spin 34s linear infinite; }
.floating-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 145px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 9, 12, .83);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 65px rgba(0,0,0,.55);
}
.floating-chip strong, .floating-chip small { display: block; }
.floating-chip strong { font-size: 13px; }
.floating-chip small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.chip-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(24, 140, 255, .12); color: var(--blue-light); font-size: 16px; }
.chip-one { top: 12%; left: 2%; animation: chipFloat 5.6s ease-in-out infinite; }
.chip-two { right: -1%; top: 42%; animation: chipFloat 6.3s ease-in-out -2s infinite; }
.chip-two .chip-icon { background: rgba(255, 215, 53, .1); color: var(--yellow); }
.chip-three { left: 4%; bottom: 9%; animation: chipFloat 7s ease-in-out -4s infinite; }
.signal-line { position: absolute; z-index: 1; width: 150px; height: 1px; transform-origin: left; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .35; }
.signal-a { left: 20%; top: 28%; transform: rotate(18deg); animation: signal 2.6s linear infinite; }
.signal-b { right: 11%; top: 50%; transform: rotate(165deg); animation: signal 3.1s linear -.8s infinite; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
.signal-c { left: 22%; bottom: 25%; transform: rotate(-22deg); animation: signal 3.6s linear -1.6s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes coreFloat { 50% { transform: translateY(-11px) rotateX(2deg) rotateY(-2deg); } }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }
@keyframes glowBreath { 50% { transform: scale(1.18); opacity: .68; } }
@keyframes coreShine { 0%, 65% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes signal { from { background-position: -150px; } to { background-position: 150px; } }

/* Live strip */
.live-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 6, 8, .78);
  box-shadow: var(--shadow);
}
.live-state { height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); color: #d7dbe2; font-size: 11px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.live-state span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.live-marquee { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 24px; color: #78808c; font-size: 13px; animation: marquee 20s linear infinite; }
.marquee-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* API showcase */
.api-showcase { padding: 130px 0 55px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 82px; align-items: center; }
.showcase-copy h2, .section h2, .flow h2, .cta h2 { margin: 15px 0 20px; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.06; letter-spacing: -.052em; }
.showcase-copy h2 span, .cta h2 span { color: var(--yellow); }
.showcase-copy > p { color: var(--muted); line-height: 1.8; max-width: 530px; }
.endpoint-inline { margin-top: 27px; display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 18px; border: 1px solid var(--line-blue); border-radius: 16px; background: rgba(24, 140, 255, .055); }
.endpoint-inline div { min-width: 0; display: grid; gap: 6px; }
.endpoint-inline small { color: #69717d; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.endpoint-inline code { color: #b7e2ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.endpoint-inline button { border: 1px solid var(--line); border-radius: 11px; background: #101318; color: white; padding: 10px 13px; transition: .2s ease; }
.endpoint-inline button:hover, .endpoint-inline button.copied { border-color: var(--yellow); color: var(--yellow); }
.hero-console { border: 1px solid rgba(36, 143, 255, .27); border-radius: 26px; background: linear-gradient(155deg, rgba(11, 14, 20, .96), rgba(5, 6, 8, .95)); box-shadow: 0 35px 100px rgba(0,0,0,.72), 0 0 70px rgba(24, 140, 255, .07); overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); color: #777f8b; font-size: 10px; letter-spacing: .14em; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a404a; }
.window-dots i:first-child { background: var(--red); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:last-child { background: var(--green); }
.console-top b { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; }
.console-top b i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero-console pre { margin: 0; padding: 27px; min-height: 340px; white-space: pre-wrap; color: #d4dae4; line-height: 1.77; font-size: 14px; overflow: auto; }
.method { color: var(--green); }
.key { color: var(--blue-light); }
.value { color: var(--yellow-soft); }
.console-result { border-top: 1px solid var(--line); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.console-result div { display: grid; gap: 3px; }
.console-result small { color: var(--muted); }
.console-result em { margin-left: auto; color: var(--yellow); font-style: normal; font-size: 11px; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 45px; }
.metrics article { min-height: 115px; padding: 20px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(12, 14, 17, .88), rgba(5, 6, 8, .78)); transition: transform .2s ease, border-color .2s ease; }
.metrics article:hover { transform: translateY(-4px); border-color: var(--line-blue); }
.metric-icon { min-width: 48px; height: 48px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px; font-size: 14px; font-weight: 900; }
.metric-icon.blue { color: var(--blue-light); background: rgba(24, 140, 255, .1); border: 1px solid rgba(24, 140, 255, .18); }
.metric-icon.yellow { color: var(--yellow); background: rgba(255, 215, 53, .08); border: 1px solid rgba(255, 215, 53, .16); }
.metrics article div { display: grid; gap: 5px; }
.metrics strong { font-size: 16px; }
.metrics small { color: var(--muted); font-size: 11px; }

/* Features */
.section { padding: 135px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .62fr; gap: 70px; align-items: end; margin-bottom: 44px; }
.section-heading p { color: var(--muted); line-height: 1.78; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card { position: relative; min-height: 280px; padding: 25px; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg, rgba(13, 15, 19, .92), rgba(5, 6, 8, .88)); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card::before { content: ""; position: absolute; width: 130px; height: 130px; right: -70px; top: -70px; border-radius: 50%; background: var(--blue); filter: blur(65px); opacity: .07; transition: opacity .25s ease; }
.feature-card:nth-child(even)::before { background: var(--yellow); }
.feature-card:hover { transform: translateY(-7px); border-color: var(--line-blue); box-shadow: 0 30px 70px rgba(0,0,0,.42); }
.feature-card:nth-child(even):hover { border-color: var(--line-yellow); }
.feature-card:hover::before { opacity: .16; }
.feature-number { position: absolute; right: 20px; top: 20px; color: #31353c; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.feature-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 15px; background: rgba(24, 140, 255, .1); color: var(--blue-light); border: 1px solid rgba(24, 140, 255, .16); font-size: 23px; }
.feature-card:nth-child(even) .feature-icon { color: var(--yellow); background: rgba(255, 215, 53, .075); border-color: rgba(255, 215, 53, .15); }
.feature-card h3 { margin: 27px 0 11px; font-size: 19px; }
.feature-card p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.card-line { position: absolute; left: 25px; right: 72%; bottom: 22px; height: 2px; background: var(--blue); box-shadow: 0 0 14px rgba(24, 140, 255, .7); transition: right .35s ease; }
.feature-card:nth-child(even) .card-line { background: var(--yellow); box-shadow: 0 0 14px rgba(255, 215, 53, .6); }
.feature-card:hover .card-line { right: 25px; }

/* Flow */
.flow { padding: 70px 0 120px; }
.flow-heading { max-width: 700px; margin-bottom: 43px; }
.flow-track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.flow-track article { min-height: 180px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 9, 12, .82); }
.flow-track b { color: var(--yellow); font-size: 11px; letter-spacing: .16em; }
.flow-track strong { margin-top: auto; font-size: 17px; }
.flow-track span { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.flow-arrow { color: var(--blue); text-shadow: 0 0 18px var(--blue); animation: arrowBlink 1.8s ease-in-out infinite; }
@keyframes arrowBlink { 50% { opacity: .35; transform: translateX(3px); } }

/* CTA and footer */
.cta { position: relative; margin-bottom: 110px; padding: 50px; overflow: hidden; border: 1px solid var(--line-yellow); border-radius: 28px; background: linear-gradient(110deg, rgba(255, 215, 53, .06), rgba(24, 140, 255, .06), rgba(5,6,8,.9)); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta::before { content: ""; position: absolute; width: 300px; height: 300px; left: -180px; bottom: -230px; border-radius: 50%; background: var(--yellow); filter: blur(80px); opacity: .08; }
.cta h2 { max-width: 760px; margin-bottom: 13px; }
.cta p { margin: 0; color: var(--muted); }
.footer { padding: 42px 0 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; color: var(--muted); font-size: 12px; }
.footer p { margin: 12px 0 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--yellow); }

/* Studio */
.studio-body { height: 100vh; overflow: hidden; background: var(--black); }
.studio-motion .grid-plane { opacity: .13; }
.studio-header { position: relative; z-index: 20; height: 74px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(2, 2, 2, .80); backdrop-filter: blur(22px); }
.studio-header-actions { display: flex; gap: 10px; align-items: center; }
.studio-header-actions button, .studio-header-actions a, .settings-button { min-height: 41px; padding: 0 14px; color: white; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, background .2s ease; }
.studio-header-actions button:hover, .studio-header-actions a:hover, .settings-button:hover { border-color: var(--line-blue); background: rgba(24, 140, 255, .08); }
.studio-shell { position: relative; z-index: 2; height: calc(100vh - 74px); display: grid; grid-template-rows: auto 1fr auto; width: min(1000px, 100%); margin: auto; padding: 18px 23px 23px; }
.studio-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.studio-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.studio-toolbar select { min-width: 270px; color: white; padding: 12px 39px 12px 14px; background: #090b0e; border: 1px solid var(--line-blue); border-radius: 13px; }
.settings-button { display: inline-flex; align-items: center; gap: 8px; }
.settings-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(255, 215, 53, .75); }
.chat-panel { min-height: 0; overflow-y: auto; padding: 25px 4px 18px; scrollbar-width: thin; scrollbar-color: #27303b transparent; }
.empty-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px 0; }
.studio-core-wrap { position: relative; width: 105px; height: 105px; display: grid; place-items: center; }
.assistant-orb { position: relative; z-index: 3; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #050505; font-weight: 950; font-size: 28px; background: linear-gradient(145deg, var(--yellow-soft), var(--yellow)); box-shadow: 0 18px 55px rgba(255, 215, 53, .12); animation: coreFloat 4.8s ease-in-out infinite; }
.studio-ring { position: absolute; inset: 4px; border: 1px solid rgba(24, 140, 255, .3); border-radius: 31px; animation: spin 12s linear infinite; }
.studio-ring::after { content: ""; position: absolute; width: 7px; height: 7px; left: 50%; top: -4px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 12px var(--blue); }
.studio-ring.ring-b { inset: -8px; border-color: rgba(255, 215, 53, .18); animation-duration: 18s; animation-direction: reverse; }
.studio-ring.ring-b::after { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.assistant-label { color: var(--yellow) !important; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; font-size: 10px; margin: 21px 0 4px !important; }
.empty-state h1 { margin: 8px 0; max-width: 700px; font-size: clamp(36px, 6vw, 60px); letter-spacing: -.052em; line-height: 1.04; }
.empty-state > p { max-width: 600px; color: var(--muted); line-height: 1.7; }
.prompt-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(170px, 255px)); gap: 10px; }
.prompt-grid button { display: flex; align-items: center; gap: 11px; text-align: left; padding: 15px; color: #dfe4ec; border-radius: 15px; border: 1px solid var(--line); background: rgba(8, 10, 13, .82); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.prompt-grid button span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--blue-light); background: rgba(24, 140, 255, .09); }
.prompt-grid button:nth-child(even) span { color: var(--yellow); background: rgba(255, 215, 53, .07); }
.prompt-grid button:hover { transform: translateY(-3px); border-color: var(--line-blue); background: rgba(24, 140, 255, .055); }
.messages { display: grid; gap: 17px; max-width: 840px; margin: auto; }
.message { display: grid; grid-template-columns: 41px minmax(0, 1fr); gap: 13px; }
.message-avatar { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: #0b0d10; font-weight: 900; }
.message.assistant .message-avatar { color: #050505; background: var(--yellow); border-color: var(--yellow); }
.message.user .message-avatar { color: white; background: var(--blue-dark); border-color: var(--blue); }
.message-content { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(8, 10, 13, .86); }
.message.user .message-content { border-color: rgba(24, 140, 255, .24); background: rgba(24, 140, 255, .055); }
.message.assistant .message-content { border-color: rgba(255, 215, 53, .15); }
.message-content strong, .message-content small { display: block; }
.message-content strong { font-size: 13px; }
.message-content small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.message-content p { margin: 12px 0 0; color: #d6dbe3; line-height: 1.68; overflow-wrap: anywhere; }
.composer { position: relative; max-width: 880px; width: 100%; margin: 0 auto; padding: 12px 70px 30px 15px; border: 1px solid rgba(24, 140, 255, .28); border-radius: 19px; background: rgba(7, 9, 12, .90); box-shadow: 0 22px 70px rgba(0,0,0,.58); backdrop-filter: blur(20px); }
.composer-glow { position: absolute; width: 180px; height: 80px; right: -40px; top: -40px; border-radius: 50%; background: var(--blue); filter: blur(55px); opacity: .08; pointer-events: none; }
.composer textarea { position: relative; z-index: 2; display: block; width: 100%; min-height: 55px; max-height: 160px; resize: none; border: 0; outline: 0; color: white; background: transparent; line-height: 1.55; }
.composer textarea::placeholder { color: #656d79; }
.composer button { position: absolute; z-index: 3; right: 13px; top: 13px; width: 45px; height: 45px; display: grid; place-items: center; border: 0; border-radius: 14px; color: #050505; background: var(--yellow); font-size: 19px; font-weight: 900; box-shadow: 0 12px 35px rgba(255, 215, 53, .13); }
.composer button:disabled { opacity: .55; cursor: wait; }
.composer small { position: absolute; left: 15px; bottom: 10px; display: flex; align-items: center; gap: 8px; color: #69717d; font-size: 9px; }
.composer small i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
dialog { width: min(430px, calc(100% - 32px)); border: 1px solid var(--line-yellow); border-radius: 22px; color: white; background: #090b0e; box-shadow: 0 35px 100px rgba(0,0,0,.78); }
dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
.settings-card { display: grid; gap: 15px; padding: 13px; }
.settings-card h2, .settings-card p { margin: 0; }
.settings-card p { color: var(--muted); line-height: 1.65; }
.dialog-badge { width: max-content; padding: 7px 10px; border-radius: 9px; background: rgba(255, 215, 53, .08); color: var(--yellow); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.settings-card input { width: 100%; padding: 13px 14px; border: 1px solid var(--line-blue); border-radius: 12px; color: white; background: #050608; outline: 0; }
.settings-card > div { display: flex; justify-content: flex-end; gap: 9px; }
.settings-card button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: white; background: #111419; }
.settings-card button:last-child { border-color: var(--yellow); color: #050505; background: var(--yellow); font-weight: 800; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 50px; }
  .hero-visual { min-height: 500px; }
  .api-showcase { grid-template-columns: 1fr; gap: 45px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-track { grid-template-columns: repeat(2, 1fr); }
  .flow-arrow { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 30px, 1180px); }
  .nav { min-height: 74px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-action { padding: 0 13px; font-size: 11px; }
  .hero { min-height: auto; padding: 50px 0 55px; }
  .hero h1 { font-size: clamp(46px, 14vw, 65px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .trust-row { display: grid; gap: 12px; }
  .hero-visual { min-height: 430px; transform: scale(.88); margin: -25px -35px; }
  .ai-core { width: 190px; border-radius: 44px; }
  .ai-core strong { font-size: 66px; }
  .orbit-one { width: 280px; height: 280px; }
  .orbit-two { width: 350px; height: 350px; }
  .orbit-three { width: 420px; height: 420px; }
  .floating-chip { min-width: 130px; padding: 11px 12px; }
  .chip-one { left: 1%; }
  .chip-two { right: 1%; }
  .chip-three { left: 3%; }
  .live-strip { grid-template-columns: 1fr; }
  .live-state { min-height: 52px; border-right: 0; border-bottom: 1px solid var(--line); justify-content: center; }
  .live-marquee { min-height: 48px; display: flex; align-items: center; }
  .api-showcase { padding-top: 100px; }
  .showcase-copy h2, .section h2, .flow h2, .cta h2 { font-size: 40px; }
  .endpoint-inline { grid-template-columns: 1fr; }
  .endpoint-inline button { width: 100%; }
  .hero-console pre { padding: 20px; font-size: 11.5px; min-height: 300px; }
  .metrics { grid-template-columns: 1fr; }
  .section { padding: 105px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 245px; }
  .flow-track { grid-template-columns: 1fr; }
  .flow-track article { min-height: 150px; }
  .cta { margin-bottom: 80px; padding: 30px 24px; align-items: stretch; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .aurora { opacity: .08; }

  .studio-header { padding: 0 15px; }
  .studio-header-actions a { display: none; }
  .studio-header-actions button { font-size: 11px; padding: 0 11px; }
  .studio-shell { padding: 14px 14px 16px; }
  .studio-toolbar { align-items: stretch; }
  .studio-toolbar label { flex: 1; }
  .studio-toolbar select { min-width: 0; width: 100%; }
  .settings-button { min-width: 48px; font-size: 0; justify-content: center; }
  .settings-button::after { content: "KEY"; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
  .empty-state { justify-content: flex-start; padding-top: 70px; }
  .empty-state h1 { font-size: 42px; }
  .prompt-grid { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .prompt-grid button { padding: 12px; font-size: 12px; }
  .message { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .message-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .message-content { padding: 13px; }
  .message-content p { font-size: 13px; }
  .composer { padding-right: 62px; }
  .composer small { max-width: calc(100% - 80px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

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

/* HAIRA-MARKDOWN-STYLES-V1 */

.markdown-body {
  margin-top: 12px;
  min-width: 0;
  color: #dce1e9;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.message-content .markdown-body p {
  margin: 0;
  color: #dce1e9;
  line-height: 1.72;
}

.markdown-body .md-space {
  height: 15px;
}

.markdown-body strong,
.markdown-body em {
  color: #ffffff;
  font-weight: 800;
  font-style: normal;
}

.message.assistant .markdown-body strong,
.message.assistant .markdown-body em {
  color: #fff4b0;
}

.markdown-body del {
  color: #7f8793;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 18px 0 8px;
  color: #ffffff;
  line-height: 1.35;
}

.markdown-body h2 {
  font-size: 1.32em;
}

.markdown-body h3 {
  font-size: 1.2em;
}

.markdown-body h4,
.markdown-body h5 {
  font-size: 1.08em;
}

.markdown-body ul,
.markdown-body ol {
  margin: 10px 0;
  padding-left: 23px;
}

.markdown-body li {
  margin: 7px 0;
  padding-left: 3px;
  color: #dce1e9;
}

.markdown-body li::marker {
  color: #ffd600;
  font-weight: 900;
}

.markdown-body blockquote {
  margin: 14px 0;
  padding: 12px 15px;
  border-left: 3px solid #ffd600;
  border-radius: 0 10px 10px 0;
  color: #e7eaf0;
  background: rgba(255, 214, 0, 0.055);
}

.markdown-body a {
  color: #28a8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body code {
  padding: 2px 6px;
  border: 1px solid rgba(40, 168, 255, 0.22);
  border-radius: 6px;
  color: #8bd3ff;
  background: rgba(40, 168, 255, 0.09);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.9em;
}

.md-code-block {
  margin: 15px 0;
  overflow: hidden;
  border: 1px solid rgba(40, 168, 255, 0.22);
  border-radius: 14px;
  background: #05070a;
}

.md-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: #87919e;
  background: #0a0d12;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-code-button {
  width: auto !important;
  height: auto !important;
  min-height: 28px;
  padding: 5px 11px !important;
  position: static !important;
  border: 1px solid rgba(255, 214, 0, 0.22) !important;
  border-radius: 8px !important;
  color: #ffd600 !important;
  background: rgba(255, 214, 0, 0.06) !important;
  box-shadow: none !important;
  font-size: 10px !important;
  cursor: pointer;
}

.md-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre;
  scrollbar-width: thin;
}

.md-code-block pre code {
  padding: 0;
  border: 0;
  color: #dce5ef;
  background: transparent;
  line-height: 1.6;
  font-size: 12px;
}

@media (max-width: 640px) {
  .markdown-body {
    font-size: 13px;
    line-height: 1.7;
  }

  .message-content .markdown-body p {
    font-size: 13px;
    line-height: 1.7;
  }

  .markdown-body ul,
  .markdown-body ol {
    padding-left: 19px;
  }

  .md-code-block pre {
    padding: 13px;
  }
}

/* AKHIR HAIRA-MARKDOWN-STYLES-V1 */
