/* ============================================================================
   Sinaqia Brokers — landing
   Dark-first · agency-bold · on-brand emerald + navy
   ============================================================================ */

:root {
  /* Brand */
  --emerald-600:#059669; --emerald-500:#10b981; --emerald-400:#34d399; --emerald-300:#6ee7b7;
  --emerald-100:#d1fae5; --emerald-50:#ecfdf5;
  --navy-950:#020617; --navy-900:#0f172a; --navy-800:#1e293b; --navy-700:#334155;
  --slate-600:#475569; --slate-500:#64748b; --slate-400:#94a3b8; --slate-300:#cbd5e1;
  --slate-200:#e2e8f0; --slate-100:#f1f5f9; --slate-50:#f8fafc; --white:#ffffff;
  --amber-400:#fbbf24; --rose-400:#fb7185;

  /* Surfaces (dark theme) */
  --bg:           var(--navy-950);
  --bg-elev-1:    rgba(255,255,255,.025);
  --bg-elev-2:    rgba(255,255,255,.045);
  --bg-glass:     rgba(15,23,42,.55);
  --border:       rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);
  --text:         var(--slate-50);
  --text-muted:   var(--slate-400);
  --text-dim:     var(--slate-500);
  --accent:       var(--emerald-400);
  --accent-strong:var(--emerald-500);

  /* Motion tokens */
  --motion: 1;
  --d-instant: 120ms;
  --d-fast: 200ms;
  --d-base: 320ms;
  --d-slow: 520ms;
  --d-dramatic: 820ms;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-back: cubic-bezier(.34, 1.56, .64, 1);

  /* Radii */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows (color-aware) */
  --sh-glow-emerald: 0 0 0 1px rgba(16,185,129,.22), 0 12px 48px -10px rgba(16,185,129,.4);
  --sh-card:         0 1px 0 rgba(255,255,255,.03) inset, 0 14px 40px -20px rgba(0,0,0,.6);
  --sh-card-hover:   0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -20px rgba(16,185,129,.18);
}

@media (prefers-reduced-motion: reduce) { :root { --motion: 0; } }

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================================
   AURORA — global ambient background
   ============================================================================ */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35;
  will-change: transform;
}
.aurora__blob--a { background: var(--emerald-500); width: 60vmax; height: 60vmax; top: -25%; left: -15%; animation: aurora-drift-a 28s ease-in-out infinite; }
.aurora__blob--b { background: var(--navy-700);   width: 50vmax; height: 50vmax; bottom: -20%; right: -10%; animation: aurora-drift-b 34s ease-in-out infinite; }
.aurora__blob--c { background: var(--emerald-600); width: 40vmax; height: 40vmax; top: 40%; left: 50%; opacity: .18; animation: aurora-drift-c 40s ease-in-out infinite; }
.aurora__grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora-drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%, -6%) scale(1.1); } }
@keyframes aurora-drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.05); } }
@keyframes aurora-drift-c { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-46%, -54%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora__blob { animation: none; } }

