/* ============================================================
   ALTRO — A alternativa precisa.
   Design tokens + global styles
   ============================================================ */

:root {
  --ink: #0B0D11;
  --ink-alt: #0F1117;
  --ink-strip: #0F1217;
  --paper: #F4F5F7;
  --ink-blue: #2D52A0;
  --ink-blue-hover: #3A62B4;
  --slate-500: #686F7B;
  --slate-300: #B7BDC6;
  --slate-100: #E7EAEE;
  --text-dark: #F4F5F7;
  --text-light: #0B0D11;
  --status-green: #4ADE80;

  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --margin: 80px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text-dark);
  overflow-x: hidden;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.section { padding: 140px 0; position: relative; }

/* ---- Reusable type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--slate-500);
}

.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-500);
}

.on-dark .h2 { color: var(--text-dark); }
.on-light .h2 { color: var(--text-light); }

/* ============================================================
   NAVIGATION — floating pill island
   ============================================================ */
.nav-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 22px;
  background: rgba(11, 13, 17, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.nav.scrolled {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aperture {
  width: auto;
  height: 20px;
  color: var(--text-dark);
  flex-shrink: 0;
}

.nav-brand .wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-300);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-dark); }

.nav-cta {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-dark);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-cta:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255,255,255,0.04); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 16px; height: 1.5px; background: var(--text-dark);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text-dark);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink-blue); color: #fff; }
.btn-primary:hover { background: var(--ink-blue-hover); }

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

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  will-change: transform, opacity;
}
.shape::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.20), transparent 70%);
}
.shape.blue { background: rgba(45, 82, 160, 0.10); }
.shape.slate { background: rgba(104, 111, 123, 0.07); }

/* faint A-mark motif texture */
.hero-motif {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  color: #fff;
}

.hero-fade {
  position: absolute; left: 0; right: 0; top: 0; height: 160px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  z-index: 2; pointer-events: none;
}

.hero .container { position: relative; z-index: 10; width: 100%; }
.hero-inner { max-width: 760px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
}
.tag .tag-mark { width: auto; height: 11px; color: var(--slate-500); flex-shrink: 0; }
.tag .tag-text {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-500);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-dark);
  margin-top: 28px;
  max-width: 14ch;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-500);
  max-width: 500px;
  margin-top: 24px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.status {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate-500);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.status .dot { color: var(--status-green); margin-right: 8px; }
.status .sep { color: rgba(255,255,255,0.18); margin: 0 12px; }

/* char / word reveal helpers */
.reveal-char, .reveal-word {
  display: inline-block;
  will-change: transform, filter, opacity;
}
.reveal-word { white-space: pre; }
.reveal-wordwrap { display: inline-block; white-space: nowrap; }

/* ============================================================
   PROOF STRIP — marquee
   ============================================================ */
.proof {
  background: var(--ink-strip);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.proof::before, .proof::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none;
}
.proof::before { left: 0; background: linear-gradient(to right, var(--ink-strip), transparent); }
.proof::after { right: 0; background: linear-gradient(to left, var(--ink-strip), transparent); }

