/* ============================================================
   Acalanto — design system
   architectural graphite · burnished copper & warm champagne
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-soft: #10141a;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(217, 119, 54, 0.38);
  --text: #f2efe9;
  --muted: #a1a8b5;
  --muted-2: #727a8a;
  --ember: #d97736;
  --rose: #e8b86d;
  --violet: #94a3b8;
  --cool: #8fa8c8;
  --ok: #34d399;
  --grad: linear-gradient(120deg, #e07b39 0%, #ebb96b 58%, #f4dcb2 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
  --container: 1140px;
  --font: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(217, 119, 54, 0.32); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { flex: none; filter: drop-shadow(0 0 10px rgba(217, 119, 54, 0.25)); }
.brand-word {
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.brand-tld { color: var(--muted-2); font-weight: 500; }

.site-nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: var(--panel-strong); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

/* language pill */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em;
  padding: 8px 13px; cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-toggle .lang-sep { color: var(--muted-2); }
.lang-en, .lang-pt { opacity: 0.45; transition: opacity 0.2s ease; }
html:not(.pt) .lang-en, html.pt .lang-pt { opacity: 1; color: var(--text); }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 42px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 12px;
  padding: 13px 24px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #e08344 0%, #c86a2b 100%);
  color: #0b0d10;
  font-weight: 700;
  border-color: rgba(255, 224, 186, 0.22);
  box-shadow: 0 10px 28px -10px rgba(217, 119, 54, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(217, 119, 54, 0.6); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.btn-small { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vh, 110px) 0 clamp(64px, 10vh, 120px); }
.hero-bg { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.42; }
.blob-a {
  width: 560px; height: 560px; top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(217, 119, 54, 0.38), transparent 65%);
}
.blob-b {
  width: 640px; height: 640px; bottom: -340px; left: -180px;
  background: radial-gradient(circle, rgba(64, 96, 132, 0.32), transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
/* grid/flex children must be allowed to shrink below intrinsic width (terminal <pre>) */
.hero-inner > *, .approach > *, .contact-grid > *, .founder-card > *, .timeline li > div { min-width: 0; }

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.06;
  letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(16.5px, 1.4vw, 18.5px); max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chips li {
  font-size: 12.8px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  background: rgba(255, 255, 255, 0.02);
}

/* terminal */
.terminal {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.terminal:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-inline-start: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.term-body {
  margin: 0; padding: 20px 18px 24px;
  font-family: var(--mono); font-size: clamp(11.6px, 1.15vw, 13.2px); line-height: 1.95;
  color: #d7dae3; white-space: pre; overflow-x: auto;
}
.t-dim { color: #6d7386; }
.t-ok { color: var(--ok); }
.t-acc { color: var(--ember); font-weight: 600; }
.t-run { color: var(--cool); }
.t-role { color: var(--cool); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vh, 130px) 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head.left { margin-bottom: 0; }
.section-head h2, .founder-body h2, .contact-info h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px;
}
.section-head p:last-child, .contact-info p { color: var(--muted); font-size: 17px; margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--grad); opacity: 0; transition: opacity 0.3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.card:hover { transform: translateY(-4px); border-color: transparent; background: var(--panel-strong); }
.card:hover::before { opacity: 0.7; }
.card-icon { width: 30px; height: 30px; margin-bottom: 18px; stroke: var(--ember); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; letter-spacing: -0.015em; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 14.8px; margin: 0; }

/* approach */
.approach { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; row-gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.step-num { grid-row: span 2; font-family: var(--mono); font-size: 15px; color: var(--ember); padding-top: 2px; }
.steps h3 { margin: 0; font-size: 17.5px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 14.8px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 26px;
  position: relative; padding: 14px 0 14px 36px;
}
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 25px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong);
}
.tl-now::before { border-color: var(--ember) !important; box-shadow: 0 0 14px rgba(217, 119, 54, 0.75); }
.tl-year { font-family: var(--mono); font-size: 13.5px; color: var(--ember); padding-top: 3px; }
.timeline h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.flag {
  display: inline-block; vertical-align: middle; margin-inline-start: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--cool); text-transform: uppercase;
  border: 1px solid rgba(124, 140, 255, 0.35); border-radius: 999px; padding: 2px 9px;
  background: rgba(124, 140, 255, 0.08);
}
.timeline p { margin: 0; color: var(--muted); font-size: 14.8px; max-width: 56em; }

/* proof — stats band + point steps */
.stats { list-style: none; margin: 0 0 clamp(36px, 5vh, 56px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 24px 22px; display: grid; gap: 6px; align-content: center; text-align: center;
}
.stats strong {
  font-size: clamp(38px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stats span { color: var(--muted); font-size: 13.5px; }
.proof-points { grid-template-columns: repeat(3, 1fr); display: grid; }
.proof-points li { grid-template-columns: 1fr; row-gap: 8px; }
.proof-points .step-num { grid-row: auto; }

/* founder */
.founder-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 52px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(30px, 4.5vw, 52px);
}
.avatar {
  position: relative;
  width: clamp(96px, 12vw, 132px); height: clamp(96px, 12vw, 132px); border-radius: 50%;
  background: var(--grad); padding: 3px;
}
.avatar img {
  position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px);
  border-radius: 50%; object-fit: cover; object-position: center 28%;
}
.avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg-soft);
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em;
  background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
  background-color: #12121a;
}
.founder-body h2 { margin-bottom: 14px; }
.founder-role { display: inline-block; font-size: 0.5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.founder-body p { color: var(--muted); max-width: 56em; margin: 0 0 24px; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, auto); gap: 12px; margin: 0 0 24px; padding: 0; }
.facts li {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02); display: grid; gap: 1px;
}
.facts strong { font-size: 17px; letter-spacing: -0.02em; }
.facts span { font-size: 12.3px; color: var(--muted-2); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  font-size: 13.8px; font-weight: 500; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { color: var(--text); border-color: var(--line-strong); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 84px); align-items: start; }
.contact-facts { margin: 34px 0 0; display: grid; gap: 16px; }
.contact-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.contact-facts dd { margin: 0; color: var(--muted); font-size: 15px; }
.contact-facts a { color: var(--ember); text-decoration: none; }
.contact-facts a:hover { text-decoration: underline; }