/* ============================================================================
   REVEAL — base for all data-reveal elements
   ============================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   var(--d-slow) var(--ease-out-expo),
    transform var(--d-slow) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 14px 22px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform var(--d-base) var(--ease-out-expo),
              background var(--d-fast) ease,
              border-color var(--d-fast) ease,
              box-shadow var(--d-base) var(--ease-out-expo),
              color var(--d-fast) ease;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-500) 60%, var(--emerald-600) 100%);
  color: var(--navy-950);
  box-shadow: var(--sh-glow-emerald);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  pointer-events: none;
}
.btn--primary:hover::after { transition: transform .7s ease; transform: translateX(130%); }
@media (prefers-reduced-motion: reduce) { .btn--primary::after { display: none; } }

.btn--ghost {
  background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--emerald-400); color: var(--emerald-300); }

.btn--outline {
  background: transparent; border-color: var(--border-strong); color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.04); border-color: var(--emerald-400); }

[data-magnetic] { transition: transform var(--d-base) var(--ease-out-back); }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(2,6,23,.55);
  border-bottom: 1px solid var(--border);
  transition: background var(--d-base) ease, border-color var(--d-base) ease;
}
.nav.is-scrolled { background: rgba(2,6,23,.85); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; }
.nav__links {
  display: flex; gap: 32px; align-items: center;
}
.nav__links a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color var(--d-fast) ease; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: var(--navy-950); }
.nav__toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--d-base) var(--ease-out-back), opacity var(--d-fast); }
.nav__overlay { display: none; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 0; padding: 32px 24px;
    background: rgba(2,6,23,.96); backdrop-filter: blur(20px);
    flex-direction: column; gap: 24px; align-items: flex-start;
    transform: translateX(100%); transition: transform var(--d-slow) var(--ease-out-expo);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { font-size: 22px; font-weight: 600; color: var(--text); }
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative; padding: 60px 0 80px;
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--emerald-400); padding: 8px 14px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25);
  border-radius: 999px; margin-bottom: 32px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.4vw + .4rem, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 28px;
}
.hero__title .line { display: block; }
.hero__title .line--accent { position: relative; padding-top: 4px; }
.accent-text {
  background: linear-gradient(110deg, var(--emerald-300) 0%, var(--emerald-400) 35%, var(--emerald-500) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  position: relative; display: inline-block;
}
.accent-text__glow {
  position: absolute; left: 0; right: 0; bottom: 4%; height: 30%;
  background: radial-gradient(60% 100% at 50% 50%, rgba(16,185,129,.55), transparent 70%);
  filter: blur(28px); z-index: -1;
}
.hero__subtitle {
  font-size: clamp(1rem, .6vw + .9rem, 1.18rem);
  color: var(--text-muted); max-width: 560px; margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__bullets {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 13.5px; color: var(--text-muted);
}
.hero__bullets li { display: inline-flex; align-items: center; gap: 8px; }
.hero__bullets .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-400);
  box-shadow: 0 0 12px rgba(16,185,129,.6);
}

/* Hero visual + floating mockup */
.hero__visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
  padding: 20px 40px 36px;          /* aire para los floaters */
}
.hero__mockup {
  position: relative;
  width: 100%; max-width: 420px;
}
.chat-mockup--floating {
  transform: rotate3d(0,1,0.05,-3deg) translateZ(0);
  animation: float-soft 6s ease-in-out infinite;
}
@keyframes float-soft {
  0%,100% { transform: rotate3d(0,1,0.05,-3deg) translateY(0); }
  50%     { transform: rotate3d(0,1,0.05,-3deg) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) { .chat-mockup--floating { animation: none; transform: none; } }

.floater {
  position: absolute; padding: 9px 14px; border-radius: 999px;
  background: rgba(15,23,42,.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); color: var(--text);
  font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.5);
  white-space: nowrap;
  will-change: transform;
  z-index: 2;
}
/* Posiciones respecto al .hero__mockup (420px max) — asoman fuera del mockup pero contenidas por el padding del .hero__visual */
.floater--rag        { top: -14px;    left: -28px;   animation: float-tag 7s ease-in-out infinite; }
.floater--reflection { top: 44%;      right: -22px;  animation: float-tag 8s ease-in-out infinite reverse; color: var(--emerald-300); border-color: rgba(16,185,129,.4); background: rgba(2,40,30,.85); }
.floater--latency    { bottom: -22px; left: 32px;    animation: float-tag 6s ease-in-out infinite; }
.floater__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 10px rgba(16,185,129,.7); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float-tag { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,-10px); } }
@media (prefers-reduced-motion: reduce) {
  .floater--rag,.floater--reflection,.floater--latency,.floater__dot { animation: none; }
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px; display: grid; place-items: center;
  opacity: .6; transition: opacity var(--d-base);
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll span {
  width: 4px; height: 8px; background: var(--emerald-400); border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%,100% { transform: translateY(-6px); opacity: .3; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ============================================================================
   CHAT MOCKUP (shared)
   ============================================================================ */
.chat-mockup {
  width: 100%; max-width: 420px;
  background: rgba(15,23,42,.7); backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--sh-card), 0 30px 80px -30px rgba(16,185,129,.25);
  overflow: hidden;
}
.chat-mockup--lg { max-width: 640px; }
.chat-mockup__header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-bottom: 1px solid var(--border);
}
.chat-mockup__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); font-weight: 800; font-size: 17px;
  box-shadow: 0 0 0 2px rgba(16,185,129,.25);
}
.chat-mockup__name { font-weight: 600; font-size: 14.5px; }
.chat-mockup__status { color: var(--text-dim); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.chat-mockup__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 8px rgba(16,185,129,.7); animation: pulse-dot 2s ease-in-out infinite; }
.chat-mockup__tools {
  margin-left: auto; display: flex; gap: 6px;
}
.tool-trace {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-dim);
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.chat-mockup__messages {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  min-height: 320px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(16,185,129,.07), transparent 50%),
    rgba(2,6,23,.4);
}
.chat-mockup--lg .chat-mockup__messages { min-height: 420px; }

