/* SophiaX: tema escuro, recriado a partir da versão do Lovable (HTML e CSS puros, sem JS). */
:root {
  color-scheme: dark;
  --background: oklch(0.15 0.03 250);
  --foreground: oklch(0.96 0.01 240);
  --surface: oklch(0.18 0.035 250);
  --card: oklch(0.2 0.04 250 / 60%);
  --primary: oklch(0.78 0.13 235);
  --primary-foreground: oklch(0.15 0.03 250);
  --muted-foreground: oklch(0.75 0.03 245);
  --border: oklch(0.78 0.13 235 / 18%);
  --navy: oklch(0.12 0.03 250);
  --navy-foreground: oklch(0.98 0 0);
  --sky: oklch(0.78 0.11 245);
  --glow: oklch(0.78 0.13 235);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.6 var(--sans);
}
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 2px; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted-foreground); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--background); padding: 8px 12px; border-radius: 4px; }

/* Efeitos */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklab, var(--glow) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--glow) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.glow-box { box-shadow: 0 0 0 1px color-mix(in oklab, var(--glow) 35%, transparent), 0 0 40px -8px color-mix(in oklab, var(--glow) 45%, transparent); }
.glass { background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--border); }

@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse-ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.flow-line { stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
.pulse-ring { transform-origin: center; transform-box: fill-box; animation: pulse-ring 3s ease-out infinite; }
.d1 { animation-delay: .2s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .6s; }
.d4 { animation-delay: .8s; } .d5 { animation-delay: 1s; } .d6 { animation-delay: 1.2s; } .d7 { animation-delay: 1.4s; }
.mt { margin-top: 16px; }
.spin-slow { transform-origin: center; transform-box: fill-box; animation: spin-slow 60s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-line, .pulse-ring, .spin-slow { animation: none; }
}

/* Topo */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--navy-foreground); }
.topbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-foreground); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.2em; white-space: nowrap; }
.logo-text em { font-style: normal; color: var(--sky); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav a { font-size: 14px; text-decoration: none; color: color-mix(in oklab, var(--navy-foreground) 85%, transparent); }
.nav a:hover { color: var(--navy-foreground); }
.lang { display: flex; overflow: hidden; border: 1px solid color-mix(in oklab, var(--navy-foreground) 30%, transparent); border-radius: 4px; font-size: 12px; font-weight: 600; }
.lang a, .lang span { padding: 4px 10px; }
.lang span { background: var(--navy-foreground); color: var(--navy); }

.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sky);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.hero h1 { margin-top: 24px; font-size: clamp(36px, 6vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.hero .lead { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.65; color: var(--muted-foreground); }
.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  background: var(--primary); color: var(--primary-foreground);
  padding: 12px 24px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.cta:hover { opacity: 0.9; }
.hub { display: flex; justify-content: center; }
.hub svg { width: 100%; max-width: 520px; height: auto; }
.hub text { font: 10px var(--sans); fill: var(--foreground); }

/* Seções */
section { padding: 56px 0; }
.bg { background: var(--background); }
.surface { background: var(--surface); }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.h2-xl { max-width: 48rem; font-size: clamp(30px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.section-lead { margin-top: 16px; max-width: 42rem; font-size: 18px; color: var(--muted-foreground); }

.grid-3 { display: grid; gap: 24px; margin-top: 32px; }
.pillar { border-radius: 12px; padding: 32px; }
.pillar .num { font-family: var(--mono); font-size: 12px; color: var(--primary); }
.pillar h3 { margin-top: 16px; font-size: 24px; font-weight: 600; }
.pillar p { margin-top: 12px; color: var(--muted-foreground); }

.how-lead { margin-top: 16px; max-width: 56rem; font-size: clamp(24px, 3vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.question { margin-top: 32px; border-radius: 8px; padding: 24px; }
.question .q { display: flex; gap: 12px; font-family: var(--mono); font-size: 16px; }
.question .q span { color: var(--primary); }
.question figcaption { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }
.flowdiag { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; text-align: center; font-size: 14px; font-weight: 500; }
.flowdiag .box { border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; }
.flowdiag .gw { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: var(--primary); border: 0; }
.flowdiag .gw svg { width: 20px; height: 20px; }
.flowdiag small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
.flowdiag .arrow { color: var(--muted-foreground); }
.flowdiag .arrow::before { content: "↓"; }
.steps li { border-radius: 8px; padding: 24px; }
.steps .n { font-family: var(--serif); font-size: 30px; color: var(--primary); }
.steps h3 { margin-top: 8px; font-size: 16px; font-weight: 600; }
.steps p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }

.grid-2 { display: grid; gap: 48px; }
.note { margin-top: 24px; border-left: 2px solid var(--primary); padding-left: 16px; font-size: 14px; }
.stack { display: grid; gap: 16px; }
.stack .glass { border-radius: 8px; padding: 20px; font-size: 14px; }
.stack .mono { font-family: var(--mono); }
.stack strong { display: block; font-weight: 600; }
.stack .glass p { margin-top: 4px; color: var(--muted-foreground); }

.sub { margin-top: 40px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.live { display: grid; gap: 16px; margin-top: 16px; }
.live li { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 20px; font-size: 14px; font-weight: 500; }
.live li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 14px; }
.quote { margin-top: 32px; font-family: var(--serif); font-size: 24px; font-style: italic; }

.checks { display: grid; gap: 16px; margin-top: 40px; }
.checks li { display: flex; gap: 12px; border-radius: 8px; padding: 20px; font-size: 14px; }
.checks svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--primary); }

.contact { background: var(--navy); color: var(--navy-foreground); padding: 80px 0; }
.contact h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.contact p { margin-top: 16px; font-size: 18px; color: color-mix(in oklab, var(--navy-foreground) 85%, transparent); }
.contact .row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.mail { display: inline-flex; background: var(--navy-foreground); color: var(--navy); padding: 12px 24px; border-radius: 6px; font-weight: 500; text-decoration: none; }
.mail:hover { opacity: 0.9; }
.site { color: var(--sky); text-underline-offset: 4px; }

footer { border-top: 1px solid color-mix(in oklab, var(--navy-foreground) 15%, transparent); background: var(--navy); padding: 32px 0; text-align: center; font-size: 12px; color: color-mix(in oklab, var(--navy-foreground) 75%, transparent); }

@media (min-width: 640px) {
  .live { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; padding-top: 48px; padding-bottom: 80px; }
  section { padding: 80px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .question { padding: 32px; }
  .question .q { font-size: 18px; }
  .flowdiag { flex-direction: row; align-items: center; }
  .flowdiag .box { flex: 1; }
  .flowdiag .arrow::before { content: "→"; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 112px 0; }
}
@media (min-width: 1024px) {
  .live { grid-template-columns: repeat(4, 1fr); }
  .checks { grid-template-columns: repeat(3, 1fr); }
}
