/* AuthGuard — landing (authguard.pt). Same palette and type as the product film. No external requests. */
:root {
  color-scheme: dark;
  --black: #090908; --black-2: #11110f; --black-3: #1a1a17;
  --porcelain: #f2efe7; --dim: #bbb7ac; --graphite: #858179;
  --line: #2a2926; --line-strong: #55524b;
  --signal: #ff3b30; --signal-ink: #ff6a61; --signal-dark: #451510;
  --display: "Aptos Display", "Segoe UI Variable Display", "SF Pro Display", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: "Aptos", "Segoe UI Variable Text", "SF Pro Text", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", ui-monospace, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--porcelain);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.dim { color: var(--graphite); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--signal); color: var(--black); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--black) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.mark { width: 34px; height: 20px; }
.top .main-nav { display: flex; gap: 26px; margin-left: auto; }
.top .main-nav a { white-space: nowrap; text-decoration: none; color: var(--dim); font-size: 15px; transition: color .2s; }
.top .main-nav a:hover { color: var(--porcelain); }
.top .main-nav a[aria-current] { color: var(--porcelain); box-shadow: 0 2px 0 var(--signal); }
.language-switch { display: flex; flex: none; gap: 2px; margin-left: auto; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid transparent; color: var(--dim); text-decoration: none; font: 600 13px/1 var(--mono); }
.language-switch a[aria-current="page"] { border-color: var(--line-strong); color: var(--porcelain); }
.language-switch a:hover { border-color: var(--signal); color: var(--porcelain); }
.top .btn-sm { flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--signal); color: #120403; text-decoration: none; font: 700 16px/1 var(--text);
  border: 1px solid var(--signal); transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--signal); }
.btn-ghost { background: transparent; color: var(--porcelain); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--porcelain); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-big { min-height: 64px; padding: 0 32px; font: 700 clamp(18px, 2.4vw, 26px)/1 var(--mono); margin-top: 36px; }

/* Shared */
section { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 500 13px/1.5 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.rule { width: 46px; height: 2px; background: var(--signal); flex: none; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; margin: 0; }
.h2 { font-size: clamp(36px, 6vw, 84px); }
.hot { color: var(--signal); }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--dim); max-width: 60ch; margin: 26px 0 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .8fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  max-width: none; padding-top: clamp(56px, 8vw, 120px); min-height: calc(100vh - 66px); overflow: hidden;
}
.hero > .hero-copy, .hero > .pf-card { max-width: none; margin: 0; }
.hero::after {
  content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 48, .18), transparent 70%);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 4.5vw, 76px); }
.hero h1 .line { display: block; opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) { animation-delay: .08s; }
.hero h1 .line:nth-child(3) { animation-delay: .22s; }
.hero h1 .line:nth-child(4) { animation-delay: .3s; }
.hero .lead, .hero .cta, .hero .chips { opacity: 0; animation: rise .9s var(--ease) .45s forwards; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation-delay: .55s; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; animation-delay: .65s !important; }
.chips li { font: 500 13px/1 var(--mono); padding: 9px 12px; border: 1px solid var(--signal-dark); background: rgba(69, 21, 16, .45); color: var(--porcelain); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ProofFlow card */
.pf-card {
  position: relative; z-index: 1; padding: 22px; background: linear-gradient(180deg, var(--black-2), var(--black));
  border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(255, 255, 255, .02) inset;
  opacity: 0; transform: translateY(30px) rotate(1.2deg); animation: card 1.1s var(--ease) .35s forwards;
}
@keyframes card { to { opacity: 1; transform: rotate(1.2deg); } }
.pf-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pf-head .dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 59, 48, .18); animation: pulse 1.6s ease-in-out infinite; }
.pf-head .tag { margin-left: auto; font-size: 11px; color: var(--graphite); text-transform: uppercase; letter-spacing: .08em; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } }
.pf-fields { margin: 14px 0 0; display: grid; gap: 0; }
.pf-fields > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pf-fields dt { color: var(--graphite); font-size: 13px; padding-top: 2px; }
.pf-fields dd { margin: 0; }
.pf-match { margin-top: 18px; padding: 16px; background: var(--black); border: 1px solid var(--signal-dark); display: grid; gap: 6px; }
.pf-match .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); }
.pf-match .code { font-size: clamp(40px, 4.6vw, 58px); font-weight: 700; letter-spacing: .06em; line-height: 1; transition: opacity .25s; }
.pf-match .hint { font-size: 12px; color: var(--graphite); }
.pf-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf-steps li {
  font: 500 11.5px/1.3 var(--mono); color: var(--graphite); padding: 9px 8px 8px; border-top: 2px solid var(--line-strong);
  transition: color .3s, border-color .3s;
}
.pf-steps li.on { color: var(--porcelain); border-color: var(--signal); }
.pf-stamp {
  position: absolute; right: 34px; bottom: 150px; padding: 8px 14px; border: 2px solid var(--signal); color: var(--signal);
  font-size: 20px; font-weight: 800; letter-spacing: .18em; transform: rotate(-8deg) scale(1.5); opacity: 0;
  transition: opacity .25s, transform .35s var(--ease); background: rgba(9, 9, 8, .7);
}
.pf-card.done .pf-stamp { opacity: 1; transform: rotate(-8deg) scale(1); }

