:root {
  --bg: #0c0b09;
  --bg-elevated: #141210;
  --surface: #1c1916;
  --line: rgba(255, 248, 235, 0.1);
  --text: #f7f2ea;
  --muted: #a89f92;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --teal: #5ec4b6;
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1000;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark { color: var(--accent); font-size: 12px; }

.topnav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.topnav a:hover { color: var(--text); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .topnav { display: none; }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.lede strong { color: var(--text); }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9em;
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

.hero-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.frame-stack {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame.back {
  transform: scale(0.92) translate(-6%, 4%);
  opacity: 0.55;
  filter: grayscale(0.3);
}

.frame.front {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.frame-label {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.frame-label.input { top: 14px; left: 14px; color: var(--muted); }
.frame-label.output { bottom: 14px; right: 14px; color: var(--teal); }

.pipeline, .demos, .cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 8px;
}

.section-head p { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p { font-size: 0.95rem; color: var(--muted); }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px;
  margin-bottom: 32px;
}

.demo-card header { margin-bottom: 24px; }

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.demo-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.demo-card header p { color: var(--muted); font-size: 0.95rem; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.compare-grid figcaption {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.compare-grid img,
.compare-grid video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.video-fig video { background: #000; }

.demo-card.pending .compare-grid img:not([src]),
.demo-card.pending .video-fig::after {
  content: "Gerando com Grok Imagine…";
}

.cta {
  text-align: center;
  padding-bottom: 80px;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #e8d5a8);
  color: #1a1510;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 169, 98, 0.35);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer p + p { margin-top: 6px; }

footer a { color: var(--accent); }