/* ---------- Whink — base styles ---------- */
:root {
  --green: #25d366;
  --green-soft: #25d36622;
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --fg: #ffffff;
  --fg-dim: #a3a3a3;
  --fg-muted: #6b6b6b;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card: rgba(20, 20, 20, 0.5);
  --card-alt: rgba(24, 24, 24, 0.55);
  --grid-line: rgba(255, 255, 255, 0.04);
  --inner-stroke: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --grad: linear-gradient(90deg, #ffffff 0%, #25d366 100%);
  --glow: rgba(37, 211, 102, 0.12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pad: clamp(20px, 5vw, 48px);
  --maxw: 1280px;
  --t: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --fg: #0a0a0a;
  --fg-dim: #4b4b4b;
  --fg-muted: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --card: rgba(255, 255, 255, 0.6);
  --card-alt: rgba(250, 250, 250, 0.7);
  --grid-line: rgba(0, 0, 0, 0.05);
  --inner-stroke: inset 0 0 0 1px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --grad: linear-gradient(90deg, #0a0a0a 0%, #25d366 100%);
  --glow: rgba(37, 211, 102, 0.10);
  --shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.18);
}

/* ---------- Brand logo slots ----------
   Each official SVG lives at assets/brands/<slug>.svg and renders inside
   an <img class="brand-logo logo-<slug>">. Uniform sizing here; per-logo
   tweaks (e.g. invert for transparent-bg + colored-path logos) go below.
*/
.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .brand-logo { width: 28px; height: 28px; }
}

/* Apply filter: brightness(0) invert(1) ONLY to logos that are a single
   color on a transparent background (so the invert produces a clean white
   silhouette). Multi-color or gradient logos with their own brand colors
   should NOT be inverted — leave them off this list.

   Add or remove tool slugs below as you load real SVGs. */
.logo-webhooks,
.logo-meta,
.logo-tiktok,
.logo-web,
.logo-whatsapp,
.logo-shopify,
.logo-instagram,
.logo-mailchimp,
.logo-gmail,
.logo-email,
.logo-drive,
.logo-gcal,
.logo-mercadolibre,
.logo-claude,
.logo-chatgpt,
.logo-excel {
  filter: brightness(0) invert(1);
  opacity: 0.62;
}
[data-theme="light"] .logo-webhooks,
[data-theme="light"] .logo-meta,
[data-theme="light"] .logo-tiktok,
[data-theme="light"] .logo-web,
[data-theme="light"] .logo-whatsapp,
[data-theme="light"] .logo-shopify,
[data-theme="light"] .logo-instagram,
[data-theme="light"] .logo-mailchimp,
[data-theme="light"] .logo-gmail,
[data-theme="light"] .logo-email,
[data-theme="light"] .logo-drive,
[data-theme="light"] .logo-gcal,
[data-theme="light"] .logo-mercadolibre,
[data-theme="light"] .logo-claude,
[data-theme="light"] .logo-chatgpt,
[data-theme="light"] .logo-excel {
  filter: brightness(0);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
  transition: background var(--t), color var(--t);
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: 'liga' 0;
}

/* Hide native cursor when custom cursor active (desktop only) */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor-ring,
  body.has-cursor-ring * { cursor: none; }
  body.has-cursor-ring a,
  body.has-cursor-ring button,
  body.has-cursor-ring input,
  body.has-cursor-ring textarea,
  body.has-cursor-ring select,
  body.has-cursor-ring [role="button"] { cursor: none; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--green); color: #000; }

/* ---------- Layered backgrounds ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 1;
  transition: opacity var(--t);
}
.grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(37,211,102,0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(37,211,102,0.05), transparent 60%);
  pointer-events: none;
}
.grid-bg.hidden { opacity: 0; }

/* Custom cursor */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  margin-left: -14px; margin-top: -14px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 120ms ease-out, width 200ms, height 200ms, background 200ms;
  mix-blend-mode: difference;
}
.cursor-ring.is-hover {
  background: var(--green);
  width: 44px; height: 44px;
  margin-left: -22px; margin-top: -22px;
  border-color: transparent;
}
.cursor-spot {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  margin-left: -160px; margin-top: -160px;
  background: radial-gradient(circle, rgba(37,211,102,0.18) 0%, rgba(37,211,102,0) 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  transition: opacity var(--t);
  will-change: transform;
}
@media (max-width: 1024px) {
  .cursor-ring, .cursor-spot { display: none !important; }
}

/* ---------- Layout helpers ---------- */
.section {
  position: relative;
  width: 100%;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  z-index: 1;
  overflow-x: clip;
}
.section.alt { background: var(--bg-alt); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  background: radial-gradient(circle, rgba(37,211,102,0.18), rgba(37,211,102,0) 70%);
  z-index: 0;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--green);
}

