/* ==========================================================================
   EVA — global landing (EN / USD / Paddle)
   Direction: BLUEPRINT. Technical grid, real product UI, thin annotation
   lines, amber as the highlighter. Palette taken from the app itself
   (frontend/app.css): the sky scale plus slate ink, amber and green.
   Self-contained: no CDN, no webfont host, no tracker, no external request.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS — self-hosted variable woff2, latin subset (SIL OFL 1.1)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The app's own caption fonts, copied from eva-7.7.7-build/assets/fonts.
   The caption previews must use the same typeface the render uses, otherwise
   the page shows a style the customer will never get.
   NOT included: TikTok Sans / TikTok Display. They are proprietary and
   bundling them in a public page is a different risk from bundling them in a
   desktop build. TikTok Font falls back to Arial Black here. */
@font-face {
  font-family: 'EVA Momentum';
  src: url('fonts/eva_momentum.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'EVA Impact';
  src: url('fonts/eva_impact.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'EVA Trail';
  src: url('fonts/eva_trail.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   TOKENS — the app's own palette
   -------------------------------------------------------------------------- */
:root {
  /* sky scale, straight from frontend/app.css */
  --s50:  #f0f9ff;
  --s100: #e0f2fe;
  --s200: #bae6fd;
  --s300: #7dd3fc;
  --s400: #38bdf8;
  --s500: #0ea5e9;
  --s600: #0284c7;
  --s700: #0369a1;
  --s800: #075985;
  --s900: #0c4a6e;

  --ink:   #0b2534;
  --ink-2: #33566b;
  --ink-3: #6b8ea3;
  --ink-4: #9dbccd;

  --paper:    #f4fafe;
  --paper-2:  #eaf5fd;
  --line:     rgba(2, 132, 199, .16);
  --line-2:   rgba(2, 132, 199, .3);

  --amber:   #fbbf24;
  --amber-2: #f59e0b;
  --green:   #22c55e;
  --green-d: #15803d;
  --red:     #ef4444;

  /* deep sections, for the app's own log-panel colour */
  --deep:    #0c2536;
  --deep-2:  #0a1b28;

  --f-display: 'Inter Tight', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --shell: 1240px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);

  --grid: 34px;   /* the blueprint module */

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --sh-1: 0 2px 8px -2px rgba(3, 105, 161, .14);
  --sh-2: 0 14px 34px -14px rgba(3, 105, 161, .36);
  --sh-3: 0 34px 70px -26px rgba(3, 53, 80, .42);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;

  /* `clip` instead of `hidden`: hidden on the root creates a scroll container
     and breaks position: sticky on the topbar. This kills the sideways scroll
     the decorative glows would otherwise create on narrow screens. */
  overflow-x: clip;
}

body {
  position: relative;
  font-family: var(--f-body);
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* `clip`, nao `hidden`, pela mesma razao do html logo acima. `hidden` aqui
     transforma o body em contexto de rolagem e desliga position: sticky de
     tudo que esta dentro dele. */
  overflow-x: clip;
}

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--s600);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: rgba(251, 191, 36, .45); color: var(--ink); }

/* --------------------------------------------------------------------------
   THE BLUEPRINT GRID — the page sits on visible graph paper
   -------------------------------------------------------------------------- */
.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}

/* A soft light behind the fold, so the paper is not flat.
   `fixed`, not `absolute`: an absolute box wider than the viewport extends the
   document and produced 535px of horizontal scroll at 390px wide. */
.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.glow-a {
  top: -14rem; right: -8rem;
  width: 46rem; height: 34rem;
  background: radial-gradient(circle, rgba(56,189,248,.34), transparent 66%);
}
.glow-b {
  top: 42%; left: -14rem;
  width: 38rem; height: 30rem;
  background: radial-gradient(circle, rgba(2,132,199,.2), transparent 68%);
}
.glow-c {
  bottom: 4%; right: -10rem;
  width: 42rem; height: 32rem;
  background: radial-gradient(circle, rgba(251,191,36,.18), transparent 68%);
}

