/* ============================================================
   TRAZO LAB V3 — Premium AI agency site
   Inspired by Stripe / Linear / Vercel / Apple / Raycast
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* base palette */
  --bg: #05060a;
  --bg-1: #0a0c12;
  --bg-2: #0e1118;
  --surface: #11141c;
  --surface-2: #161a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.04);

  /* text */
  --fg: #f7f8fb;
  --fg-2: #c8ccd6;
  --fg-3: #8a90a0;
  --fg-4: #5d6373;

  /* brand */
  --brand: #22c55e;
  --brand-1: #4ade80;
  --brand-2: #16a34a;
  --brand-glow: rgba(34, 197, 94, 0.35);

  /* accents */
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a855f7;
  --pink: #ec4899;
  --amber: #f59e0b;

  /* gradients */
  --grad-brand: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px var(--brand-glow);

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* layout */
  --container: 1240px;
  --nav-h: 72px;
  --ann-h: 38px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--brand); color: #021;}

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ---------- Ambient layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.85), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.85), transparent 70%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.bg-aurora {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: aurora-drift 22s linear infinite;
}
.aurora.a1 {
  top: -10%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.55), transparent 60%);
}
.aurora.a2 {
  top: 20%; right: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 60%);
  animation-delay: -7s;
}
.aurora.a3 {
  bottom: -20%; left: 30%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 60%);
  animation-delay: -14s;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, -4%) scale(1.05); }
  66% { transform: translate(-6%, 6%) scale(0.95); }
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: transform 0.05s linear, width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.18s var(--ease-out), width 0.25s, height 0.25s, border-color 0.2s;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--brand); }
.cursor-dot.hover { width: 0; height: 0; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  z-index: 1000;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--brand-glow);
}

/* ---------- Announcement bar ---------- */
.announcement {
  position: relative;
  z-index: 50;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), rgba(34, 211, 238, 0.08));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  height: var(--ann-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  color: var(--fg-2);
}
.announcement .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2s infinite;
}
.announcement-cta {
  color: var(--brand-1);
  font-weight: 500;
  transition: opacity 0.2s;
}
.announcement-cta:hover { opacity: 0.7; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (max-width: 640px) {
  .announcement { font-size: 11px; }
  .announcement .text { max-width: 200px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 6, 10, 0.65);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) {
  .nav-inner { padding: 0 40px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  transition: opacity 0.2s, transform 0.4s var(--ease-spring);
}
.brand:hover { opacity: 0.92; }
.brand:hover .brand-logo { transform: translateY(-1px); }
.brand-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.2));
  transition: transform 0.4s var(--ease-spring), filter 0.4s;
  flex-shrink: 0;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.3));
}
.brand-logo-lg { height: 64px; }
.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-weight: 500;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .brand-tag { display: none; }
  .brand-logo { height: 38px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 32px; }
}

.nav-links {
  display: none;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 450;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .nav-cta { display: flex; }
}

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-burger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
@media (min-width: 1024px) { .nav-burger { display: none; } }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding-top: calc(var(--nav-h) + var(--ann-h));
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.drawer-inner a {
  font-size: 24px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.drawer-inner .btn { margin-top: 24px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  will-change: transform;
}
.btn-arrow {
  display: inline-flex;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-play svg, .btn-wa svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--grad-brand);
  color: #021410;
  font-weight: 600;
  box-shadow:
    0 8px 28px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6ee7a0 0%, #67e8f9 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 36px rgba(34, 197, 94, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--fg-2);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; padding: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.hero-orb.o1 {
  top: 10%; left: 10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%);
  animation: orb-float 12s ease-in-out infinite;
}
.hero-orb.o2 {
  top: 30%; right: 5%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  animation: orb-float 14s ease-in-out infinite 2s;
}
.hero-orb.o3 {
  bottom: 0; left: 40%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
  animation: orb-float 16s ease-in-out infinite 4s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}
.hero-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: 0.5;
}
.hero-lines span {
  border-right: 1px solid var(--line-soft);
}
.hero-lines span:last-child { border: 0; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 96px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 8px var(--brand-glow);
}

