/* ==========================================================================
   CAUXE — El cauce por donde fluye tu negocio
   ========================================================================== */

:root {
  --bg: #050914;
  --bg-2: #080f22;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 180, 255, 0.12);
  --border-strong: rgba(148, 180, 255, 0.24);
  --text: #eaf1ff;
  --muted: #93a3c4;
  --dim: #5f6f91;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --cyan: #22d3ee;
  --sky: #7dd3fc;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, #3b82f6 0%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #7dd3fc 0%, #22d3ee 30%, #60a5fa 60%, #7dd3fc 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 20px 60px -20px rgba(34, 211, 238, 0.45);
  --container: 1200px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Background texture ---------- */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--grad);
}

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 18px 0 18px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad); color: #03101f;
  box-shadow: 0 10px 40px -10px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(34, 211, 238, .9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, rgba(37,99,235,.25), rgba(34,211,238,.18));
  border-bottom: 1px solid var(--border);
  font-size: .86rem; text-align: center; padding: 9px 16px; color: #dbeafe;
}
.announce a { color: #fff; font-weight: 600; margin-left: 6px; border-bottom: 1px solid rgba(255,255,255,.4); }
.announce .pill {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--grad); color: #03101f; font-weight: 700; font-size: .72rem; letter-spacing: .04em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(5, 9, 20, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.04em; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04); cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav.open .menu-toggle span { background: transparent; }
.nav.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 40px); min-height: calc(100svh - 40px);
  display: flex; align-items: center; margin-top: -76px; padding: 150px 0 90px; overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.05);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(5,9,20,.55) 0%, transparent 60%),
    linear-gradient(90deg, rgba(5,9,20,.92) 0%, rgba(5,9,20,.55) 45%, rgba(5,9,20,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { max-width: 780px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
  font-size: .85rem; color: #cfe3ff;
}
.hero-tag .dot {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(52,211,153,.15); display: grid; place-items: center;
}
.hero-tag .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.8rem); line-height: 1.02; letter-spacing: -0.045em; margin: 26px 0 26px;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #b9c8e6; max-width: 640px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(14px);
}
.hero-stats > div { background: rgba(5,9,20,.6); padding: 22px 24px; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; }
.stat-label { color: var(--muted); font-size: .86rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.3);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px;
  background: var(--cyan); animation: cue 2s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee-item svg { width: 20px; height: 20px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ---------- Problem ---------- */
.problem { overflow: hidden; }
.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.chaos {
  position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto;
}
.chaos-core {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 34px;
  background: radial-gradient(circle at 30% 20%, #1e3a8a, #050914 70%);
  border: 1px solid rgba(34,211,238,.4); display: grid; place-items: center;
  box-shadow: 0 0 80px rgba(34,211,238,.35), inset 0 0 30px rgba(59,130,246,.3);
  z-index: 2;
}
.chaos-core span { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; }
.chaos-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(148,180,255,.18); }
.chaos-ring.r2 { inset: 0; border-style: solid; border-color: rgba(148,180,255,.08); }
.tool-chip {
  position: absolute; left: 50%; top: 50%; padding: 8px 14px; border-radius: 12px; font-size: .82rem; font-weight: 500;
  background: rgba(15, 23, 42, .85); border: 1px solid var(--border-strong); color: #cbd5e1; white-space: nowrap;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 1.4s var(--ease), opacity 1.4s var(--ease), color .6s, border-color .6s;
  box-shadow: var(--shadow);
}
.chaos.merged .tool-chip {
  transform: translate(-50%, -50%) translate(calc(var(--x) * .12), calc(var(--y) * .12)) scale(.4);
  opacity: 0;
}
.chaos.merged .chaos-core { animation: corePop 1.2s var(--ease) .9s both; }
@keyframes corePop { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 140px rgba(34,211,238,.7); } 100% { transform: scale(1); } }
.chaos-caption { text-align: center; margin-top: 12px; color: var(--muted); font-size: .9rem; font-family: var(--font-mono); }

.pain-list { display: grid; gap: 16px; margin-top: 34px; }
.pain {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.pain-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(248,113,113,.1); color: var(--red); }
.pain-icon svg { width: 22px; height: 22px; }
.pain h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pain p { color: var(--muted); font-size: .95rem; }