h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.h-display {
  font-size: clamp(34px, 5.8vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.h-section {
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 300;
}
.h-card {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.muted { color: var(--fg-dim); }
.dim { color: var(--fg-muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-dim);
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #002b10;
  border-color: var(--green);
}
.btn-primary:hover {
  background: #1ec25c;
  border-color: #1ec25c;
  box-shadow: 0 10px 30px -10px rgba(37,211,102,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--green);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #002b10;
}
@media (max-width: 768px) {
  .btn-outline.mobile-fill {
    background: var(--green);
    color: #002b10;
  }
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--fg);
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15.5px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--inner-stroke);
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: rgba(37, 211, 102, 0.4);
  background: linear-gradient(180deg, rgba(37,211,102,0.05), transparent 80%), var(--card);
  box-shadow: 0 20px 60px -30px rgba(37,211,102,0.3), inset 0 0 0 1px rgba(37,211,102,0.18), inset 0 1px 0 rgba(37,211,102,0.2);
  transform: translateY(-2px);
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(14, 14, 14, 0.5);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--inner-stroke);
}
[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Mono labels ---------- */
.label-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---------- Chips (mono pill) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: -0.005em;
}
[data-theme="light"] .chip { background: rgba(0,0,0,0.03); }

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}
.reveal-fade {
  opacity: 0;
  transform: none;
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-fade { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,211,102,0.5); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: running; }

/* ---------- Pulses & flow ---------- */
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes flowDash {
  to { stroke-dashoffset: -28; }
}
@keyframes dataPulse {
  0%   { stroke-dashoffset: 6; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* ---------- Channel diagram (SVG) ---------- */
.ch-node {
  fill: var(--card);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.ch-node-label {
  font-size: 11px;
  fill: var(--fg-muted);
  font-weight: 500;
  text-anchor: middle;
}
.ch-line {
  stroke: var(--border-strong);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 4;
}
.ch-line-flow {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 220;
  animation: flow 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(37,211,102,0.7));
}
@keyframes flow { to { stroke-dashoffset: -226; } }
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes typing {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.input, .select, .textarea {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  outline: none;
}
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] .textarea {
  background: rgba(0,0,0,0.02);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-muted); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green);
  background: rgba(37,211,102,0.04);
}
.textarea { resize: vertical; min-height: 120px; }
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 110px 1fr; } }

/* ---------- Mobile breakpoints ---------- */
@media (max-width: 1024px) {
  body { font-size: 15px; }
}
@media (max-width: 768px) {
  .section { padding: clamp(56px, 14vw, 88px) 20px; }
}
@media (max-width: 480px) {
  .section { padding: 64px 18px; }
  body { font-size: 15px; }
}

/* Bare check (no circle background) used in pricing card bullets */
.check.check-bare {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  color: var(--green);
  margin-top: 4px;
}

/* Footer brand icons — sized proportional to footer text */
.footer .footer-brand {
  width: 14px !important;
  height: 14px !important;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
[data-theme="light"] .footer .footer-brand {
  filter: brightness(0);
  opacity: 0.7;
}
/* Meta retains its official colors */
.footer .meta-partner-logo {
  width: 14px !important;
  height: 14px !important;
  filter: none !important;
}

/* utility */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