.chat-msg {
  max-width: 78%; padding: 11px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.5;
  animation: msg-pop var(--d-slow) var(--ease-out-back) both;
}
@keyframes msg-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-msg--user {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot {
  background: rgba(255,255,255,.06); color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg--card { padding: 10px; background: transparent; }
.bot-card {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
}
.bot-card__title { font-weight: 600; font-size: 13.5px; color: var(--emerald-300); }
.bot-card__sub { color: var(--text-muted); font-size: 12px; }

.chat-msg--typing { padding: 14px 18px; display: inline-flex; gap: 4px; }
.chat-msg--typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted);
  animation: typing-dot 1.2s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .chat-msg, .chat-msg--typing span { animation: none; }
}

.chat-mockup__input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 12px;
  background: rgba(255,255,255,.03); border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13.5px;
}

/* ============================================================================
   TRUST / MARQUEE
   ============================================================================ */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.trust__inner { display: flex; align-items: center; gap: 32px; }
.trust__label {
  flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--text-dim); text-transform: uppercase;
}
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: inline-flex; align-items: center; gap: 64px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.marquee__item { flex-shrink: 0; display: grid; place-items: center; }
.marquee__item img { height: 36px; width: auto; opacity: .65; filter: grayscale(1) brightness(1.6); transition: opacity var(--d-base), filter var(--d-base); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item:hover img { opacity: 1; filter: grayscale(0) brightness(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================================
   STATS
   ============================================================================ */
.stats { padding: 80px 0 40px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1); backdrop-filter: blur(14px);
  padding: 36px 24px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%;
  width: 1px; background: var(--border);
}
.stat__value {
  font-size: clamp(2rem, 3vw + .5rem, 3rem); font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 0%, var(--slate-300) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

@media (max-width: 880px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat + .stat::before { display: none; }
}

/* ============================================================================
   SECTION HEADER (shared)
   ============================================================================ */
.section-header { max-width: 760px; margin-bottom: 56px; }
.section-header--centered { margin-inline: auto; text-align: center; }
.section-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald-400); margin-bottom: 18px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.4vw + .4rem, 3.4rem); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.05; margin-bottom: 18px;
}
.section-header p { color: var(--text-muted); font-size: clamp(1rem, .3vw + .9rem, 1.12rem); max-width: 640px; }
.section-header--centered p { margin-inline: auto; }

/* ============================================================================
   CAPABILITIES — bento grid
   ============================================================================ */