.hero-title {
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 1000px;
}
.hero-title .line {
  display: block;
}
.hero-title .line-accent {
  background: linear-gradient(180deg, #f7f8fb 0%, #67e8f9 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--fg-2);
  max-width: 680px;
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero-sub b { color: var(--fg); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-3);
  font-size: 14px;
}
.hero-trust b { color: var(--fg); font-weight: 600; }
.trust-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--amber);
  font-size: 14px;
}
@media (max-width: 640px) {
  .hero-trust { flex-direction: column; gap: 6px; }
}

/* hero features row */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 920px;
  margin-top: 48px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
}
.hf {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px;
  border-radius: var(--r-md);
  transition: background 0.3s;
}
.hf:hover { background: rgba(255, 255, 255, 0.03); }
.hf-ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  color: var(--brand-1);
  flex-shrink: 0;
}
.hf-ic svg { width: 18px; height: 18px; }
.hf-text { display: flex; flex-direction: column; line-height: 1.25; }
.hf-text b { font-size: 13px; font-weight: 600; color: var(--fg); }
.hf-text span { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
@media (max-width: 768px) {
  .hero-features { grid-template-columns: 1fr 1fr; padding: 12px; }
}
@media (max-width: 480px) {
  .hero-features { grid-template-columns: 1fr; }
}

/* ---------- Hero showcase mock ---------- */
.hero-showcase {
  position: relative;
  margin-top: 80px;
  width: 100%;
  max-width: 1080px;
  perspective: 1800px;
}
.showcase-frame {
  background: linear-gradient(180deg, #0f1218 0%, #0a0c12 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(8deg) translateY(20px);
  transform-style: preserve-3d;
}
.showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.showcase-bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.showcase-bar .dot.r { background: #ff5f57; }
.showcase-bar .dot.y { background: #febc2e; }
.showcase-bar .dot.g { background: #28c840; }
.showcase-url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 6px;
}

.showcase-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}
.showcase-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.01);
}
.side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-3);
  cursor: default;
}
.side-row.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-1);
}
.side-ic {
  font-size: 8px;
  color: var(--fg-4);
}
.side-row.active .side-ic { color: var(--brand-1); }

.showcase-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.metric-label {
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.metric-value small { font-size: 14px; color: var(--fg-3); font-weight: 400; }
.metric-trend {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}
.metric-trend.up { color: var(--brand-1); }
.metric-trend.down { color: var(--cyan); }
.metric-spark {
  position: absolute;
  right: 0; bottom: 0;
  width: 70px; height: 24px;
  opacity: 0.6;
}
.metric-spark svg { width: 100%; height: 100%; }

.agent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r-md);
}
.agent-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2s infinite;
}
.agent-info { flex: 1; }
.agent-name { font-size: 13px; font-weight: 500; }
.agent-sub { font-size: 11px; color: var(--fg-3); margin-top: 1px; }
.agent-status {
  font-size: 11px;
  color: var(--brand-1);
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--r-pill);
}

.bars-row {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 80px;
}
.bars-row .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
  border-radius: 4px 4px 0 0;
  height: var(--h);
  opacity: 0.8;
  transition: opacity 0.3s;
  animation: bar-rise 1.2s var(--ease-out) backwards;
}
.bars-row .bar:nth-child(odd) {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}
.bars-row .bar:nth-child(1) { animation-delay: 0.1s; }
.bars-row .bar:nth-child(2) { animation-delay: 0.15s; }
.bars-row .bar:nth-child(3) { animation-delay: 0.2s; }
.bars-row .bar:nth-child(4) { animation-delay: 0.25s; }
.bars-row .bar:nth-child(5) { animation-delay: 0.3s; }
.bars-row .bar:nth-child(6) { animation-delay: 0.35s; }
.bars-row .bar:nth-child(7) { animation-delay: 0.4s; }
.bars-row .bar:nth-child(8) { animation-delay: 0.45s; }
.bars-row .bar:nth-child(9) { animation-delay: 0.5s; }
.bars-row .bar:nth-child(10) { animation-delay: 0.55s; }
@keyframes bar-rise {
  from { height: 0; opacity: 0; }
  to { height: var(--h); opacity: 0.8; }
}