/* Video */
.frame { position: relative; border: 1px solid var(--line-strong); background: #000; aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; object-fit: contain; }
.frame::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 3px; background: var(--signal); z-index: 1; }

/* Problem */
.problem { padding-top: 0; }
.truths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.truths article { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.truths article:last-child { border-right: 0; }
.truths article + article { padding-left: 28px; }
.truths .n, .flow .n, .cap .n { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); }
.truths p { font: 600 clamp(20px, 2.1vw, 28px)/1.25 var(--display); margin: 14px 0 0; color: var(--dim); }
.truths strong { color: var(--porcelain); }

/* ProofFlow */
.proofflow { background: linear-gradient(180deg, var(--black), var(--black-2) 40%, var(--black)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.flow li { position: relative; padding: 28px 24px 30px 0; border-top: 2px solid var(--line-strong); }
.flow li + li { padding-left: 24px; }
.flow li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--black); border: 2px solid var(--line-strong); transform: rotate(45deg); }
.flow li + li::after { left: 24px; }
.flow li.hot-step { border-top-color: var(--signal); }
.flow li.hot-step::after { border-color: var(--signal); background: var(--signal); }
.flow h3, .cap h3, .pilot h3 { font: 700 clamp(20px, 1.9vw, 25px)/1.15 var(--display); margin: 12px 0 10px; letter-spacing: -.02em; }
.flow p { margin: 0; color: var(--dim); font-size: 16px; }
.engine { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 54px; padding: 22px 24px; border: 1px solid var(--line-strong); background: var(--black); }
.engine .label { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); }
.engine ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; }
.engine li { font-weight: 600; }
.engine li::before { content: "→ "; color: var(--signal); }

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); background: var(--black-2); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); }
thead th { font: 600 13px/1.3 var(--mono); color: var(--dim); vertical-align: bottom; }
tbody th { text-align: left; font-weight: 600; width: 30%; position: sticky; left: 0; background: var(--black-2); }
td { font: 600 16px/1 var(--mono); }
td.y { color: var(--porcelain); }
td.p { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td.n { color: var(--graphite); opacity: .7; }
.us { background: rgba(255, 59, 48, .1); color: var(--signal) !important; }
thead th.us { color: var(--signal); font-weight: 800; border-top: 3px solid var(--signal); }
td.us { font-size: 20px; }
td.us small { display: block; margin-top: 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.foot { font: 400 13px/1.5 var(--mono); color: var(--graphite); margin-top: 16px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--black); padding: 30px 28px 32px; }
.cap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cap li { position: relative; padding-left: 18px; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.cap li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--line-strong); transform: rotate(45deg); }
.cap em { font-style: normal; color: var(--graphite); }
.cap-hot { background: linear-gradient(160deg, rgba(69, 21, 16, .7), var(--black) 70%); }
.cap-hot li::before { background: var(--signal); }
.cap-grid.five > .cap:nth-child(5):last-child { grid-column: span 2; }
.cap p { color: var(--dim); font-size: 15.5px; line-height: 1.5; margin: 0 0 20px; }
.cap-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--porcelain); font-weight: 700; text-decoration: none; }
.cap-link::after { content: "→"; color: var(--signal); transition: transform .25s var(--ease); }
.cap-link:hover::after { transform: translateX(4px); }

