/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --concrete-blue: #333399;
  --azul-marinho: #1C1C33;
  --solidity-gray: #CCCCCC;
  --verde-limao: #D9FF73;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-12: rgba(255,255,255,0.12);
  --white-08: rgba(255,255,255,0.08);
  --white-05: rgba(255,255,255,0.05);

  --font-display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Courier New', 'Courier', monospace;
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--concrete-blue);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--white-12);
  position: sticky;
  top: 0;
  background: var(--concrete-blue);
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-service {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: rgba(230, 230, 250, 0.85);
  letter-spacing: 0.02em;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--white-60);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--white); }

.nav-arrow {
  font-size: 11px;
  opacity: 0.8;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Section shared ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  text-wrap: balance;
}

.sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--white-70);
  margin-bottom: 40px;
  max-width: 400px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--concrete-blue);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--solidity-gray); }

.invite-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--white-40);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Comparison diagram ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.comparison-panel {
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: 20px;
  padding: 28px;
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 20px;
}

.id-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.id-row {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
}

.service-name {
  color: var(--white-60);
  width: 48px;
  flex-shrink: 0;
}

.connector {
  flex: 1;
  height: 1px;
  background: var(--white-20);
  margin: 0 10px;
}

.user-id {
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.user-id.same {
  background: rgba(255, 100, 100, 0.15);
  color: rgba(255, 160, 160, 0.9);
  border: 1px solid rgba(255, 100, 100, 0.2);
}

.user-id.unique {
  background: var(--white-12);
  color: var(--white-70);
  border: 1px solid var(--white-20);
}

.panel-verdict {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verdict-bad { color: rgba(255, 130, 130, 0.7); }
.verdict-good { color: rgba(180, 255, 180, 0.7); }

.comparison-divider {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* ── How it works ── */
.how {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--white-12);
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}

.step-sep {
  height: 1px;
  background: var(--white-12);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white-40);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-60);
  max-width: 560px;
}

/* ── For developers ── */
.devs {
  width: 100%;
  background: var(--azul-marinho);
  border-top: 1px solid var(--white-12);
  border-bottom: 1px solid var(--white-12);
}

.devs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.devs-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: balance;
}

.devs-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-60);
  margin-bottom: 32px;
  max-width: 400px;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--white-60);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--white-20);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--white-40);
}

.devs-code {
  background: var(--concrete-blue);
  border: 1px solid var(--white-20);
  border-radius: 16px;
  padding: 28px;
}

.code-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 16px;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--white-70);
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block code { color: inherit; }

.code-note {
  font-size: 11px;
  color: var(--white-40);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Footer ── */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo {
  height: 20px;
  width: auto;
}

.footer-service {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--white-40);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-40);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: var(--white-40);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px 20px 60px;
    gap: 48px;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison-divider {
    text-align: center;
    padding: 4px 0;
  }

  .how { padding: 60px 20px; }

  .devs-inner {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 40px;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }
}

/* ── Legal pages ── */
.legal-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-40);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.legal-back:hover { color: var(--white); }

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-wrap .meta {
  font-size: 12px;
  color: var(--white-40);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 12px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-60);
  margin-bottom: 12px;
}

.legal-wrap ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-wrap a {
  color: var(--solidity-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-wrap a:hover { color: var(--white); }
