/* =========================================================
   Grok IA — grok.ia.br
   Identidade: vermelho #ED1C24 (primário), laranja #F26840 / #F79440 (apoio)
   Tipografia: Barlow Condensed (títulos) + Libre Franklin (texto)
   ========================================================= */

:root {
  --red: #ed1c24;
  --red-dark: #c8141b;
  --red-deep: #9e0f15;
  --orange: #f26840;
  --orange-light: #f79440;
  --ink: #141416;
  --ink-2: #26262b;
  --gray: #5f6066;
  --gray-light: #9a9ba3;
  --line: #e6e6ea;
  --soft: #f6f6f8;
  --white: #ffffff;

  --font-head: "Barlow Condensed", "Swiss 721 Condensed", "Arial Narrow", sans-serif;
  --font-body: "Libre Franklin", "Franklin Gothic", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(20, 20, 22, 0.12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: 16px; }

.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 22px rgba(237, 28, 36, .28); }
.btn-primary:hover { background: var(--red-dark); }

.btn-light { background: var(--white); color: var(--red); }
.btn-light:hover { background: #fff3f3; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand img { width: 160px; height: auto; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-2); padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 45%, var(--orange) 100%);
  padding: 96px 0 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .poly { width: 100%; height: 100%; opacity: .16; }
.hero-bg .poly polygon { fill: #fff; stroke: #fff; stroke-width: 1.2; }
.hero-bg .poly polygon:nth-child(odd) { fill-opacity: .18; }
.hero-bg .poly polygon:nth-child(even) { fill-opacity: .06; }
.hero-bg .poly polygon:nth-child(3n) { fill-opacity: .30; }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
  margin-bottom: 26px;
}
.eyebrow img { width: 18px; height: 18px; }

.hero h1 { font-size: clamp(44px, 6.2vw, 78px); font-weight: 800; text-transform: uppercase; line-height: .98; }
.hero h1 em { font-style: normal; color: #ffd9c7; }
.hero .lead { margin-top: 24px; font-size: 18px; max-width: 580px; color: rgba(255,255,255,.92); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: 14px; color: rgba(255,255,255,.88); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffd9c7; }
.hero-badges strong { font-family: var(--font-head); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }

/* Chat mockup */
.hero-demo { display: flex; justify-content: center; }
.chat {
  width: 100%; max-width: 440px; background: var(--white); color: var(--ink);
  border-radius: 20px; box-shadow: 0 30px 70px rgba(80, 0, 5, .35); overflow: hidden;
  display: flex; flex-direction: column; min-height: 520px;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; align-items: center; gap: 10px; }
.chat-id img { width: 28px; height: 28px; }
.chat-id strong { display: block; font-family: var(--font-head); font-size: 20px; line-height: 1; }
.chat-id span { display: block; font-size: 12px; color: var(--gray); }
.chat-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-light); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }

.chat-body { flex: 1; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; animation: msgIn .35s ease both; }
.msg-user { align-self: flex-end; background: var(--red); color: var(--white); border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-bot strong { color: var(--red); }
.msg-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-light); animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
.msg-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.msg-img span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--red), var(--orange-light)); }
.msg-img span:nth-child(2) { background: linear-gradient(225deg, var(--orange), var(--red-deep)); }
.msg-img span:nth-child(3) { background: linear-gradient(45deg, var(--orange-light), var(--red)); }
.msg-code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #f8f8f8; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12.5px; white-space: pre; overflow: hidden; }

@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); }
.chat-placeholder { flex: 1; font-size: 14px; color: var(--gray-light); }
.chat-mic { color: var(--gray); display: inline-flex; }
.chat-send { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Strip ---------- */
.strip { background: var(--ink); color: var(--white); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; }
.strip-item:first-child { border-left: 0; }
.strip-k { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1; color: var(--orange-light); }
.strip-v { font-size: 14px; color: rgba(255,255,255,.78); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 3px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.kicker-light { color: var(--orange-light); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head-left { margin-left: 0; text-align: left; max-width: 820px; }
.section-head h2, .modelo-grid h2, .cta-inner h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; text-transform: uppercase; }
.section-head p { margin-top: 18px; font-size: 17px; color: var(--gray); }
.section-dark .section-head p, .section-dark p { color: rgba(255,255,255,.78); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--white);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--gray); }

