/* Tendance.ai — marketing landing page.
 *
 * Standalone by design: this shares the app's brand tokens by VALUE, not by
 * import. The app ships its own token sheet through a build step; duplicating
 * the handful of values here keeps the landing page a single static drop with
 * no bundler, and means a marketing tweak can never reach production styles.
 * If the brand moves, the source of truth is shared/design-tokens/design-tokens.css.
 */

@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0B0D10;
  --bg-2: #0E1116;
  --panel: #14171B;
  --panel-2: #171B21;
  --text: #F2F5F0;
  --text-2: #A8B0BB;
  --text-3: #6C7684;
  --lime: #CCFF00;
  --lime-deep: #9CC400;
  --red: #E5484D;
  --green: #30C168;
  --hair: rgba(158, 180, 210, 0.12);
  --hair-2: rgba(158, 180, 210, 0.07);

  --display: "Chakra Petch", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Label: the small monospace caps used as section markers, echoing the
   terminal's own column headers so the page feels like the product. */
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.label .dot { color: var(--lime); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1.1em; }

.lime { color: var(--lime); }
.muted { color: var(--text-2); }
.lead { font-size: 1.16rem; color: var(--text-2); max-width: 60ch; }

/* ------------------------------------------------------------- progress -- */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  z-index: 60; pointer-events: none;
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-2);
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.nav a.navlink.active { color: var(--lime); }

/* Icon buttons for X / Telegram. Inline SVG so the page still makes zero
   external requests — no icon font, no CDN, nothing to block. */
.social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 3px; border: 1px solid var(--hair-2); color: var(--text-2); transition: color .15s ease, border-color .15s ease; }
.social:hover { color: var(--lime); border-color: var(--lime); }
.social svg { width: 15px; height: 15px; fill: currentColor; display: block; }
@media (max-width: 560px) { .nav .social { display: none; } }
.nav-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand b { font-family: var(--display); font-size: 1.06rem; letter-spacing: 0.02em; }
.brand b i { font-style: normal; color: var(--lime); }
.nav a.navlink { color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a.navlink:hover { color: var(--text); }
@media (max-width: 800px) { .nav a.navlink { display: none; } }
/* Below ~430px the brand lockup and a full-size CTA collide. Shrink the nav
   button only — the hero keeps the full-size primary CTA a few hundred pixels
   down, so nothing is lost by making this one compact. */
@media (max-width: 430px) {
  .nav-in { gap: 12px; }
  .nav .btn { padding: 9px 13px; font-size: 0.85rem; }
  .brand b { font-size: 0.95rem; }
}

/* --------------------------------------------------------------- button -- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--lime); color: #0A0C0E; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(204, 255, 0, .22); }
.btn-ghost { border-color: var(--hair); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------------------------------------------------------------- hero --- */

.hero { position: relative; padding: clamp(70px, 11vw, 130px) 0 0; overflow: hidden; }
/* Single soft lime bloom behind the headline — the only "glow" on the page.
   Pointer-events off so it can never eat a click on the CTA. */
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  top: -280px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 620px;
  background: radial-gradient(closest-side, rgba(204,255,0,.11), transparent 72%);
}
/* Faint terminal grid behind the hero. Fades out before the screenshot so it
   never competes with the product UI underneath it. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hair-2) 1px, transparent 1px), linear-gradient(90deg, var(--hair-2) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 62%);
}
.hero-in { position: relative; z-index: 1; }

/* Honest facts about the product, not a fake live ticker — every number here
   is a fixed property of how it works, so nothing goes stale or pretends to
   be streaming. */
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.hero-stats div { flex: 1 1 auto; min-width: 128px; padding: 18px 22px 16px 0; }
.hero-stats b { display: block; font-family: var(--display); font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; }
.hero-stats span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.hero-stats .lime { color: var(--lime); }
.hero h1 { max-width: 17ch; margin: 20px 0 0; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { margin-top: 24px; font-size: 1.22rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; align-items: center; }
.hero-note { font-family: var(--mono); font-size: 0.76rem; color: var(--text-3); margin-top: 16px; }

/* Hero screenshot: cropped to a fixed height so the fold shows the product
   immediately rather than a full-page thumbnail scaled into illegibility. */
.hero-shot {
  margin-top: clamp(46px, 6vw, 72px);
  border: 1px solid var(--hair); border-radius: 8px 8px 0 0;
  border-bottom: 0; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 -1px 0 rgba(204,255,0,.16), 0 40px 120px rgba(0,0,0,.6);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--hair-2); background: var(--panel-2);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B313A; display: block; }