.layer { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   TYPE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.033em;
  text-wrap: balance;
  color: #082331;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.5vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 1.35rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + .5vw, 1.34rem); letter-spacing: -.02em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.02rem, .98rem + .34vw, 1.22rem);
  line-height: 1.58;
  color: var(--ink-2);
}

/* the amber highlighter, the signature of this direction */
.mark {
  position: relative;
  display: inline;
  color: var(--ink);
}
.mark::before {
  content: '';
  position: absolute;
  left: -.14em; right: -.14em;
  top: .12em; bottom: .1em;
  z-index: -1;
  background: var(--amber);
  opacity: .5;
  transform: rotate(-.5deg);
  border-radius: 2px;
}
.mark-blue::before { background: var(--s300); opacity: .55; }

/* the technical stamp */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--f-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--s700);
  padding: .38em .78em;
  border: 1px solid var(--s400);
  border-radius: 3px;
  background: rgba(224, 242, 254, .75);
}
.stamp i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  flex: none;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--s700);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--s500);
  flex: none;
}
.eyebrow.center { justify-content: center; }

.num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.04em;
}
.mono { font-family: var(--f-mono); }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.shell { width: min(100% - (var(--gut) * 2), var(--shell)); margin-inline: auto; }
.shell-narrow { width: min(100% - (var(--gut) * 2), 900px); margin-inline: auto; }

section { position: relative; padding-block: var(--sec-y); }

.stack-sm > * + * { margin-top: .7rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: clamp(1.75rem, 4vw, 3rem); }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.center { text-align: center; }
.sec-head { max-width: 44rem; }
.sec-head.center { margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* section rule with a technical index, like a drawing sheet */
.sheet-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sheet-rule b { color: var(--s700); font-weight: 500; }
.sheet-rule .spacer { flex: 1; border-top: 1px dashed var(--line-2); }

/* --------------------------------------------------------------------------
   SURFACES
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
}
.card-flat {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-deep {
  background: linear-gradient(180deg, var(--deep), var(--deep-2));
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: var(--r-lg);
  color: #cfe9f8;
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  box-shadow: var(--sh-3);
}
.card-deep h2, .card-deep h3 { color: #fff; }
.card-deep .lede { color: #9dc3d9; }

/* --------------------------------------------------------------------------
   BUTTONS — the app's own gel, squared off for the blueprint
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1em 1.9em;
  border-radius: 9px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  transition: transform .16s var(--ease), box-shadow .24s var(--ease),
    background-color .24s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.988); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--s400) 0%, var(--s500) 46%, var(--s700) 100%);
  border: 1px solid rgba(255, 255, 255, .5);
  text-shadow: 0 1px 2px rgba(2, 60, 90, .4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 5px rgba(2, 132, 199, .35),
    0 12px 26px -10px rgba(14, 165, 233, .7);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--s300) 0%, var(--s400) 46%, var(--s600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 16px 32px -10px rgba(14, 165, 233, .78);
}

.btn-amber {
  color: #3a2708;
  background: linear-gradient(180deg, #ffe082 0%, var(--amber) 52%, var(--amber-2) 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 12px 26px -10px rgba(245, 158, 11, .6);
}
.btn-amber:hover { background: linear-gradient(180deg, #fff1b8 0%, #ffd34d 52%, var(--amber) 100%); }

.btn-ghost {
  color: var(--s800);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--s300);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover { background: #fff; border-color: var(--s400); }

.btn-lg { padding: 1.1em 2.3em; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }

.card-deep .btn-ghost {
  background: rgba(125, 211, 252, .1);
  border-color: rgba(125, 211, 252, .32);
  color: #d7eefb;
}
.card-deep .btn-ghost:hover { background: rgba(125, 211, 252, .18); }

/* --------------------------------------------------------------------------
   CHIPS
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .42em .82em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--s800);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--s200);
}
.chip-amber {
  background: linear-gradient(180deg, #fff3c4, #fde68a);
  border-color: #fcd34d;
  color: #7c3d02;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* --------------------------------------------------------------------------
   ANNOTATIONS — thin leader lines pointing at the real UI
   -------------------------------------------------------------------------- */
.annot {
  position: absolute;
  z-index: 6;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .02em;
  color: var(--s800);
  background: rgba(255, 255, 255, .96);
  padding: .34rem .6rem;
  border: 1px solid var(--s300);
  border-radius: 4px;
  box-shadow: var(--sh-2);
  white-space: nowrap;
  pointer-events: none;
}
.annot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: var(--s500);
}
.annot::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--s500);
}
.annot-l::after { right: -34px; }
.annot-l::before { right: -36px; }
.annot-r::after { left: -34px; }
.annot-r::before { left: -36px; }