.capabilities { padding: 120px 0 100px; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.bento__cell {
  position: relative;
  padding: 28px;
  background: var(--bg-elev-1); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  transition: transform var(--d-base) var(--ease-out-expo),
              border-color var(--d-base) ease,
              background var(--d-base) ease,
              box-shadow var(--d-base) var(--ease-out-expo);
  overflow: hidden;
}
.bento__cell::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(16,185,129,.0), rgba(16,185,129,.06));
  opacity: 0; transition: opacity var(--d-base);
  pointer-events: none;
}
.bento__cell:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,.35);
  background: var(--bg-elev-2);
  box-shadow: var(--sh-card-hover);
}
.bento__cell:hover::before { opacity: 1; }
.bento__cell--hero {
  grid-column: span 2; grid-row: span 2;
  min-height: 460px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(16,185,129,.14), transparent 50%),
    var(--bg-elev-1);
  border-color: rgba(16,185,129,.25);
}
.bento__cell h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.bento__cell--hero h3 { font-size: 28px; }
.bento__cell p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
.bento__cell--hero p { font-size: 15.5px; max-width: 92%; }
.bento__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.bento__icon--brand {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); border: none;
  box-shadow: var(--sh-glow-emerald);
}
.bento__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill {
  font-size: 11px; padding: 5px 10px; border-radius: 999px;
  background: rgba(16,185,129,.1); color: var(--emerald-300);
  border: 1px solid rgba(16,185,129,.25);
  font-weight: 500;
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--hero { grid-column: span 2; grid-row: auto; min-height: 320px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--hero { grid-column: span 1; }
}

/* ============================================================================
   PIPELINE — RAG diagram
   ============================================================================ */
.pipeline { padding: 100px 0; position: relative; }
.pipeline__diagram {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px;
  align-items: stretch; margin: 56px 0 48px;
}
.pipeline__step {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 14px;
}
.pipeline__step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
  border-radius: 2px; opacity: .4;
}
.pipeline__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--emerald-400); font-weight: 600;
  letter-spacing: 0.15em;
}
.pipeline__body h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.pipeline__body p { color: var(--text-muted); font-size: 14.5px; }
.pipeline__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 11.5px; padding: 5px 10px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.chip--high  { background: rgba(16,185,129,.12); color: var(--emerald-300); border-color: rgba(16,185,129,.35); }
.chip--med   { background: rgba(251,191,36,.1); color: var(--amber-400); border-color: rgba(251,191,36,.3); }
.chip--low   { background: rgba(251,113,133,.1); color: var(--rose-400); border-color: rgba(251,113,133,.3); }
.chip--brand { background: rgba(16,185,129,.2); color: var(--emerald-300); border-color: rgba(16,185,129,.4); }

.pipeline__arrow {
  display: grid; place-items: center; color: var(--emerald-400);
  opacity: .6;
}
.pipeline__arrow svg { width: 50px; height: 24px; }
.pipeline__arrow svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: arrow-draw 2s var(--ease-out-expo) infinite; }
@keyframes arrow-draw {
  0%   { stroke-dashoffset: 60; opacity: 0; }
  25%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -60; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline__arrow svg path { animation: none; stroke-dashoffset: 0; }
}

.pipeline__notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.pipeline__note {
  padding: 16px 20px; border-radius: var(--r);
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted);
}
.pipeline__note strong { color: var(--emerald-300); font-weight: 600; }

@media (max-width: 1000px) {
  .pipeline__diagram { grid-template-columns: 1fr; }
  .pipeline__arrow { transform: rotate(90deg); }
  .pipeline__notes { grid-template-columns: 1fr; }
}

/* ============================================================================
   DEMO panel
   ============================================================================ */
.demo { padding: 100px 0; }
.demo__panel {
  background: var(--bg-elev-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px; backdrop-filter: blur(14px);
}
.demo__tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px;
  padding: 6px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 999px;
  width: max-content; max-width: 100%;
}
.demo__tab {
  background: transparent; border: none; padding: 10px 18px;
  border-radius: 999px; color: var(--text-muted);
  font-size: 13.5px; font-weight: 500;
  transition: background var(--d-fast), color var(--d-fast);
}
.demo__tab:hover { color: var(--text); }
.demo__tab.is-active {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); font-weight: 600;
}
.demo__stage { display: grid; place-items: center; }
.demo__cta { text-align: center; margin-top: 28px; }

@media (max-width: 640px) {
  .demo__panel { padding: 20px; }
  .demo__tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .demo__tab { flex-shrink: 0; }
}

/* ============================================================================
   CHANNELS
   ============================================================================ */
