/* ===========================================================
   ACS Brasil 360 — Landing Page
   Design tokens
   =========================================================== */

@font-face {
  font-family: 'Sora';
  src: local('Sora');
}

:root {
  /* Palette */
  --navy: #0f172a;
  --navy-soft: #16213a;
  --paper: #f8f9fb;
  --paper-dim: #eef1f6;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --ink: #1e293b;
  --ink-dim: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --white: #ffffff;
  --amber: #d97706;
  --red: #dc2626;

  /* Type */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --max-w: 1120px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================================================
   Header / Nav
   =========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}

/* ===========================================================
   Hero — the "microárea" route motif
   =========================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(13,148,136,0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(37,99,235,0.18), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-copy .eyebrow {
  color: #5eead4;
}

.hero-copy .eyebrow::before {
  background: #5eead4;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  color: var(--white);
  margin: 20px 0 20px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #5eead4, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: #cbd5e1;
  max-width: 480px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-deep); }

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

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #94a3b8;
}

.hero-meta-item strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
}

/* Route visual */
.hero-visual {
  position: relative;
  height: 460px;
}

.route-svg {
  width: 100%;
  height: 100%;
}

.route-path {
  fill: none;
  stroke: rgba(148,163,184,0.35);
  stroke-width: 2;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.route-path-solid {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-route 2.4s ease forwards 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .route-path-solid { animation: none; stroke-dashoffset: 0; }
}

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

.route-node {
  fill: var(--navy);
  stroke-width: 2.5;
}

.route-node-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 190px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  opacity: 0;
  animation: card-in 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .route-node-card { opacity: 1; animation: none; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.route-node-card .rn-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #5eead4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}

.route-node-card .rn-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.route-node-card .rn-status {
  font-size: 11.5px;
  color: #94a3b8;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.status-dot.green { background: #4ade80; }
.status-dot.amber { background: #fbbf24; }
.status-dot.red { background: #f87171; }

.card-1 { top: 6%; left: 2%; animation-delay: 0.6s; }
.card-2 { top: 44%; right: 0%; animation-delay: 0.95s; }
.card-3 { bottom: 4%; left: 14%; animation-delay: 1.3s; }

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
}

/* ===========================================================
   Trust bar
   =========================================================== */

.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
}

.trust-inner span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-inner svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }

/* ===========================================================
   Section shell
   =========================================================== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--paper-dim);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 32px;
  margin-top: 14px;
  line-height: 1.2;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-dim);
}

/* ===========================================================
   Sobre / Feature grid
   =========================================================== */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-icon.teal { background: #ccfbf1; color: var(--teal); }
.feature-icon.blue { background: #dbeafe; color: var(--blue); }
.feature-icon.navy { background: #e2e8f0; color: var(--navy); }

.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* ===========================================================
   Timeline (Como funciona) — order is real here, on-device flow
   =========================================================== */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.flow::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 6%;
  right: 6%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 10px 2px;
}

.flow-step {
  padding: 0 16px;
  text-align: left;
  position: relative;
}

.flow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.flow-step h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* ===========================================================
   Indicadores strip
   =========================================================== */

.indicators {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ===========================================================
   Privacy page
   =========================================================== */

.privacy-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 48px;
}

.privacy-hero .eyebrow { color: #5eead4; }
.privacy-hero .eyebrow::before { background: #5eead4; }

.privacy-hero h1 {
  color: var(--white);
  font-size: 34px;
  margin: 16px 0 10px;
}

.privacy-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #94a3b8;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 64px 0 100px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-bottom: 14px;
  display: block;
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.toc a {
  counter-increment: toc;
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--line-strong);
  flex-shrink: 0;
}

.toc a:hover {
  background: var(--paper-dim);
  color: var(--ink);
}

.policy-content h2 {
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 14px;
  scroll-margin-top: 96px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
}

.policy-content p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.policy-content li {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.policy-content strong { color: var(--navy); }

.policy-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 18px 0;
}

.policy-box-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 10px;
  display: block;
}

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--ink);
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.security-item svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 8px;
}

.contact-card svg { width: 22px; height: 22px; color: #5eead4; flex-shrink: 0; }

.contact-card a {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.contact-card a:hover { border-color: rgba(255,255,255,0.7); }

.contact-card-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ===========================================================
   CTA band
   =========================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #10243f 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 30px;
  margin-bottom: 14px;
}

.cta-band p {
  color: #cbd5e1;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13.5px;
  color: #cbd5e1;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero-visual { height: 340px; order: -1; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .flow::before { display: none; }
  .privacy-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 8px; }
  .security-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-top { flex-direction: column; }
  .trust-inner { gap: 20px; justify-content: flex-start; }
  .card-1, .card-2, .card-3 { position: static; width: 100%; margin-bottom: 10px; }
  .hero-visual { height: auto; }
  .route-svg { display: none; }
}