/* Pilot */
.pilot { text-align: left; border-top: 1px solid var(--line); }
.pilot-inner { padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line-strong); background:
  radial-gradient(circle at 100% 0, rgba(255, 59, 48, .16), transparent 45%), var(--black-2); }
.pilot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.pilot p { color: var(--dim); margin: 0; }

/* Footer */
.foot-site { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--graphite); }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; }
.foot-row.small { margin-top: 22px; font-size: 13.5px; align-items: flex-start; }
.foot-row.small p { margin: 0; max-width: 70ch; }
.foot-site .brand { color: var(--porcelain); }
.foot-links { max-width: var(--max); margin: 24px auto 0; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid var(--line); }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--porcelain); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot-links svg { width: 20px; height: 20px; flex: 0 0 20px; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--signal); }
.foot-sol { max-width: var(--max); margin: 14px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 14px; }
.foot-sol .label { margin-right: 4px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.foot-sol a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; }
.foot-sol a:hover, .foot-sol a:focus-visible { color: var(--signal); }
.foot-language { margin-left: 4px; font: 500 10px/1 var(--mono); color: var(--graphite); vertical-align: middle; }
.todo { color: #ffd166; }

.soon { display: inline-block; margin-left: 8px; padding: 4px 7px; border: 1px solid var(--signal-dark); background: rgba(69, 21, 16, .45); font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); vertical-align: middle; white-space: nowrap; }
.status-note .soon { margin-left: 0; }
.pillar-nav { display: none; }
.tab-badge { display: inline-block; margin-left: 4px; padding: 3px 5px; border: 1px solid var(--signal-dark); background: rgba(69, 21, 16, .45); font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); vertical-align: 2px; white-space: nowrap; }
.foot-sol .tab-badge { margin-left: 6px; }

/* Scroll reveal (only when JS is on; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .flow .reveal:nth-child(2), .js .truths .reveal:nth-child(2), .js .cap-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .flow .reveal:nth-child(3), .js .truths .reveal:nth-child(3), .js .cap-grid .reveal:nth-child(3n) { transition-delay: .16s; }
.js .flow .reveal:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1240px) {
  .top .main-nav { display: none; }
  .pillar-nav { display: flex; gap: 4px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--black); }
  .pillar-nav::-webkit-scrollbar { display: none; }
  .pillar-nav a { flex: none; display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--dim); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .pillar-nav a:first-child { padding-left: 0; }
  .pillar-nav a[aria-current] { color: var(--porcelain); border-bottom-color: var(--signal); }
  .pillar-nav a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .pf-card { max-width: 560px !important; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .flow li:nth-child(3) { padding-left: 0; }
  .flow li:nth-child(3)::after { left: 0; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid > .cap:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 12px; }
  .truths, .flow, .cap-grid, .pilot-cols { grid-template-columns: 1fr; }
  .cap-grid.five > .cap:nth-child(5):last-child { grid-column: auto; }
  .truths article, .truths article + article { padding: 24px 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li, .flow li + li { padding: 24px 0 26px; }
  .flow li::after, .flow li + li::after { left: 0; }
  .pf-card { transform: none; animation-name: card-flat; }
  .pf-fields > div { grid-template-columns: 104px 1fr; font-size: 14px; }
  .pf-steps { grid-template-columns: 1fr 1fr; }
  .pf-stamp { bottom: 104px; right: 20px; font-size: 16px; }
  .btn-big { font-size: 17px; width: 100%; }
}
@media (max-width: 600px) {
  .top { flex-wrap: wrap; }
  .top .btn-sm { width: 100%; }
}
@keyframes card-flat { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .line, .hero .lead, .hero .cta, .hero .chips, .pf-card { opacity: 1; transform: none; }
}