@media (max-width: 1100px) { .annot { display: none; } }

/* --------------------------------------------------------------------------
   MOTION — native scroll-driven first, IntersectionObserver as fallback
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wipe-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.reveal { opacity: 0; will-change: transform, opacity; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 3% cover 24%;
  }
  .stagger > * {
    opacity: 0;
    animation: rise-sm linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 22%;
  }
  .stagger > *:nth-child(2) { animation-range: entry 5% cover 25%; }
  .stagger > *:nth-child(3) { animation-range: entry 8% cover 28%; }
  .stagger > *:nth-child(4) { animation-range: entry 11% cover 31%; }
  .stagger > *:nth-child(5) { animation-range: entry 14% cover 34%; }
  .stagger > *:nth-child(6) { animation-range: entry 17% cover 37%; }
  .stagger > *:nth-child(n+7) { animation-range: entry 20% cover 40%; }
  .scrub-x {
    transform-origin: left center;
    animation: wipe-x linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 66%;
  }
  .scrub-y {
    transform-origin: top center;
    animation: fill-y linear both;
    animation-timeline: view();
    animation-range: entry 26% cover 62%;
  }
}

@supports not (animation-timeline: view()) {
  .reveal, .stagger > * {
    transition: opacity .66s var(--ease), transform .66s var(--ease);
    transform: translateY(20px);
  }
  .stagger > * { opacity: 0; }
  .reveal.in, .stagger.in > * { opacity: 1; transform: none; }
  .stagger.in > *:nth-child(2) { transition-delay: .06s; }
  .stagger.in > *:nth-child(3) { transition-delay: .12s; }
  .stagger.in > *:nth-child(4) { transition-delay: .18s; }
  .stagger.in > *:nth-child(5) { transition-delay: .24s; }
  .stagger.in > *:nth-child(6) { transition-delay: .3s; }
  .stagger.in > *:nth-child(n+7) { transition-delay: .36s; }
  .scrub-x { transform: scaleX(0); transform-origin: left center; }
  .scrub-y { transform: scaleY(0); transform-origin: top center; }
  .scrub-x.in { transform: scaleX(1); transition: transform 1s var(--ease); }
  .scrub-y.in { transform: scaleY(1); transition: transform 1s var(--ease); }
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 250, 254, .84);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
/* A logo REAL do app (a esfera aqua com os peixes), nao um circulo
   desenhado em CSS. Fonte: _assets/eva_logo_v2_264.png. */
.brand-mark {
  width: 34px; height: 31px;
  flex: none;
  background: url('logo-eva.png') center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(3, 105, 161, .35));
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.06; }
.brand-txt b { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-txt span {
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .8rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color .18s, color .18s;
}
.nav-links a:hover { background: rgba(14, 165, 233, .1); color: var(--s700); }
.nav-cta { padding: .7em 1.2em; font-size: .74rem; }
@media (max-width: 880px) { .nav-links a:not(.nav-keep) { display: none; } }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding-block: 1.6rem 2rem;
  border-top: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .6);
  font-size: .85rem;
  color: var(--ink-2);
}
.site-footer a { color: var(--s700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--s300); }
.site-footer a:hover { text-decoration-color: currentColor; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-left: auto; }

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .scrub-x { transform: scaleX(1) !important; }
  .scrub-y { transform: scaleY(1) !important; }
  .btn:hover { transform: none !important; }
}