@media (max-width: 768px) {
  .showcase-body { grid-template-columns: 1fr; min-height: auto; }
  .showcase-side { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid .metric-card:last-child { grid-column: span 2; }
}

/* floating cards */
.float-chat, .float-stat {
  position: absolute;
  background: rgba(15, 18, 26, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.float-chat {
  top: 50%;
  left: -30px;
  width: 240px;
  transform: translateY(-50%);
  animation: float-cards 8s ease-in-out infinite;
}
.float-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #021;
  font-size: 13px;
}
.float-name { font-size: 13px; font-weight: 500; }
.float-status {
  font-size: 10px; color: var(--fg-3);
  display: flex; align-items: center; gap: 4px;
}
.float-status .pulse {
  width: 5px; height: 5px;
  background: var(--brand-1); border-radius: 50%;
}
.float-bubble {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
  line-height: 1.4;
  max-width: 85%;
}
.float-bubble.bot {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}
.float-bubble.user {
  background: var(--grad-brand);
  color: #021;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.float-bubble.typing {
  display: flex; gap: 3px; padding: 10px 12px;
}
.float-bubble.typing span {
  width: 6px; height: 6px;
  background: var(--fg-3);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.float-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.float-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.float-stat {
  top: 20%;
  right: -20px;
  width: 200px;
  animation: float-cards 8s ease-in-out infinite 1s;
}
.float-stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.float-icon {
  width: 28px; height: 28px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.float-label { font-size: 12px; color: var(--fg-3); }
.float-stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.float-stat-sub {
  font-size: 11px; color: var(--fg-3); margin-top: 2px;
}
@keyframes float-cards {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 12px)) translateX(4px); }
}
.float-stat { animation-name: float-cards-2; }
@keyframes float-cards-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1024px) {
  .float-chat, .float-stat { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee-x 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */
section { position: relative; z-index: 3; }
.disciplinas, .stats, .servicios, .proceso, .resultados, .tech, .faq, .cta-final {
  padding: 120px 0;
}
@media (max-width: 768px) {
  .disciplinas, .stats, .servicios, .proceso, .resultados, .tech, .faq, .cta-final {
    padding: 80px 0;
  }
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head.compact { margin-bottom: 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--r-pill);
  color: var(--brand-1);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 5px; height: 5px;
  background: var(--brand-1);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-glow);
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 20px;
}
.section-title.sm { font-size: clamp(28px, 4vw, 42px); }
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-2);
}
.section-lead {
  font-size: 17px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 197, 94, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pillar:hover::before { opacity: 1; }
.pillar:hover .pillar-glow { opacity: 1; }
.pillar-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-1), transparent);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.pillar-featured {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), rgba(34, 211, 238, 0.02));
  border-color: rgba(34, 197, 94, 0.2);
}
.pillar-featured .pillar-glow { opacity: 1; }
.pillar-featured .pillar-icon { color: var(--brand-1); }
.pillar-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-1);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.pillar-icon {
  width: 56px;
  margin-bottom: 24px;
  color: var(--fg);
  opacity: 0.9;
}
.pillar-icon svg { width: 100%; height: auto; }
.pillar-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pillar-desc {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 0 0 24px;
}
.pillar-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px; height: 1px;
  background: var(--brand-1);
}

/* ---------- Stats ---------- */
.stats { padding: 80px 0 !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat { text-align: center; }
.stat-value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* ---------- Bento (servicios) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(280px, auto);
}
.bento-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(34, 197, 94, 0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.bento-card:hover { transform: translateY(-3px); }
.bento-card:hover::after { opacity: 1; }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .span-2, .span-3 { grid-column: span 1; }
  .bento-card { min-height: auto; }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-ic {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--brand-1);
}
.card-ic svg { width: 22px; height: 22px; }
.card-tag {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-1);
}
.tag-new {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--violet);
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card-desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0 0 16px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 16px;
}
.card-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg-2);
  font-family: var(--font-mono);
}
.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-price {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 500;
  font-family: var(--font-mono);
}
.card-link {
  font-size: 13px;
  color: var(--brand-1);
  font-weight: 500;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.7; }

