/* ==========================================================================
   Sigacerto Technology — Design System
   ========================================================================== */

:root {
  /* Cores base */
  --bg: #06080f;
  --bg-alt: #0a0e1a;
  --surface: #0f1424;
  --surface-2: #131a2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f4f6fb;
  --text-muted: #9aa4bf;
  --text-faint: #626d8a;

  /* Acentos */
  --accent-1: #5b6cff;      /* indigo elétrico */
  --accent-2: #22d3ee;      /* ciano */
  --accent-3: #34e0a1;      /* verde menta (sucesso/destaque preço) */
  --gradient: linear-gradient(135deg, #5b6cff 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91,108,255,0.14) 0%, rgba(34,211,238,0.14) 100%);

  /* WhatsApp */
  --whatsapp: #25d366;

  /* Tipografia */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Espaçamento / raio */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --container: 1200px;

  /* Sombras */
  --shadow-glow: 0 0 60px rgba(91, 108, 255, 0.25);
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --header-h: 84px;
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fundo decorativo global — grid sutil + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(91, 108, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}

.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------- */
/* Utilitários                                                            */
/* --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-tight { padding: 80px 0; }

.section-head {
  max-width: 680px;
  margin: 0 0 64px;
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 18px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 18px;
}

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

/* --------------------------------------------------------------------- */
/* Botões                                                                 */
/* --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #050810;
  box-shadow: 0 8px 30px -8px rgba(91, 108, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -6px rgba(91, 108, 255, 0.75); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(34,211,238,0.06); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -6px rgba(37, 211, 102, 0.7); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------------- */
/* Header                                                                 */
/* --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.main-nav a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------- */
/* Cards                                                                  */
/* --------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: 1px solid rgba(91,108,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-2);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 96px) 0 100px;
  position: relative;
}

.hero-inner {
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-top: 24px;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 26px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-pillars {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-pillars div {
  background: var(--bg-alt);
  padding: 20px 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-pillars div::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.page-hero {
  padding: calc(var(--header-h) + 80px) 0 90px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 4px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-top: 20px; }
.page-hero p { max-width: 680px; margin: 22px auto 0; color: var(--text-muted); font-size: 1.15rem; }

/* --------------------------------------------------------------------- */
/* Fluxo do ecossistema (Home)                                            */
/* --------------------------------------------------------------------- */
.ecosystem {
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 900px 500px at 50% -20%, rgba(91,108,255,0.14), transparent 70%), var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 64px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  margin: 56px 0 8px;
  align-items: stretch;
}

.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  margin: 0 8px;
}

.flow-step .num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #050810;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.flow-step .card-icon { margin: 0 auto 18px; }
.flow-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; color: var(--text-muted); }

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  opacity: 0.7;
}
.flow-arrow svg { width: 22px; height: 22px; }

.ecosystem-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ecosystem-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
}
.ecosystem-item .check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(52,224,161,0.12);
  border: 1px solid rgba(52,224,161,0.35);
  color: var(--accent-3);
  display: flex; align-items: center; justify-content: center;
}
.ecosystem-item .check svg { width: 16px; height: 16px; }
.ecosystem-item h4 { font-size: 1rem; margin-bottom: 6px; }
.ecosystem-item p { font-size: 0.92rem; color: var(--text-muted); }

/* --------------------------------------------------------------------- */
/* Prova social / credibilidade                                          */
/* --------------------------------------------------------------------- */
.credibility {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.credibility h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 720px; margin: 0 auto; }
.credibility p { color: var(--text-muted); margin-top: 18px; max-width: 600px; margin-inline: auto; }
.credibility-marks {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------- */
/* CTA final                                                              */
/* --------------------------------------------------------------------- */
.cta-final {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91,108,255,0.14), rgba(34,211,238,0.10)), var(--surface);
  border: 1px solid var(--border-strong);
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta-final p { color: var(--text-muted); margin-top: 16px; font-size: 1.1rem; }
.cta-final .hero-actions { justify-content: center; margin-top: 32px; }

/* --------------------------------------------------------------------- */
/* Pricing / produtos                                                     */
/* --------------------------------------------------------------------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: rgba(91,108,255,0.5);
  background: linear-gradient(180deg, rgba(91,108,255,0.10), var(--surface) 40%);
  box-shadow: 0 0 0 1px rgba(91,108,255,0.2), var(--shadow-card);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #050810;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; color: var(--text-muted); font-weight: 600; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 16px 0 4px;
  color: var(--text);
}
.price-card .price span { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.price-card .price-note { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 24px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 28px; flex-grow: 1; }
.price-card li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-muted); align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-3); margin-top: 1px; }

/* Tabela comparativa (ERP) */
.plans-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.plans-table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
.plans-table th, .plans-table td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.plans-table thead th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}
.plans-table thead th.featured-col { color: var(--accent-2); }
.plans-table tbody td { font-size: 0.92rem; color: var(--text-muted); }
.plans-table tbody tr:last-child td { border-bottom: none; }
.plans-table td.price-cell { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.05rem; }
.plans-table .check { color: var(--accent-3); }
.plans-table td:first-child, .plans-table th:first-child { font-family: var(--font-display); font-weight: 600; color: var(--text); }

.tag-recommended {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--gradient-soft);
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------- */
/* Imagens / mídia                                                        */
/* --------------------------------------------------------------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4 / 5;
}
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.media-card:hover img { transform: scale(1.06); }
.media-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------- */
/* Formulário de contato                                                 */
/* --------------------------------------------------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(52,224,161,0.1);
  border: 1px solid rgba(52,224,161,0.35);
  color: var(--accent-3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-info-row:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.contact-info-row .ci-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(91,108,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.contact-info-row .ci-icon svg { width: 22px; height: 22px; }
.contact-info-row h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-row p, .contact-info-row a { font-size: 0.92rem; color: var(--text-muted); }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--text-faint); font-size: 0.85rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  max-width: 480px;
}

/* --------------------------------------------------------------------- */
/* WhatsApp flutuante                                                     */
/* --------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
  animation: float-pulse 2.8s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.08); }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 10px 40px -4px rgba(37, 211, 102, 0.85); }
}

/* --------------------------------------------------------------------- */
/* Reveal on scroll                                                       */
/* --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------- */
/* Responsivo                                                            */
/* --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 40px 0; }
  .flow-arrow { transform: rotate(90deg); }
  .ecosystem { padding: 40px 28px; }
  .ecosystem-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(6,8,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 6px;
    overflow-y: auto;
  }
  .main-nav.is-open a {
    padding: 16px 18px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .main-nav.is-open .nav-cta {
    margin-top: 16px;
    display: block;
    text-align: center;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: #050810;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-pillars { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .ecosystem { padding: 32px 20px; }
  .cta-final { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-pillars { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