.features-2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-lg { padding: 36px 32px; }
.feature-lg h3 { font-size: 32px; }
.feature-lg p { font-size: 16px; }
.feature-status {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: #fdeaea;
}
.feature-list { margin-top: 18px; display: grid; gap: 8px; }
.feature-list li { padding-left: 22px; position: relative; font-size: 15px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

.platform-note {
  margin-top: 40px; padding: 32px 36px; border-radius: var(--radius);
  background: var(--ink); color: rgba(255,255,255,.85);
  border-left: 5px solid var(--orange);
}
.platform-note h3 { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.platform-note p { font-size: 16px; }
.platform-note strong { color: var(--orange-light); }

.section-note { margin: 36px auto 0; max-width: 760px; text-align: center; font-size: 13.5px; color: var(--gray); }

/* ---------- Modelo ---------- */
.modelo-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.modelo-grid > div > p { margin-top: 18px; font-size: 17px; }
.checklist { margin-top: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: rgba(255,255,255,.9); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.model-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-card {
  padding: 26px 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.model-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--red), var(--orange-light)); }
.model-name { font-family: var(--font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.model-desc { font-size: 14.5px; color: rgba(255,255,255,.72); }

/* ---------- Audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.audience { padding: 34px 28px; border-radius: var(--radius); background: var(--soft); position: relative; }
.audience-n { font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1; color: var(--red); opacity: .18; position: absolute; top: 18px; right: 22px; }
.audience h3 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.audience p { color: var(--gray); font-size: 15.5px; }
.audience-dark { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); }
.audience-dark h3 { color: var(--white); }
.audience-dark p { color: rgba(255,255,255,.75); }
.audience-dark .audience-n { color: var(--orange-light); opacity: .35; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column; position: relative;
}
.plan h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.plan-price { display: block; margin: 6px 0 20px; font-family: var(--font-head); font-size: 20px; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.plan ul { flex: 1; display: grid; gap: 10px; margin-bottom: 26px; }
.plan li { padding-left: 24px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.plan-featured { border: 2px solid var(--red); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan-badge {
  position: absolute; top: -14px; left: 28px; background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Marca ---------- */
.brand-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.brand-value { padding: 30px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); }
.brand-value h3 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.brand-value p { font-size: 15px; color: var(--gray); }

/* ---------- CTA ---------- */
.section-cta { background: linear-gradient(135deg, var(--red-deep), var(--red) 55%, var(--orange)); color: var(--white); padding: 90px 0; }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta-inner p { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.9); }
.cta-form { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-form input {
  flex: 1 1 240px; height: 54px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--white); outline: none;
}
.cta-form input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.form-ok { flex-basis: 100%; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 200px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col h4 { font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer-col a:hover { color: var(--orange-light); }
.footer-legal { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
}

@media (max-width: 900px) {
  .hero { padding: 70px 0 80px; }
  .features-2 { grid-template-columns: 1fr; }
  .hero-grid, .modelo-grid, .cta-inner { grid-template-columns: 1fr; }
  .brand-values { grid-template-columns: 1fr; }
  .hero-demo { order: 2; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item { border-top: 1px solid rgba(255,255,255,.1); }
  .strip-item:nth-child(-n+2) { border-top: 0; }
  .audiences, .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .section { padding: 72px 0; }

  .nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .features, .model-cards, .footer-grid, .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; }
  .strip-item:nth-child(2) { border-top: 1px solid rgba(255,255,255,.1); }
  .hero h1 { font-size: 42px; }
  .hero-badges { flex-direction: column; gap: 10px; }
  .chat { min-height: 460px; }
  .platform-note { padding: 24px 20px; }
}
