/* ────────────────────────────────────────────────────────────────
   DigiAPI.dev · landing styles
   ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-elev-2: #16161a;
  --surface: #1a1a1f;
  --border: #27272a;
  --border-bright: #3f3f46;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #10b981;
  --accent-2: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --accent-soft: rgba(16, 185, 129, 0.08);
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 40px -10px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 60px -10px var(--accent-glow);
  --container: 1200px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv01","cv02","cv03","ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0 0; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #06281c; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; position: relative; z-index: 1; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}
h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 660px; line-height: 1.6; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease, border-color .2s ease;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #052e1f;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 36px -8px var(--accent-glow);
}
.btn--ghost {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface); border-color: #52525b; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* Header */
.header {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10,10,11,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em;
}
.logo__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent) 0%, #059669 100%);
  display: grid; place-items: center;
  color: #052e1f; font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px -8px var(--accent-glow);
}
.logo__dev { color: var(--text-3); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 14px; color: var(--text-2);
  border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-elev); }
.header__actions { display: flex; align-items: center; gap: 12px; }

/* Lang switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  transition: border-color .15s ease, color .15s ease;
}
.lang__btn:hover { color: var(--text); border-color: var(--border-bright); }
.lang__btn svg { width: 12px; height: 12px; opacity: .6; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 4px;
  min-width: 180px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.lang.is-open .lang__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px; color: var(--text-2);
  border-radius: 6px;
  text-align: left;
}
.lang__item:hover { background: var(--surface); color: var(--text); }
.lang__item.is-active { color: var(--accent); }
.lang__item-flag { font-size: 15px; margin-right: 6px; }
.lang__item-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; }

.menu-toggle { display: none; padding: 8px; border-radius: 8px; }
.menu-toggle:hover { background: var(--bg-elev); }
.menu-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; left: 50%; top: -10%;
  width: 1000px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.badge--accent {
  background: var(--accent-soft);
  border-color: rgba(16,185,129,0.3);
  color: var(--accent-2);
}
.badge svg { width: 12px; height: 12px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .strike {
  position: relative; color: var(--text-3);
  font-style: italic;
}
.hero h1 .strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%;
  height: 3px; background: var(--danger); transform: rotate(-3deg);
  border-radius: 2px;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-size: 13px; color: var(--text-3);
  font-family: var(--font-mono);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

/* Hero code card */
.hero__visual {
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.code-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.code-card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}
.code-card__dots { display: flex; gap: 6px; }
.code-card__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-bright); }
.code-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
}
.code-card__title::before { content: "▸ "; color: var(--accent); }
.code-card__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
}
.code-card__body pre { margin: 0; white-space: pre; }
.tok-comment { color: #52525b; }
.tok-keyword { color: #f472b6; }
.tok-string  { color: var(--accent-2); }
.tok-method  { color: #fbbf24; }
.tok-prop    { color: #93c5fd; }
.tok-punct   { color: var(--text-3); }
.tok-number  { color: #fb923c; }

.hero__visual::before {
  content: "POST /api/messages/send";
  position: absolute;
  top: -16px; left: 24px;
  background: var(--accent);
  color: #052e1f;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 6px 20px -4px var(--accent-glow);
}

/* Trust bar */
.trust {
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.trust__inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 28px 0;
}
.trust__item { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.trust__item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.trust__item-text { line-height: 1.3; }
.trust__item-text strong { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.trust__item-text small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* How it works */
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.how__grid::before {
  content: "";
  position: absolute; left: 7%; right: 7%;
  top: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright) 20%, var(--border-bright) 80%, transparent);
  z-index: 0;
}
.how__step {
  position: relative; z-index: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.how__step:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.how__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.how__step h3 { font-size: 17px; margin-bottom: 8px; }
.how__step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Why (problem vs solution) */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why__col {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.why__col--bad { background: linear-gradient(180deg, rgba(239,68,68,0.04), var(--bg-elev)); }
.why__col--good {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-elev));
  border-color: rgba(16,185,129,0.25);
}
.why__col h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 22px; }
.why__col h3 svg { width: 22px; height: 22px; }
.why__col--bad h3 svg { color: var(--danger); }
.why__col--good h3 svg { color: var(--accent); }
.why__list { display: flex; flex-direction: column; gap: 14px; }
.why__list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15px; color: var(--text-2); line-height: 1.5;
}
.why__list li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-bright);
}
.why__col--bad .why__list li::before {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  background-image: linear-gradient(45deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%);
}
.why__col--good .why__list li::before {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052e1f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 5'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Compatibility section */
.compat { position: relative; background: radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 60%); }
.compat__hero {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  margin: 0 auto 56px;
  max-width: 720px;
}
.compat__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}
.compat__chip--from { color: var(--text-2); }
.compat__chip--to { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.compat__chip-icon { width: 22px; height: 22px; }
.compat__arrow {
  font-family: var(--font-mono); font-size: 24px; color: var(--text-3);
  display: inline-flex; align-items: center;
}
.compat__arrow::after {
  content: ""; display: inline-block;
  margin-left: 6px;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--text-3), var(--accent));
}
.compat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.compat__card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s ease;
}
.compat__card:hover { border-color: rgba(16,185,129,0.4); transform: translateY(-2px); }
.compat__card-icon {
  width: 38px; height: 38px;
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.compat__card-icon svg { width: 18px; height: 18px; }
.compat__card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.compat__card p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* Diff card */
.diff-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.diff-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.diff-card__body { padding: 18px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; overflow-x: auto; }
.diff-line { display: flex; gap: 14px; padding: 2px 6px; border-radius: 4px; white-space: pre; }
.diff-line--minus { background: rgba(239,68,68,0.08); color: #fca5a5; }
.diff-line--plus { background: rgba(16,185,129,0.1); color: var(--accent-2); }
.diff-line--ctx { color: var(--text-2); }
.diff-line__marker { color: var(--text-3); user-select: none; width: 12px; flex-shrink: 0; }
.diff-line--minus .diff-line__marker { color: var(--danger); }
.diff-line--plus .diff-line__marker { color: var(--accent); }

/* Audience */
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience__card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
}
.audience__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.audience__card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.audience__card:hover::before { opacity: 1; }
.audience__card-icon {
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.audience__card-icon svg { width: 22px; height: 22px; }
.audience__card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.audience__card p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* API section */
.api__layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.api__features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.api__feature {
  display: flex; gap: 14px; padding: 18px; border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.api__feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9px;
  display: grid; place-items: center;
}
.api__feature-icon svg { width: 17px; height: 17px; }
.api__feature h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.api__feature p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.api__code-wrap { position: sticky; top: 90px; }
.tabs {
  display: flex; gap: 2px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.tab { padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); border-radius: 6px; transition: all .15s ease; }
.tab:hover { color: var(--text-2); }
.tab.is-active { background: var(--bg); color: var(--accent); border: 1px solid var(--border); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* Comparison */
.compare {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__head, .compare__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare__head { background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border-bright); }
.compare__head > div, .compare__row > div { padding: 18px 22px; display: flex; align-items: center; font-size: 14px; }
.compare__head > div { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.compare__head > .compare__digigo {
  color: var(--accent);
  background: var(--accent-soft);
  position: relative;
}
.compare__head > .compare__digigo::after {
  content: "RECOMENDADO"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 9px; padding: 3px 7px; background: var(--accent); color: #052e1f; border-radius: 999px; letter-spacing: 0.1em;
}
.compare__row { border-bottom: 1px solid var(--border); }
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { color: var(--text-2); }
.compare__row .compare__label { color: var(--text); font-weight: 500; }
.compare__row .compare__digigo { background: rgba(16,185,129,0.04); }
.compare__row .compare__digigo .compare__value { color: var(--accent-2); font-weight: 500; }
.compare__check { color: var(--accent); width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }
.compare__cross { color: var(--danger); width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }

/* Pricing */
.pricing-tabs {
  display: inline-flex; gap: 4px;
  margin: 0 auto 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.pricing-tab {
  padding: 10px 22px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: all .15s ease;
}
.pricing-tab.is-active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}
.pricing-grid { display: grid; gap: 22px; }
.pricing-grid--hosted { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing-grid--self {
  grid-template-columns: repeat(3, 1fr);
}
.pricing-card__price-currency {
  font-size: 22px;
  color: var(--text-3);
  font-weight: 500;
  align-self: flex-start;
  margin-top: 10px;
}
.pricing-card__tag--alt { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }

/* Pro Dedicado · card horizontal ocupando linha inteira */
.pricing-card.pricing-card--wide {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 1.1fr 1.4fr 0.8fr !important;
  flex-direction: initial !important;
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, var(--bg-elev) 0%, rgba(16,185,129,0.04) 100%);
  border-color: var(--border-bright);
  padding: 32px 36px;
  position: relative;
}
.pricing-card.pricing-card--wide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: radial-gradient(circle at right, var(--accent-glow), transparent 60%);
  opacity: 0.4;
}
.pricing-card__wide-tag {
  position: absolute;
  top: -10px; left: 36px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}
.pricing-card__wide-info { position: relative; z-index: 1; }
.pricing-card__wide-info .pricing-card__desc { min-height: auto; margin-bottom: 18px; }
.pricing-card__wide-info .pricing-card__price-extra { margin-bottom: 0; }
.pricing-card__features--cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 11px 24px !important;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
}
.pricing-card__wide-cta { position: relative; z-index: 1; }
.pricing-card__wide-cta .btn { width: 100%; }

.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.pricing-card:hover { border-color: var(--border-bright); }
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-elev) 40%);
  box-shadow: var(--shadow-glow);
}
.pricing-card__tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #052e1f;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricing-card__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.pricing-card__desc { color: var(--text-2); font-size: 14px; margin-bottom: 22px; min-height: 42px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font-family: var(--font-display); letter-spacing: -0.03em; }
.pricing-card__price-amount { font-size: 44px; font-weight: 600; }
.pricing-card__price-period { font-size: 14px; color: var(--text-3); font-family: var(--font-body); }
.pricing-card__price-extra { font-size: 13px; color: var(--text-3); margin-bottom: 22px; font-family: var(--font-mono); }
.pricing-card__features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex-grow: 1; }
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--text-2); line-height: 1.5;
}
.pricing-card__features li::before { content: "✓"; color: var(--accent); font-weight: 600; margin-top: 1px; }
.pricing-card .btn { width: 100%; }
.pricing-note { margin-top: 32px; text-align: center; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }

/* Reseller */
.reseller {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.reseller::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.reseller__content { position: relative; z-index: 1; }
.reseller h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.reseller p { color: var(--text-2); margin-bottom: 26px; font-size: 16px; }
.reseller__bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 30px; }
.reseller__bullets li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); }
.reseller__bullets li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.reseller__visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.reseller__diagram {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12px;
  min-width: 260px;
  box-shadow: var(--shadow);
}
.reseller__diagram-node {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.reseller__diagram-node--root { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.reseller__diagram-node small { color: var(--text-3); font-size: 10px; }
.reseller__diagram-line { width: 1px; height: 12px; background: var(--border-bright); margin-left: 18px; }

/* FAQ */
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item.is-open { border-color: var(--border-bright); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  color: var(--text);
  text-align: left;
  letter-spacing: -0.01em;
}
.faq__icon {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  transition: all .2s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 26px 26px; font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* Final CTA */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  padding: 100px 0 120px;
  position: relative;
}
.final-cta h2 { font-size: clamp(36px, 4.8vw, 60px); margin-bottom: 20px; max-width: 800px; margin-inline: auto; }
.final-cta p { color: var(--text-2); font-size: 18px; max-width: 580px; margin: 0 auto 36px; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer__brand p { color: var(--text-2); font-size: 14px; margin: 16px 0 18px; max-width: 320px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 500;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--text-2); transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
  flex-wrap: wrap; gap: 14px;
}
.footer__credits {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer__credits a {
  color: var(--text-2);
  border-bottom: 1px dotted var(--border-bright);
  transition: color .15s ease, border-color .15s ease;
}
.footer__credits a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer__made { color: var(--text-3); margin-left: 4px; }
.footer__disclaimer {
  margin-top: 16px; margin-bottom: 28px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  font-size: 12px; color: var(--text-2);
  line-height: 1.55;
  display: flex; gap: 10px; align-items: flex-start;
}
.footer__disclaimer svg { width: 16px; height: 16px; color: var(--warn); flex-shrink: 0; margin-top: 1px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
/* Footer link buttons (Sobre/Termos/Privacidade) — devem parecer idênticos aos <a> ao lado */
.footer__col .footer__link-btn {
  display: inline-block !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  color: var(--text-2) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: color .15s ease !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
.footer__col .footer__link-btn:hover { color: var(--text) !important; }
.footer__col .footer__link-btn:focus { outline: 0; color: var(--text) !important; }

/* ────────────────────────────────────────────────────────────────
   MODALS
   ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 100;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.is-open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: fixed;
  z-index: 101;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.96);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal[hidden] { display: none; }

.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,185,129,0.04), transparent);
  flex-shrink: 0;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.modal__close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all .15s ease;
  flex-shrink: 0;
}
.modal__close:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: var(--surface);
}
.modal__close svg { width: 16px; height: 16px; }

.modal__body {
  padding: 26px 28px 32px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }

.modal__body h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
}
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { margin-bottom: 12px; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__body ul {
  margin: 8px 0 14px 4px;
  list-style: none;
}
.modal__body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.modal__body ul li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
}
.modal__body a {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
  transition: opacity .15s ease;
}
.modal__body a:hover { opacity: 0.7; }
.modal__body strong { color: var(--text); font-weight: 600; }
.modal__body .modal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.modal__body .modal__meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2);
}
.modal__body .modal__meta-item svg { width: 14px; height: 14px; color: var(--accent); }
.modal__body .modal__signature {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 40px);
  }
  .modal__head { padding: 18px 20px; }
  .modal__title { font-size: 18px; }
  .modal__body { padding: 20px 22px 26px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { transform: none; max-width: 560px; margin-inline: auto; }
  .api__layout { grid-template-columns: 1fr; }
  .api__code-wrap { position: static; }
  .reseller { grid-template-columns: 1fr; padding: 40px; }
  .pricing-grid--hosted { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid--self { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.pricing-card--wide {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 36px 28px;
  }
  .pricing-card__features--cols { grid-template-columns: 1fr 1fr; }
  .trust__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
  }
  .nav.is-open a { padding: 12px 14px; }
  .menu-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 60px; }
  .how__grid { grid-template-columns: 1fr; gap: 16px; }
  .how__grid::before { display: none; }
  .why__grid { grid-template-columns: 1fr; }
  .compat__grid { grid-template-columns: 1fr; }
  .audience__grid { grid-template-columns: 1fr; }
  .pricing-grid--hosted, .pricing-grid--self { grid-template-columns: 1fr; }
  .pricing-card__features--cols { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); padding: 22px 0; }
  .compare__head, .compare__row { grid-template-columns: 1.2fr 1fr 1fr; }
  .compare__head > div, .compare__row > div { padding: 14px 14px; font-size: 13px; }
  .compare__head > .compare__digigo::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .reseller__bullets { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  h2 { font-size: 30px; }
  .hero h1 { font-size: 38px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .reseller { padding: 28px; }
  .pricing-card { padding: 26px; }
  .compat__hero { gap: 14px; }
  .compat__arrow { transform: rotate(90deg); }
  .compat__arrow::after { display: none; }
}
