/* ============================================================
   KOZAPP — Design system
   Coexistência WhatsApp / API Oficial Meta
   Palette: black-violet + purple + WhatsApp green
   Type: Space Grotesk (display) / Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:            #09070F;
  --bg-2:          #100A1E;
  --panel:         rgba(255, 255, 255, 0.045);
  --panel-strong:  rgba(255, 255, 255, 0.07);
  --border:        rgba(168, 133, 247, 0.16);
  --border-soft:   rgba(255, 255, 255, 0.08);

  --ink:           #F4F1FF;
  --muted:         #ABA0C7;
  --muted-2:       #7C7396;

  --purple:        #8B5CF6;
  --purple-bright: #A855F7;
  --purple-deep:   #6D28D9;

  --green:         #25D06A;
  --green-bright:  #34E27C;
  --green-deep:    #16A34A;

  --radius:        22px;
  --radius-sm:     14px;
  --maxw:          1180px;

  --shadow-glow:   0 0 0 1px var(--border), 0 24px 60px -24px rgba(109, 40, 217, 0.55);
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- Mesh aura background ---------- */
.aura {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.aura::before,
.aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}
.aura::before {
  width: 60vw; height: 60vw;
  top: -18vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, #7C3AED 0%, transparent 62%);
}
.aura::after {
  width: 52vw; height: 52vw;
  top: 30vh; right: -14vw;
  background: radial-gradient(circle at 60% 40%, #1E9E5A 0%, transparent 60%);
  opacity: 0.35;
}
.aura__blob {
  position: absolute;
  width: 44vw; height: 44vw;
  left: 22vw; top: 62vh;
  background: radial-gradient(circle at 50% 50%, #A855F7 0%, transparent 60%);
  filter: blur(110px);
  opacity: 0.28;
  border-radius: 50%;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-bright);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
}

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

.grad-text {
  background: linear-gradient(100deg, #FFFFFF 0%, #C9B6FF 45%, #8B5CF6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.green-text { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green-deep));
  color: #04240F;
  box-shadow: 0 10px 30px -10px rgba(37, 208, 106, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(37, 208, 106, 0.85); }
.btn--ghost {
  background: var(--panel-strong); color: var(--ink);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--purple-bright); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled {
  background: rgba(9, 7, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--purple-bright), var(--purple-deep));
  box-shadow: 0 8px 22px -8px var(--purple);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; right: 6px; bottom: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-bright); border: 2px solid #1a0f2e;
  box-shadow: 0 0 8px var(--green-bright);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand__name span { color: var(--green-bright); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a.navlink { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .2s; }
.nav__links a.navlink:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 22px 0 20px; }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 34ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }

/* ---------- Coexistence signature widget ---------- */
.coexist {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(16px);
  padding: 30px;
  box-shadow: var(--shadow-glow);
}
.coexist__title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-family: var(--font-display); }
.coexist__stage {
  position: relative; margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch;
}
.node {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.25);
  padding: 18px 16px; text-align: center;
}
.node__ic { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; }
.node__ic svg { width: 24px; height: 24px; }
.node--device .node__ic { background: rgba(139,92,246,0.16); color: var(--purple-bright); }
.node--cloud .node__ic { background: rgba(37,208,106,0.14); color: var(--green-bright); }
.node__label { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.node__sub { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.node__status {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--green-bright);
  padding: 4px 10px; border-radius: 100px; background: rgba(37,208,106,0.1);
}
.node__status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(52,226,124,0.6);} 50%{ box-shadow: 0 0 0 6px rgba(52,226,124,0);} }

.coexist__link {
  position: relative; height: 26px; margin: 4px 0 2px;
  display: flex; align-items: center; justify-content: center;
}
.coexist__line { position: relative; width: 100%; height: 2px; background: linear-gradient(90deg, var(--purple), var(--green)); border-radius: 2px; overflow: visible; }
.coexist__line::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff;
  animation: travel 2.6s linear infinite;
}
@keyframes travel { from { left: 0; } to { left: 100%; } }
.coexist__pill {
  position: absolute; background: var(--bg-2); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--ink); padding: 3px 11px; border-radius: 100px;
  font-family: var(--font-display); z-index: 2;
}
.coexist__foot {
  margin-top: 20px; font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--border-soft); padding-top: 16px;
  display: flex; align-items: center; gap: 9px;
}
.coexist__foot b { color: var(--ink); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust { padding: 26px 0; }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px;
  padding: 20px 26px; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: var(--panel);
  backdrop-filter: blur(10px);
}
.trust__item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.trust__item svg { width: 18px; height: 18px; color: var(--green-bright); }
.trust__item b { color: var(--ink); font-weight: 600; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 620px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 16px 0 12px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.section-pad { padding: 66px 0; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  grid-auto-rows: minmax(150px, auto);
}
.cell {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease;
}
.cell:hover { transform: translateY(-4px); border-color: var(--border); }
.cell__ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(139,92,246,0.15); color: var(--purple-bright); margin-bottom: 16px;
}
.cell--green .cell__ic { background: rgba(37,208,106,0.14); color: var(--green-bright); }
.cell__ic svg { width: 24px; height: 24px; }
.cell h3 { font-size: 1.18rem; margin-bottom: 8px; }
.cell p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.cell__glow { position: absolute; width: 180px; height: 180px; right: -50px; top: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,0.28), transparent 70%); pointer-events: none; }

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }

.cell--feature h3 { font-size: 1.5rem; }
.cell--feature .big-num {
  font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border-soft); background: var(--panel);
  backdrop-filter: blur(12px);
}
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--purple-bright), var(--purple-deep));
  color: #fff; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 54px 40px; text-align: center;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(37,208,106,0.22), transparent 55%),
    var(--panel-strong);
  backdrop-filter: blur(14px);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; font-size: 1.06rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); margin-top: 30px; padding: 54px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin: 14px 0 0; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin: 0 0 16px; }
.footer__col a, .footer__col span { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--green-bright); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--muted-2); font-size: 0.82rem;
}
.footer__legal-note { max-width: 60ch; }

/* ---------- Legal / doc pages ---------- */
.doc { padding: 54px 0 40px; }
.doc__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.doc__head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.doc__head .updated { color: var(--muted-2); font-size: 0.88rem; }
.doc__body {
  max-width: 820px; margin: 0 auto;
  border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: var(--panel); backdrop-filter: blur(12px);
  padding: 44px clamp(24px, 4vw, 54px);
}
.doc__body h2 {
  font-size: 1.35rem; margin: 38px 0 12px; color: var(--ink);
  scroll-margin-top: 90px;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--purple-bright); }
.doc__body p, .doc__body li { color: #D6CFEA; font-size: 0.98rem; }
.doc__body ul, .doc__body ol { padding-left: 22px; }
.doc__body li { margin-bottom: 8px; }
.doc__body a { color: var(--green-bright); }
.doc__body strong { color: var(--ink); }
.doc__body hr { border: none; border-top: 1px solid var(--border-soft); margin: 30px 0; }
.callout {
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(139,92,246,0.08); padding: 18px 20px; margin: 22px 0;
}
.callout strong { color: var(--ink); }
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.94rem; }
.info-table td { padding: 10px 12px; border: 1px solid var(--border-soft); vertical-align: top; }
.info-table td:first-child { color: var(--muted); width: 34%; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 26px; }
.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__lead { max-width: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-3, .col-4 { grid-column: span 2; }
  .row-2 { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links .navlink { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4 { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .coexist__stage { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