/* chat preview inside service card */
.card-preview {
  margin: 12px 0 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-preview .msg {
  display: flex;
  font-size: 12px;
  line-height: 1.4;
}
.chat-preview .msg span {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}
.chat-preview .msg.bot span {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}
.chat-preview .msg.user {
  justify-content: flex-end;
}
.chat-preview .msg.user span {
  background: var(--grad-brand);
  color: #021;
  border-bottom-right-radius: 4px;
}

/* web preview — animated website mock */
.web-preview {
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}
.web-mock {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.web-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.web-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.web-dot.r { background: #ff5f57; }
.web-dot.y { background: #febc2e; }
.web-dot.g { background: #28c840; }
.web-url {
  margin-left: 8px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 4px;
}
.web-mock-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.04), transparent);
}
.web-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.web-logo {
  width: 36px; height: 10px;
  background: var(--grad-brand);
  border-radius: 3px;
  animation: shimmer 3s ease-in-out infinite;
}
.web-link {
  width: 28px; height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.web-cta {
  margin-left: auto;
  width: 50px; height: 18px;
  background: var(--grad-brand);
  border-radius: 9px;
  box-shadow: 0 0 12px var(--brand-glow);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
.web-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.web-h1 {
  width: 100%; height: 12px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
  border-radius: 3px;
  animation: type-in 2.5s ease-out infinite;
  transform-origin: left;
}
.web-h1.short { width: 60%; animation-delay: 0.4s; }
.web-p {
  width: 100%; height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 4px;
}
.web-p.short { width: 70%; }
.web-btns {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.web-btn {
  height: 16px;
  border-radius: 8px;
}
.web-btn.primary {
  width: 70px;
  background: var(--grad-brand);
  box-shadow: 0 0 10px var(--brand-glow);
}
.web-btn.ghost {
  width: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}
.web-card {
  height: 36px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 211, 238, 0.06));
  border: 1px solid var(--line);
  border-radius: 6px;
  animation: card-rise 2s ease-out backwards;
}
.web-grid .web-card:nth-child(1) { animation-delay: 0.2s; }
.web-grid .web-card:nth-child(2) { animation-delay: 0.4s; }
.web-grid .web-card:nth-child(3) { animation-delay: 0.6s; }
.web-cursor {
  position: absolute;
  bottom: 38px;
  left: 30%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 255, 255, 0.6);
  animation: cursor-move 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 24px var(--brand-glow); }
}
@keyframes type-in {
  0% { transform: scaleX(0); }
  60%, 100% { transform: scaleX(1); }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cursor-move {
  0%   { left: 20%; bottom: 28px; }
  25%  { left: 70%; bottom: 60px; }
  50%  { left: 55%; bottom: 90px; transform: scale(0.85); }
  75%  { left: 30%; bottom: 65px; }
  100% { left: 20%; bottom: 28px; }
}

/* voice preview */
.voice-preview {
  min-height: 130px;
  justify-content: space-between;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 60px;
  justify-content: center;
}
.wave span {
  width: 3px;
  background: linear-gradient(180deg, var(--brand-1), var(--cyan));
  border-radius: 2px;
  animation: wave-bounce 1.6s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.08s);
}
@keyframes wave-bounce {
  0%, 100% { height: 8px; }
  50% { height: 50px; }
}
.voice-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

/* integrations row */
.integrations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.integ-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.integ-pill {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.integ-pill:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--brand-1);
  transform: translateY(-2px);
}

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), var(--violet), transparent);
  opacity: 0.4;
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.step {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.step:nth-child(1) .step-num { color: var(--brand-1); border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 0 24px rgba(34, 197, 94, 0.3); }
.step:nth-child(2) .step-num { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 24px rgba(34, 211, 238, 0.3); }
.step:nth-child(3) .step-num { color: var(--violet); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 24px rgba(168, 85, 247, 0.3); }
.step-time {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  margin-bottom: 8px;
}
.step-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 0 0 20px;
}
.step-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--fg-2);
}
.step-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-1);
  font-weight: 600;
}