.channels { padding: 100px 0; }
.channels__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.channel {
  padding: 32px 26px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform var(--d-base) var(--ease-out-expo),
              border-color var(--d-base);
}
.channel:hover { transform: translateY(-6px); border-color: rgba(16,185,129,.35); }
.channel__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
}
.channel__icon--wa  { background: rgba(37,211,102,.12); color: #25d366; }
.channel__icon--tg  { background: rgba(0,136,204,.12);  color: #29b6f6; }
.channel__icon--web { background: rgba(16,185,129,.12); color: var(--emerald-400); }
.channel__icon--api { background: rgba(168,85,247,.12); color: #c084fc; }
.channel h3 { font-size: 18px; font-weight: 600; }
.channel p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.channel__tag {
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-dim); width: max-content;
  font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.05em;
  margin-top: auto;
}

@media (max-width: 880px) { .channels__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .channels__grid { grid-template-columns: 1fr; } }

/* ============================================================================
   CONFIG PANEL (split)
   ============================================================================ */
.config-panel { padding: 100px 0; }
.config-panel__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.config-panel__list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.config-panel__list li {
  padding-left: 22px; position: relative; color: var(--text-muted); font-size: 14.5px;
}
.config-panel__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-400);
  box-shadow: 0 0 10px rgba(16,185,129,.6);
}
.config-panel__list strong { color: var(--text); font-weight: 600; }

.config-card {
  position: relative;
  border: 1px solid rgba(16,185,129,.3); border-radius: var(--r-lg);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(16,185,129,.08), transparent 60%),
    rgba(15,23,42,.7);
  backdrop-filter: blur(16px);
  padding: 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  box-shadow: 0 30px 80px -30px rgba(16,185,129,.3);
  overflow: hidden;
}
.config-card__header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.config-card__title { font-size: 13.5px; color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 500; }
.config-card__badge {
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  background: rgba(16,185,129,.15); color: var(--emerald-300);
  border: 1px solid rgba(16,185,129,.35);
  font-family: 'Poppins', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}
.config-card__rows { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.config-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.04);
}
.config-row span { color: var(--text-muted); }
.config-row code { color: var(--emerald-300); font-weight: 500; }
.config-row code.ok { color: var(--emerald-300); }
.config-card__pulse {
  position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,.3), transparent 70%);
  filter: blur(20px); animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .8; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .config-card__pulse { animation: none; } }

@media (max-width: 880px) {
  .config-panel__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================================
   STEPS (How it works)
   ============================================================================ */
.how { padding: 100px 0; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative; padding: 36px 28px 30px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1);
  transition: transform var(--d-base) var(--ease-out-expo), border-color var(--d-base);
}
.step:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.3); }
.step__num {
  font-size: 56px; font-weight: 800; font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; letter-spacing: -.05em; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 20px; margin-bottom: 8px; font-weight: 600; letter-spacing: -.01em; }
.step p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================================
   CONTROL / DASHBOARD preview
   ============================================================================ */