/* ---------- Products bento ---------- */
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(34,211,238,.12), transparent 40%);
}
.card:hover { border-color: rgba(34,211,238,.35); }
.card:hover::before { opacity: 1; }
.product { grid-column: span 2; display: flex; flex-direction: column; min-height: 390px; }
.product.wide { grid-column: span 3; }
.product-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(34,211,238,.12)); border: 1px solid rgba(34,211,238,.25);
  color: var(--sky);
}
.product-icon svg { width: 26px; height: 26px; }
.product-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.product-name small { font-weight: 400; color: var(--muted); }
.product-sub { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin: 6px 0 16px; }
.product p { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #cdd8ee; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(34,211,238,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.product .more { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--sky); font-weight: 600; font-size: .92rem; }
.product .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.product:hover .more svg { transform: translateX(4px); }

/* ---------- Wischat showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > *, .problem-grid > *, .roi > *, .contact-wrap > * { min-width: 0; }
.phone {
  position: relative; width: min(100%, 380px); margin-inline: auto; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1e293b, #0b1222); border: 1px solid rgba(148,180,255,.2);
  box-shadow: 0 60px 120px -40px rgba(34,211,238,.35), var(--shadow);
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #0b141a; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; background: #111d27; border-bottom: 1px solid rgba(255,255,255,.05); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #03101f; font-family: var(--font-display); }
.chat-title { font-weight: 600; font-size: .95rem; }
.chat-status { font-size: .76rem; color: var(--green); }
.chat-body { height: 400px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(34,211,238,.06), transparent 50%), #0b141a; }
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.45;
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.msg.show { opacity: 1; transform: none; }
.msg.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: linear-gradient(135deg, #12305a, #0e2a3b); border: 1px solid rgba(34,211,238,.25); border-top-left-radius: 4px; }
.msg .meta { display: block; font-size: .68rem; opacity: .6; margin-top: 4px; text-align: right; }
.msg .ai { display: inline-block; font-family: var(--font-mono); font-size: .64rem; padding: 1px 6px; border-radius: 6px; background: rgba(34,211,238,.18); color: var(--cyan); margin-bottom: 4px; }
.msg.file { display: flex; gap: 10px; align-items: center; }
.msg.file .pdf { width: 34px; height: 40px; border-radius: 6px; background: #ef4444; display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8aa; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.channels { position: absolute; inset: 0; pointer-events: none; }
.channel {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(8,15,34,.9); border: 1px solid var(--border-strong); font-size: .8rem; font-weight: 500;
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.channel i { width: 8px; height: 8px; border-radius: 50%; }
.ch1 { left: -40px; top: 14%; } .ch2 { right: -50px; top: 28%; animation-delay: -1.5s; }
.ch3 { left: -60px; bottom: 26%; animation-delay: -3s; } .ch4 { right: -34px; bottom: 12%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.metric { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.metric b { display: block; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.03em; }
.metric > span { color: var(--muted); font-size: .84rem; }
.feature-rows { display: grid; gap: 14px; margin-top: 30px; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; }
.feature-row .fi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(59,130,246,.12); color: var(--sky); }
.feature-row .fi svg { width: 18px; height: 18px; }
.feature-row b { display: block; font-size: .98rem; }
.feature-row span { color: var(--muted); font-size: .9rem; }

/* ---------- Dashboard (NeoCRM) ---------- */
.dash {
  border-radius: 22px; border: 1px solid var(--border-strong); overflow: hidden;
  background: linear-gradient(180deg, #0b1328, #070d1d);
  box-shadow: 0 60px 120px -50px rgba(59,130,246,.5), var(--shadow);
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.dash-bar i:nth-child(1) { background: #f87171; } .dash-bar i:nth-child(2) { background: #fbbf24; } .dash-bar i:nth-child(3) { background: #34d399; }
.dash-bar span { margin-left: 12px; font-family: var(--font-mono); font-size: .76rem; color: var(--dim); }
.dash-body { padding: 22px; display: grid; gap: 18px; }
.dash-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dash-title b { font-family: var(--font-display); font-size: 1.1rem; }
.dash-title span { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.kpi small { color: var(--muted); font-size: .76rem; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; margin: 2px 0; }
.kpi .up { color: var(--green); font-size: .76rem; font-weight: 600; }
.pipeline { display: grid; gap: 10px; }
.stage { display: grid; grid-template-columns: 92px 1fr 118px; align-items: center; gap: 12px; font-size: .82rem; }
.stage-name { color: #cbd5e1; }
.stage-track { height: 12px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.stage-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width 1.6s var(--ease); }
.dash.in .stage-fill { width: var(--w); }
.stage-val { text-align: right; color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }
.chart { width: 100%; height: 120px; }
.chart path.line { stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.dash.in .chart path.line { stroke-dashoffset: 0; }
.chart path.area { opacity: 0; transition: opacity 1.5s ease 1.2s; }
.dash.in .chart path.area { opacity: 1; }

/* ---------- Finance modules ---------- */
.finance { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { padding: 24px; }
.module .mi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.1); color: var(--cyan); margin-bottom: 18px; }
.module .mi svg { width: 20px; height: 20px; }
.module h3 { font-size: 1.05rem; margin-bottom: 8px; }
.module p { color: var(--muted); font-size: .88rem; }
.badge-sri {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 14px; border-radius: 999px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7f3d0; font-size: .85rem; font-weight: 500;
}
.badge-sri::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- ROI ---------- */
.roi { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--border-strong); }
.roi-controls { padding: clamp(28px, 4vw, 50px); background: var(--surface); display: grid; gap: 30px; align-content: start; }
.range-group label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 500; }
.range-group output { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)) 0/var(--p, 50%) 100% no-repeat, rgba(255,255,255,.08);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(34,211,238,.25), 0 6px 18px rgba(0,0,0,.4); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(34,211,238,.25), 0 6px 18px rgba(0,0,0,.4); cursor: grab;
}
.roi-result {
  position: relative; padding: clamp(28px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 80% 0%, rgba(34,211,238,.25), transparent 55%), linear-gradient(160deg, #0f2a5c, #071229);
}
.roi-result small { color: #a5c4f2; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.roi-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin: 16px 0 6px; }
.roi-breakdown { display: grid; gap: 10px; margin: 28px 0; padding: 20px 0; border-block: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.roi-breakdown div { display: flex; justify-content: space-between; gap: 10px; color: #c4d6f5; }
.roi-breakdown b { color: #fff; font-family: var(--font-mono); font-weight: 500; }
.roi-note { color: #8ba3c9; font-size: .78rem; margin-top: 18px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--border); isolation: isolate;
}
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,9,20,.05) 0%, rgba(5,9,20,.55) 45%, rgba(5,9,20,.96) 100%); }
.industry:hover img { transform: scale(1.07); }
.industry-body { padding: 26px; }
.industry-case {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(34,211,238,.16); border: 1px solid rgba(34,211,238,.35); color: #cffafe; backdrop-filter: blur(8px);
  margin-bottom: 14px;
}
.industry h3 { font-size: 1.5rem; margin-bottom: 10px; }
.industry ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s var(--ease), opacity .6s; }
.industry:hover ul, .industry:focus-within ul { max-height: 220px; opacity: 1; }
.industry li { font-size: .88rem; color: #cbd5e1; padding-left: 16px; position: relative; }
.industry li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- Comparison ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: #cbd5e1; }
.compare thead th { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: .9rem; background: rgba(255,255,255,.02); }
.compare .us { background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(34,211,238,.06)); color: #fff; }
.compare thead .us { color: #fff; font-size: 1.05rem; }
.compare tbody tr:last-child td { border-bottom: 0; font-weight: 700; font-family: var(--font-display); }
.yes { color: var(--cyan); font-weight: 700; }
.no { color: var(--dim); }
.partial { color: var(--amber); font-size: .85rem; }

/* ---------- Developers ---------- */
.dev-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.code {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); background: #060b18;
  box-shadow: 0 50px 100px -40px rgba(34,211,238,.35);
  font-family: var(--font-mono); font-size: .82rem;
}
.code-tabs { display: flex; gap: 4px; padding: 10px 12px 0; background: #0a1224; border-bottom: 1px solid var(--border); overflow-x: auto; }
.code-tab { padding: 9px 14px; border-radius: 10px 10px 0 0; color: var(--dim); border: 0; background: none; cursor: pointer; font-family: var(--font-mono); font-size: .8rem; }
.code-tab[aria-selected="true"] { background: #060b18; color: #e2e8f0; box-shadow: inset 0 2px 0 var(--cyan); }
.code pre { margin: 0; padding: 22px; overflow-x: auto; line-height: 1.7; min-height: 420px; white-space: pre; }
.tk-k { color: #c084fc; } .tk-s { color: #86efac; } .tk-n { color: #fbbf24; } .tk-c { color: #5f6f91; } .tk-p { color: #7dd3fc; } .tk-u { color: #f9a8d4; }
.endpoints { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-family: var(--font-mono); font-size: .82rem; }
.endpoints li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.endpoints .m { flex: none; width: 48px; text-align: center; font-weight: 700; font-size: .7rem; padding: 3px 0; border-radius: 6px; }
.m.post { background: rgba(52,211,153,.15); color: var(--green); }
.m.get { background: rgba(59,130,246,.18); color: #93c5fd; }
.m.put { background: rgba(251,191,36,.15); color: var(--amber); }
.endpoints span:last-child { color: var(--muted); font-family: var(--font-body); margin-left: auto; font-size: .82rem; }
.dev-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px; }
.plan.popular { border-color: rgba(34,211,238,.5); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(8,15,34,.6)); }
.plan-tag { position: absolute; top: 20px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #03101f; font-size: .74rem; font-weight: 700; }
.plan h3 { font-size: 1.3rem; }
.plan .desc { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 4px; }
.price b { font-family: var(--font-display); font-size: 3.2rem; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--muted); }
.billing { color: var(--dim); font-size: .82rem; }
.plan .checklist { margin: 26px 0 30px; }
.plan .btn { margin-top: auto; }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.trust-item b { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: .84rem; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .72rem; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); } .status.wip { color: var(--amber); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { display: flex; flex-direction: column; padding: 32px; }
.stars { color: var(--amber); letter-spacing: 3px; font-size: .95rem; }
.quote blockquote { margin: 18px 0 24px; font-size: 1.06rem; line-height: 1.6; color: #e2e8f0; }
.quote-metric { margin-top: auto; padding: 14px 16px; border-radius: 12px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.2); color: #a5f3fc; font-weight: 600; font-size: .92rem; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-author .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: linear-gradient(135deg, #1e40af, #0e7490); }
.quote-author b { display: block; font-size: .95rem; }
.quote-author span { color: var(--muted); font-size: .84rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.member { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 32px; align-items: start; }
.member .av { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--grad); color: #03101f; }
.member h3 { font-size: 1.35rem; }
.member .role { color: var(--cyan); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 14px; }
.member p { color: var(--muted); font-size: .94rem; }
.member a.mail { display: inline-flex; margin-top: 16px; color: var(--sky); font-weight: 500; font-size: .92rem; }

/* ---------- CTA / Contact ---------- */
.contact-wrap {
  position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: 1fr 1.15fr; isolation: isolate;
}
.contact-info { position: relative; padding: clamp(30px, 5vw, 60px); overflow: hidden; }
.contact-info::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/hero.webp") center/cover; opacity: .55; }
.contact-info::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(5,9,20,.7), rgba(5,9,20,.95)); }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 18px 0; }
.contact-info > p { color: #b9c8e6; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--cyan); }
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a:hover { color: var(--cyan); }
.sys-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; padding: 8px 14px; border-radius: 999px; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); font-family: var(--font-mono); font-size: .74rem; color: #a7f3d0; letter-spacing: .06em; }
.sys-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

.form { padding: clamp(30px, 5vw, 60px); background: rgba(8, 15, 34, .85); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; color: #cbd5e1; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background: rgba(255,255,255,.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a3c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; }
.field select option { background: #0b1328; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); background: rgba(255,255,255,.05); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 220px; }
.form-msg { grid-column: 1 / -1; font-size: .9rem; color: var(--green); min-height: 1.4em; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px; border-radius: 26px; flex-wrap: wrap; }
.newsletter h3 { font-size: 1.5rem; }
.newsletter p { color: var(--muted); max-width: 520px; margin-top: 8px; font-size: .95rem; }
.news-form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 480px; }
.news-form input { flex: 1; min-width: 0; padding: 0 18px; height: 50px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); }
.news-form input:focus { outline: 0; border-color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); margin-top: 60px; background: linear-gradient(180deg, transparent, #03060e); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); margin: 18px 0; max-width: 300px; font-size: .92rem; }
.footer h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #cbd5e1; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--dim); font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.big-word {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.07em; line-height: .8;
  font-size: clamp(6rem, 26vw, 22rem); text-align: center; margin-top: 50px; user-select: none;
  background: linear-gradient(180deg, rgba(59,130,246,.35), rgba(5,9,20,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 14px 40px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Progress bar ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 90; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: grid; position: absolute; left: 16px; right: 16px; top: 76px; padding: 12px;
    background: rgba(8,15,34,.97); border: 1px solid var(--border-strong); border-radius: 18px; backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product, .product.wide { grid-column: span 1; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .problem-grid, .split, .roi, .contact-wrap { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .problem-grid > :first-child { order: 2; }
  .split { gap: 50px; }
  .industries, .testimonials, .pricing { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .industry ul { max-height: 220px; opacity: 1; }
  .channel { display: none; }
}

@media (max-width: 640px) {
  .announce { font-size: .78rem; }
  .announce .hide-sm { display: none; }
  .nav-cta .btn-primary { display: none; }
  .hero { padding-top: 130px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .products-grid, .industries, .modules, .trust { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .metrics { grid-template-columns: 1fr; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 1.15rem; }
  .stage { grid-template-columns: 74px 1fr; }
  .stage-val { grid-column: 2; text-align: left; margin-top: -6px; }
  .form { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-form { flex-direction: column; }
  .news-form input { height: 50px; }
  .dev-stats { grid-template-columns: 1fr 1fr; }
  .code pre { min-height: 0; font-size: .74rem; }
  .endpoints span:last-child { display: none; }
}

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