/* ---------- Resultados ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .cases { grid-template-columns: 1fr; } }
.case {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.case::before {
  content: """;
  position: absolute;
  top: -20px; right: 20px;
  font-family: var(--font-serif);
  font-size: 140px;
  color: rgba(34, 197, 94, 0.08);
  line-height: 1;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.case-tag {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-3);
}
.case-quote {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  font-family: var(--font-serif);
}
.case-quote em { font-style: italic; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-stats b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-1);
}
.case-stats span {
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.case-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.case-name { font-size: 14px; font-weight: 500; }
.case-role { font-size: 12px; color: var(--fg-3); margin-top: 1px; }

/* ---------- Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech-cell {
  padding: 32px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.tech-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tech-cell:hover { color: var(--brand-1); background: rgba(255, 255, 255, 0.03); }
.tech-cell:hover::before { opacity: 1; }
.tech-cell span { position: relative; }

/* ---------- FAQ ---------- */
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .faq-container { grid-template-columns: 1fr; gap: 40px; }
}
.faq-aside {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.faq-aside .section-title { text-align: left; margin-bottom: 16px; }
.faq-aside .section-lead { text-align: left; margin-bottom: 24px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(34, 197, 94, 0.3); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.02); }
.faq-ic {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 18px;
  color: var(--fg-2);
  transition: transform 0.3s, background 0.3s;
}
.faq-item[open] .faq-ic {
  transform: rotate(45deg);
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--brand-1);
}
.faq-body {
  padding: 0 24px 20px;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Booking ---------- */
.booking { padding: 120px 0 !important; }
.booking-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.booking-head .section-title { margin-bottom: 16px; }
.booking-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) {
  .booking-grid { grid-template-columns: 1fr; }
}

.booking-form-wrap {
  position: relative;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.booking-form-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), transparent 40%, rgba(34, 211, 238, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.booking-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field > span {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  font: 400 14px var(--font-sans);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.form-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-sans);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238a90a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-size: 12px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}
.form-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--r-md);
  color: var(--brand-1);
  font-size: 14px;
  font-weight: 500;
}
.form-ok svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { justify-content: center; }
}

.booking-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(34, 211, 238, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.aside-orb {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.aside-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--brand-1);
  position: relative;
  z-index: 1;
}
.aside-tag .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2s infinite;
}
.aside-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  position: relative;
  z-index: 1;
}
.aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.aside-list li {
  display: flex;
  gap: 14px;
}
.aside-list li > div { display: flex; flex-direction: column; line-height: 1.4; gap: 2px; }
.aside-list li b { font-size: 14px; font-weight: 600; color: var(--fg); }
.aside-list li span { font-size: 12px; color: var(--fg-3); }
.aside-num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-1);
  flex-shrink: 0;
}
.aside-foot { position: relative; z-index: 1; }
.aside-foot .btn { justify-content: center; }

.aside-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.aside-stats > div {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.aside-stats > div:last-child { border-right: 0; }
.aside-stats b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.aside-stats span {
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* ---------- CTA final ---------- */
.cta-final { padding: 80px 0 120px !important; }
.cta-card {
  position: relative;
  padding: 80px 40px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(168, 85, 247, 0.04));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 60%);
  filter: blur(80px);
  animation: orb-float 12s ease-in-out infinite;
}
.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content .eyebrow { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--fg-2); }
.cta-content .eyebrow-dot { background: var(--brand-1); }
.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-sub {
  font-size: 17px;
  color: var(--fg-3);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.cta-meta {
  font-size: 13px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}
@media (max-width: 640px) { .cta-card { padding: 56px 24px; } }

/* ---------- Big marquee ---------- */
.big-marquee {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.big-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marquee-x 40s linear infinite;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}
.big-track .dotmark {
  color: var(--brand-1);
  -webkit-text-stroke: 0;
  font-size: 0.5em;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg), #02030680);
  border-top: 1px solid var(--line);
  padding: 80px 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 16px 0 24px;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.footer-social a:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--brand-1);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--fg-2);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-1); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--fg-4);
}
.footer-mono { font-family: var(--font-mono); }
.footer-bigword {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  line-height: 0.85;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.6;
}
@media (max-width: 640px) {
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 26px; height: 26px; }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Magnetic ---------- */
.magnetic {
  display: inline-flex;
  will-change: transform;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 768px) {
  .hero { padding-top: 40px; }
  .hero-grid { padding-top: 40px; padding-bottom: 64px; }
  .hero-showcase { margin-top: 48px; }
  .showcase-frame { transform: none; }
  .section-head { margin-bottom: 48px; }
}

/* respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