.control { padding: 100px 0; }
.control__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.control__list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 14.5px; }
.dash {
  position: relative;
  padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(15,23,42,.7); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(16,185,129,.25);
}
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash__title { font-size: 14px; font-weight: 600; color: var(--text); }
.dash__chip { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(16,185,129,.15); color: var(--emerald-300); border: 1px solid rgba(16,185,129,.35); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.dash__metric { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.dash__num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.dash__metric span:last-child { color: var(--text-muted); font-size: 11.5px; }
.dash__chart svg { width: 100%; height: 80px; }
.dash__line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.is-visible .dash__line { animation: line-draw 2.4s var(--ease-out-expo) .3s forwards; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .dash__line { stroke-dashoffset: 0; animation: none; } }

@media (max-width: 880px) {
  .control__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================================
   PRICING
   ============================================================================ */
.pricing { padding: 100px 0; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative; padding: 36px 30px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform var(--d-base) var(--ease-out-expo), border-color var(--d-base);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.plan__name { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.plan__price { font-size: 38px; font-weight: 800; letter-spacing: -.025em; color: var(--text); }
.plan__desc { color: var(--text-muted); font-size: 14.5px; }
.plan__features { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan__features li { padding-left: 28px; position: relative; color: var(--text); }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 11px;
}
.plan__features li.ok { color: var(--text); }
.plan__features li.ok::before {
  background-color: rgba(16,185,129,.18); border: 1px solid rgba(16,185,129,.4);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan__features li.no { color: var(--text-dim); }
.plan__features li.no::before {
  background-color: rgba(255,255,255,.04); border: 1px solid var(--border);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
.plan--featured {
  border-color: rgba(16,185,129,.4);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(16,185,129,.1), transparent 50%),
    var(--bg-elev-2);
  box-shadow: var(--sh-glow-emerald);
}
.plan--featured:hover { border-color: rgba(16,185,129,.6); }
.plan__badge {
  position: absolute; top: -12px; right: 24px;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

@media (max-width: 880px) { .pricing__grid { grid-template-columns: 1fr; } }

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */
.testimonials { padding: 100px 0; }
.testimonials__carousel {
  position: relative; max-width: 760px; margin: 0 auto;
  min-height: 280px;
}
.testimonial {
  position: absolute; inset: 0;
  padding: 40px 32px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev-1); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(20px) scale(.98);
  transition: opacity var(--d-slow) var(--ease-out-expo), transform var(--d-slow) var(--ease-out-expo);
  pointer-events: none;
}
.testimonial.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testimonial p { color: var(--text); font-size: 18px; line-height: 1.5; font-weight: 500; }
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  color: var(--navy-950); font-weight: 700; font-size: 14px;
}
.testimonial__author strong { display: block; font-size: 14px; }
.testimonial__author span { font-size: 12.5px; color: var(--text-muted); }
.testimonials__dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonials__dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; padding: 0;
  transition: background var(--d-fast), width var(--d-base);
}
.testimonials__dots .dot.is-active { width: 28px; background: var(--emerald-400); border-radius: 5px; }

/* ============================================================================
   CONTACT
   ============================================================================ */
.contact {
  padding: 100px 0;
  background:
    radial-gradient(80% 80% at 30% 0%, rgba(16,185,129,.12), transparent 60%),
    rgba(2,6,23,.4);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.contact__badges { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact__badges li { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; }
.contact__badges .dot--ok { width: 18px; height: 18px; border-radius: 50%; background: rgba(16,185,129,.18); border: 1px solid rgba(16,185,129,.4); display: grid; place-items: center; }
.contact__badges .dot--ok::after { content: "✓"; color: var(--emerald-300); font-size: 11px; font-weight: 700; }

.contact__form {
  display: grid; gap: 14px;
  padding: 36px;
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.field input {
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  color: var(--text); font-family: inherit; font-size: 14.5px;
  transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast);
}
.field input:focus {
  outline: none; border-color: var(--emerald-400);
  background: rgba(16,185,129,.05);
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}
.form__note { font-size: 12px; color: var(--text-dim); text-align: center; }
.form__msg { font-size: 13.5px; text-align: center; min-height: 20px; }
.form__msg.is-success { color: var(--emerald-300); }
.form__msg.is-error { color: var(--rose-400); }

@media (max-width: 880px) { .contact__inner { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(2,6,23,.4);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { height: 28px; width: auto; }
.footer__brand p { color: var(--text-muted); font-size: 14px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
.footer__social a:hover { background: rgba(16,185,129,.1); color: var(--emerald-300); border-color: rgba(16,185,129,.35); }
.footer__col h4 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer__col a {
  display: block; padding: 6px 0; color: var(--text-muted); font-size: 14px;
  transition: color var(--d-fast);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 18px;
}
.footer__bottom p { color: var(--text-dim); font-size: 12.5px; }
.footer__powered { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 12.5px; }
.footer__powered img { height: 18px; opacity: .8; }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

/* ============================================================================
   HERO responsive
   ============================================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .hero__visual { order: -1; }
  .hero__scroll { display: none; }
}
@media (max-width: 480px) {
  .floater--rag, .floater--reflection, .floater--latency { display: none; }
}