.shot-bar span { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); margin-left: 8px; }
.hero-shot .clip { max-height: 560px; overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------- sections -- */

section { padding: clamp(72px, 10vw, 122px) 0; }
.sec-head { max-width: 62ch; }
.sec-head h2 { margin: 16px 0 20px; }

.rule { height: 1px; background: var(--hair-2); }

/* --------------------------------------------------------------- noise --- */

/* The problem section. The claim strip is decorative but deliberately styled
   like real bad content — it has to feel like the thing being criticised for
   the contrast with the product screenshots to land. */
.problem { background: var(--bg-2); border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }

.noise { display: flex; gap: 12px; margin: 0 0 46px; padding: 4px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.noise-track { display: flex; gap: 12px; animation: drift 44s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .noise-track { animation: none; } }
.claim {
  flex: none; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hair-2); border-radius: 4px; background: var(--panel);
  padding: 10px 15px; font-size: 0.92rem; color: var(--text-2); white-space: nowrap;
}
.claim b { color: var(--text); font-weight: 600; }
.claim .k { font-family: var(--mono); font-size: 0.7rem; color: var(--red); letter-spacing: .08em; }

.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-grid p { color: var(--text-2); }
.problem-grid .kicker { color: var(--text); font-size: 1.24rem; font-weight: 600; line-height: 1.45; }

.verdict { border-left: 2px solid var(--lime); padding: 4px 0 4px 24px; margin-top: 38px; }
.verdict .big { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.verdict p { margin: 14px 0 0; color: var(--text-2); }

/* ---------------------------------------------------------------- proof -- */

/* Stats beside the explanation, with the wide scanner crop spanning the full
   column below — the crop is 1720x725, so a narrow column would shrink the
   WHY REJECTED text past the point of being readable, and that text is the
   entire argument of this section. */
.proof-split { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 62px); align-items: start; margin-top: 44px; }
@media (max-width: 900px) { .proof-split { grid-template-columns: 1fr; } }
.proof-split .gate { display: inline-block; vertical-align: baseline; }

.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin: 0; }
.stat b { display: block; font-family: var(--display); font-size: 2.7rem; line-height: 1; letter-spacing: -.02em; }
.stat span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.stat.zero b { color: var(--lime); }

.frame { border: 1px solid var(--hair); border-radius: 7px; overflow: hidden; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.5); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.feat .frame:hover { transform: translateY(-3px); border-color: rgba(204,255,0,.28); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { .frame { transition: none; } .feat .frame:hover { transform: none; } }
.frame img { display: block; width: 100%; height: auto; }
.frame .clip { overflow: hidden; }
.cap { font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); margin-top: 12px; line-height: 1.55; }

/* ------------------------------------------------------------- features -- */

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 54px); align-items: center; margin-top: 84px; }
.feat:first-of-type { margin-top: 0; }
.feat.flip .feat-txt { order: 2; }
@media (max-width: 940px) {
  .feat, .feat.flip { grid-template-columns: 1fr; }
  .feat.flip .feat-txt { order: 0; }
}
.feat-txt h3 { margin: 14px 0 12px; font-size: 1.5rem; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.feat-txt p { color: var(--text-2); margin-bottom: 0; }
.feat-txt .clip-h { max-height: none; }

/* gate chips — reused from the product as an explanatory motif */
.gates { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 18px; }
.gate {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  padding: 3px 7px; border-radius: 2px; border: 1px solid;
}
.gate.pass { color: var(--green); border-color: rgba(48,193,104,.35); background: rgba(48,193,104,.08); }
.gate.fail { color: var(--red); border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.08); }

/* --------------------------------------------------------------- refuse -- */

.refuse { background: var(--bg-2); border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.refuse-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1px; background: var(--hair-2); border: 1px solid var(--hair-2); margin-top: 44px; }
.refuse-item { background: var(--bg-2); padding: 28px 26px; }
.refuse-item .no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.refuse-item h3 { margin: 12px 0 9px; }
.refuse-item p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ----------------------------------------------------------------- how --- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; margin-top: 48px; }
.step { border: 1px solid var(--hair-2); border-radius: 5px; padding: 28px 25px; background: var(--panel); }
.step .n { font-family: var(--mono); font-size: 0.74rem; color: var(--lime); letter-spacing: .1em; }
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------- token --- */

.token { border: 1px solid var(--hair); border-radius: 6px; padding: clamp(30px, 4vw, 46px); background: var(--panel); display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
@media (max-width: 860px) { .token { grid-template-columns: 1fr; } }
.token h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin: 14px 0 12px; }
.token p { color: var(--text-2); margin: 0; max-width: 58ch; }

/* Contract address. Until the token ships this shows an explicit unset state —
   never a plausible-looking hex string. A dummy address on a crypto landing
   page is a live hazard: someone copies it and sends funds, or a scammer
   screenshots it as "confirmation" of their own fake. The copy button stays
   disabled until `.ca.live` is set, so the page cannot hand out a bad address. */