.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group .logo {
  display: flex; align-items: center; gap: 9px;
  color: var(--slate-500);
  padding: 0 44px;
  transition: color 0.3s ease;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marquee-group .logo:hover { color: var(--slate-300); }
.marquee-group .logo .glyph { width: 20px; height: 20px; flex-shrink: 0; }
.proof:hover .marquee { animation-play-state: paused; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION: PROBLEM (paper)
   ============================================================ */
.on-light { background: var(--paper); color: var(--text-light); }
.on-light .lede { color: var(--slate-500); }

.sec-head { max-width: 660px; }
.sec-head .eyebrow { display: block; margin-bottom: 22px; }
.sec-head .h2 { margin-bottom: 0; }
.sec-head .lede { margin-top: 20px; max-width: 540px; }

/* centered section header variant */
.sec-head.center { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .h2 { margin-left: auto; margin-right: auto; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.card-light {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 36px 32px;
}
.card-light .icon { width: 24px; height: 24px; color: var(--text-light); }
.card-light h3 { font-size: 18px; font-weight: 600; color: var(--text-light); margin-top: 20px; letter-spacing: -0.01em; }
.card-light p { font-size: 15px; color: var(--slate-500); line-height: 1.6; margin-top: 12px; }

/* ============================================================
   SECTION: SOLUTION (ink) — transparent step cards
   ============================================================ */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.step-card:hover { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.015); }
.step-card .num { font-family: var(--mono); font-size: 12px; color: var(--slate-500); }
.step-card h3 { font-size: 20px; font-weight: 600; color: var(--text-dark); margin-top: 16px; letter-spacing: -0.01em; }
.step-card p { font-size: 15px; color: var(--slate-500); line-height: 1.65; margin-top: 12px; }

/* ============================================================
   SECTION: PRODUCTS (paper)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.05);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 60px rgba(0,0,0,0.08); }
.product-card.primary { border-top: 3px solid var(--ink-blue); }
.product-card .num { font-family: var(--mono); font-size: 13px; color: var(--slate-300); }
.product-card h3 { font-size: 22px; font-weight: 600; color: var(--text-light); margin-top: 14px; letter-spacing: -0.01em; }
.product-card p { font-size: 15px; color: var(--slate-500); line-height: 1.6; margin-top: 14px; }
.product-link {
  font-size: 14px; color: var(--ink-blue); margin-top: 28px; display: inline-flex; align-items: center; gap: 6px;
}
.product-link .arr { transition: transform 0.2s ease; }
.product-card:hover .product-link .arr { transform: translateX(4px); }
.product-card .spacer { flex: 1; }

/* ============================================================
   SECTION: DIFFERENTIALS (ink) — spec table
   ============================================================ */
.spec {
  max-width: 800px;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.spec.center { margin-left: auto; margin-right: auto; margin-top: 72px; }
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.spec-row .spec-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
}
.spec-row .spec-generic { font-size: 15px; color: var(--slate-500); }
.spec-row .spec-altro {
  font-size: 15px;
  color: var(--text-dark);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.spec-row .spec-altro .bdot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-blue); flex-shrink: 0; transform: translateY(-2px);
}
.spec-head-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 24px;
  padding-bottom: 16px;
}
.spec-head-row span { font-family: var(--mono); font-size: 13px; }
.spec-head-row .g { color: var(--slate-500); }
.spec-head-row .a { color: var(--text-dark); }

/* ============================================================
   SECTION: PROCESS (paper) — timeline
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 52px; left: 8%; right: 8%;
  height: 1px;
  background: var(--slate-100);
  z-index: 0;
}
.tl-step { position: relative; z-index: 1; }
.tl-ghost {
  font-size: 80px; font-weight: 700; color: var(--slate-100); line-height: 1; letter-spacing: -0.03em;
}
.tl-num { font-family: var(--mono); font-size: 12px; color: var(--slate-300); margin-top: 20px; }
.tl-title { font-size: 20px; font-weight: 600; color: var(--text-light); margin-top: 8px; letter-spacing: -0.01em; }
.tl-desc { font-size: 15px; color: var(--slate-500); line-height: 1.6; margin-top: 14px; max-width: 320px; }
.tl-deliver { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.tl-deliver .k { font-family: var(--mono); font-size: 12px; color: var(--slate-300); }
.tl-deliver .v { font-size: 14px; color: var(--slate-500); }

/* ============================================================
   SECTION: METRICS (ink)
   ============================================================ */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
}
.metric .val {
  font-size: 56px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric .label { font-size: 14px; color: var(--slate-500); margin-top: 14px; line-height: 1.45; }
.metric .foot { font-family: var(--mono); font-size: 12px; color: var(--slate-500); margin-top: 14px; line-height: 1.5; }
.metrics-attr {
  font-family: var(--mono); font-size: 12px; color: var(--slate-500); text-align: center; margin-top: 36px;
}

/* ============================================================
   FINAL CTA (ink-alt)
   ============================================================ */
.final {
  background: var(--ink-alt);
  padding: 160px 0;
  text-align: center;
}
.final h2 {
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-dark);
  max-width: 16ch;
  margin: 0 auto;
}
.final .sub { font-size: 22px; font-weight: 400; color: var(--slate-500); margin-top: 16px; }
.final .micro { font-family: var(--mono); font-size: 13px; color: var(--slate-500); margin-top: 12px; line-height: 1.6; }
.final-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.final-cta .btn { padding: 15px 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .brand-row { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-row .wordmark { font-size: 18px; font-weight: 600; color: var(--text-dark); }
.foot-brand .desc { font-family: var(--mono); font-size: 12px; color: var(--slate-500); letter-spacing: 0.02em; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--slate-500); margin-bottom: 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: var(--slate-300); padding: 6px 0; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--text-dark); }
.foot-tag { font-style: italic; font-size: 14px; color: var(--slate-500); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-bottom span { font-family: var(--mono); font-size: 12px; color: var(--slate-500); }
.foot-bottom a { font-family: var(--mono); font-size: 12px; color: var(--slate-500); transition: color 0.2s ease; }
.foot-bottom a:hover { color: var(--slate-300); }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 100px 32px 48px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.7,0,0.2,1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-menu .mm-close {
  position: absolute; top: 32px; right: 28px;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--text-dark); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu a.mm-link {
  font-size: 40px; font-weight: 600; color: var(--text-dark); letter-spacing: -0.02em;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.open a.mm-link { opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.4s ease; }
.mobile-menu.open a.mm-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open a.mm-link:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.open a.mm-link:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open a.mm-link:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu .mm-cta { margin-top: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --margin: 48px; }
  .h2, .final h2 { font-size: 42px; }
  .cards-3, .steps-3, .products-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 48px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}

@media (max-width: 720px) {
  :root { --margin: 24px; }
  .section { padding: 80px 0; }
  .final { padding: 100px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav { max-width: 100%; padding: 8px 8px 8px 18px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .h2, .final h2 { font-size: 32px; }
  .cards-3, .steps-3, .products-grid, .metrics-grid { grid-template-columns: 1fr; }
  .spec-row, .spec-head-row { grid-template-columns: 100px 1fr 1fr; gap: 12px; }
  .spec-row .spec-generic, .spec-row .spec-altro { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .status { font-size: 11px; padding: 12px 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .shape { opacity: 1 !important; }
  .marquee { animation: none; }
  .reveal-char, .reveal-word { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--ink-blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: none; }

:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   FINAL CTA — contact line
   ============================================================ */
.contact-line {
  margin-top: 20px;
  text-align: center;
}
.contact-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate-500);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.contact-number:hover { color: var(--slate-300); }

/* ============================================================
   FOOTER — contact link
   ============================================================ */
.foot-contact {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate-300);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}
.foot-contact:hover { color: var(--text-dark); }