/* form */
.form-card { padding: clamp(26px, 3.5vw, 38px); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--text); background: #14141c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(217, 119, 54, 0.2);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #f87171; }
.field-hint { margin: 0; font-size: 12.3px; color: var(--muted-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; font-size: 12.8px; color: var(--muted-2); }
.form-note.ok { color: var(--ok); }
.form-note.err { color: #f87171; }
.form-note.sending { color: var(--cool); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; color: var(--muted-2); font-size: 13.5px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: var(--muted-2); font-size: 13.5px; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

/* reveal animation — só quando o JS está ativo; sem JS, tudo visível */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
.cards .card:nth-child(2), .steps li:nth-child(2), .timeline li:nth-child(2) { transition-delay: 0.06s; }
.cards .card:nth-child(3), .steps li:nth-child(3), .timeline li:nth-child(3) { transition-delay: 0.12s; }
.cards .card:nth-child(4), .steps li:nth-child(4) { transition-delay: 0.18s; }
.cards .card:nth-child(5) { transition-delay: 0.24s; }
.cards .card:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* nav grew to 6 items — CTA gets dropped before the nav wraps */
  .header-actions .btn-small { display: none; }
}

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .terminal { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, auto); }
  .proof-points { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 2px; padding: 14px 24px 22px;
    background: rgba(12, 12, 18, 0.98); border-bottom: 1px solid var(--line);
    transform: translateY(-115%); transition: transform 0.3s ease;
  }
  body.nav-open .site-nav { transform: none; }
  .site-nav a { padding: 12px 10px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .founder-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 32px; }
  .tl-year { padding-top: 0; }
  .term-body { font-size: 10.4px; padding: 16px 14px 20px; }
  .contact-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { justify-content: flex-start; }
}