.ca { margin-top: 26px; border: 1px solid var(--hair); border-radius: 5px; background: var(--bg); overflow: hidden; }
.ca-head { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--hair-2); background: var(--panel-2); }
.ca-head .label { font-size: 0.68rem; }
.ca-head .pill { margin-left: auto; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--hair); border-radius: 2px; padding: 3px 8px; }
.ca.live .ca-head .pill { color: var(--lime); border-color: rgba(204,255,0,.4); }
.ca-body { display: flex; align-items: center; gap: 14px; padding: 15px; }
.ca-body code { font-family: var(--mono); font-size: 0.9rem; color: var(--text-3); word-break: break-all; flex: 1; }
.ca.live .ca-body code { color: var(--text); }
.ca-copy { flex: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 13px; border-radius: 2px; border: 1px solid var(--hair); background: none; color: var(--text-3); cursor: not-allowed; }
.ca.live .ca-copy { color: var(--text); cursor: pointer; }
.ca.live .ca-copy:hover { border-color: var(--lime); color: var(--lime); }
.ca-warn { display: flex; gap: 9px; padding: 12px 15px; border-top: 1px solid var(--hair-2); background: rgba(229,72,77,.05); font-size: 0.85rem; color: var(--text-2); line-height: 1.55; }
.ca-warn b { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------- socials -- */

.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--hair); border-radius: 3px; text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 500; transition: border-color .15s ease, color .15s ease; }
.social-btn:hover { border-color: var(--lime); color: var(--lime); }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; }
.social-btn i { font-style: normal; color: var(--text-3); font-family: var(--mono); font-size: 0.78rem; }
.social-btn:hover i { color: inherit; }

/* ----------------------------------------------------------------- cta --- */

.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin: 18px auto 22px; }
.cta .lead { margin: 0 auto; }
.cta .hero-cta { justify-content: center; }

/* -------------------------------------------------------------- footer --- */

footer { border-top: 1px solid var(--hair-2); padding: 46px 0 60px; }
.foot-in { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; }
.foot-in .brand { margin-right: auto; }
footer a { color: var(--text-3); text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--text); }
.disclaimer { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hair-2); color: var(--text-3); font-size: 0.83rem; line-height: 1.7; max-width: 90ch; }

/* --------------------------------------------------------------- reveal -- */

.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ================================================================
   /launch/ — the staged launch-day access & pricing page. These rules
   are additive and unused by the main page. */
.prep {
  background: rgba(204, 255, 0, 0.09);
  border-bottom: 1px solid rgba(204, 255, 0, 0.25);
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.prep b { color: var(--lime); font-family: var(--mono); font-size: 0.8rem; letter-spacing: .06em; }
.prep a { color: var(--lime); }

.lp-hero { padding-bottom: 26px; }

.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 44px; align-items: start; }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-grid .kicker { color: var(--text); font-size: 1.18rem; font-weight: 600; line-height: 1.45; margin-top: 0; }
.lp-fine { color: var(--text-3); font-size: 0.86rem; line-height: 1.55; }

.pt { width: 100%; border-collapse: collapse; margin: 18px 0 10px; font-size: 0.95rem; }
.pt th {
  text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: .08em; color: var(--text-3); text-transform: uppercase;
  padding: 8px 12px; border-bottom: 1px solid var(--hair);
}
.pt td { padding: 12px; border-bottom: 1px solid var(--hair-2); color: var(--text-2); }
.pt td:first-child { color: var(--text); font-weight: 600; }
.pt-n { font-family: var(--mono); color: var(--lime); white-space: nowrap; }
.pt-live { color: var(--green); font-size: 0.85rem; }
.pt-soon td { opacity: 0.55; }

.commit {
  border: 1px solid rgba(204, 255, 0, 0.3); border-radius: 6px;
  background: linear-gradient(rgba(204, 255, 0, 0.04), rgba(204, 255, 0, 0.04)), var(--panel);
  padding: clamp(30px, 4vw, 48px);
}
.commit h2 { margin-top: 10px; }
.commit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 46px); margin-top: 30px; }
@media (max-width: 720px) { .commit-grid { grid-template-columns: 1fr; } }
.commit-grid .n {
  font-family: var(--mono); color: var(--bg); background: var(--lime);
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.commit-grid h3 { margin: 14px 0 8px; }
.commit-grid p { color: var(--text-2); margin: 0; }

.lp-shot { margin: 26px 0 0; max-width: 460px; }
.lp-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--hair); border-radius: 8px;
  background: var(--panel);
}
.lp-shot figcaption {
  margin-top: 10px; color: var(--text-3); font-size: 0.8rem; line-height: 1.5;
}
