/* Fugentix landing page. One section template, one type scale, the product's own palette. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #060b14; --bg-2: #09111e; --bg-3: #0d1727;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --ink: #eef3fb; --ink-2: #a9b6ca; --ink-3: #6e7e96;
  --cyan: #4cc3ff; --violet: #8b74ff; --teal: #35e0c0; --azure: #6aa2ff; --amber: #f5b941; --red: #ff5a6a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 1200px; --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--w), calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }

/* ── navigation ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 11, 20, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--sans); letter-spacing: .2em; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.links a { transition: color .2s; }
.links a:hover { color: var(--ink); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font: 500 15.5px var(--sans); border: 1px solid var(--line-2); transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn.primary { background: var(--ink); color: #06101c; border-color: var(--ink); }
.btn.primary:hover { background: #fff; box-shadow: 0 8px 30px -10px rgba(76, 195, 255, .7); transform: translateY(-1px); }
.btn.ghost { color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }

/* ── type ── */
.eyebrow, .idx, .label, .k { font: 500 12.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { color: var(--cyan); }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.0; letter-spacing: -.035em; font-weight: 600; max-width: 15ch; margin-top: 22px; text-wrap: balance; }
h1 em, .close h2 em { background: linear-gradient(92deg, var(--cyan), var(--violet) 60%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 4.1vw, 52px); line-height: 1.06; letter-spacing: -.028em; font-weight: 600; max-width: 20ch; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }
.body, .lede { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.idx { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.idx span { color: var(--cyan); }
.idx::after { content: ""; height: 1px; width: 44px; background: var(--line-2); }

/* ── hero ── */
.hero { position: relative; padding: 148px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(139, 116, 255, .22), transparent 62%),
    radial-gradient(760px 420px at 12% 4%, rgba(76, 195, 255, .16), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%); mask-image: linear-gradient(#000 55%, transparent 96%); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta.center { justify-content: center; }
.shot { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #050a13; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
.shot img { width: 100%; }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.shot-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--ink-3); }
.hero-shot { margin-top: 56px; box-shadow: 0 60px 160px -50px rgba(76, 195, 255, .28), 0 40px 120px -40px rgba(0, 0, 0, .9); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.facts li { padding: 22px 28px 0 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts b { display: block; font-weight: 600; font-size: 16.5px; }
.facts span { color: var(--ink-3); font-size: 15px; }

/* ── standards strip ── */
.standards { padding: 34px 0 40px; border-block: 1px solid var(--line); background: var(--bg-2); }
.standards .label { text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chips li { font: 500 13.5px var(--mono); color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02); }

/* ── sections ── */
.sec { padding: 128px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { margin-bottom: 56px; }
.head .body { margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split .body { margin-top: 20px; }
.ticks { margin-top: 24px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-3px); }

/* problem diagram */
.mesh { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.mesh svg { width: 100%; height: auto; }
.mesh p { text-align: center; font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.mesh b { display: block; font: 600 40px var(--sans); letter-spacing: -.03em; }
.mesh .bad { color: var(--red); } .mesh .good { color: var(--teal); }
.mesh-arrow { color: var(--ink-3); font-size: 26px; }

/* platform stack */
.stack { display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 16px; align-items: stretch; }
.layers { display: grid; gap: 16px; }
.layer { --c: var(--cyan); padding: 26px 28px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--bg-3)), var(--bg-3)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 36px; }
.layer header { grid-row: span 2; }
.layer .verb { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.layer h3 { font-size: 25px; margin-top: 6px; color: var(--ink); }
.layer p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.layer ul { display: flex; flex-wrap: wrap; gap: 7px; align-self: end; }
.layer li { font: 12.5px var(--mono); color: var(--ink-2); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.l-cdl { --c: var(--violet); } .l-mdf { --c: var(--azure); }
.pillar { --c: var(--teal); border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--c) 65%, transparent); background: color-mix(in srgb, var(--c) 6%, var(--bg-3)); padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; gap: 0; text-align: center; }
.pillar.sec-p { --c: var(--amber); }
.pillar b { color: var(--c); font-size: 18px; margin-bottom: 12px; }
.pillar span { color: var(--ink-2); font-size: 14.5px; padding: 10px 2px; border-top: 1px solid var(--line); }

/* capability tabs */
.tabs { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 15px 18px; font: 500 15.5px var(--sans); color: var(--ink-3); display: flex; align-items: baseline; gap: 10px; border-right: 1px solid var(--line); transition: color .2s, background .2s; position: relative; }
.tabs button:last-child { border-right: 0; }
.tabs button i { font: 12px var(--mono); font-style: normal; color: var(--ink-3); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: rgba(76, 195, 255, .08); }
.tabs button[aria-selected="true"] i { color: var(--cyan); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.panel { margin-top: 36px; }
.panel[hidden] { display: none; }
.panel.on { animation: panel .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }
.panel-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-bottom: 34px; }
.panel-copy h3 { font-size: 28px; letter-spacing: -.02em; }
.panel-copy p { color: var(--ink-2); margin-top: 12px; max-width: 54ch; }
.panel-copy .ticks { margin-top: 6px; }
.panel .shot img { cursor: zoom-in; }

/* trust bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { grid-column: span 2; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-3); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s; }
.card.wide { grid-column: span 4; }
.bento .card:nth-child(3), .bento .card:nth-child(4) { grid-column: span 3; }
.bento .card:nth-child(5) { grid-column: 1 / -1; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .k { color: var(--cyan); }
.card h3 { font-size: 23px; }
.card p:not(.k) { color: var(--ink-2); font-size: 16px; }
.flow { margin-top: auto; padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.flow span { font: 12.5px var(--mono); color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 8px; }
.flow span.ok { color: #06101c; background: var(--teal); border-color: var(--teal); }
.flow i { width: 18px; height: 1px; background: var(--line-2); }

/* deployment */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.grid4 article { padding: 28px 26px 0 0; }
.grid4 article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.grid4 h3 { font-size: 19px; }
.grid4 p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }

/* closing */
.close { position: relative; padding: 150px 0 140px; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 50% 110%, rgba(76, 195, 255, .2), transparent 65%), radial-gradient(600px 300px at 50% -10%, rgba(139, 116, 255, .14), transparent 65%); }
.close h2 { margin: 18px auto 0; max-width: 18ch; font-size: clamp(34px, 5vw, 66px); }
.close .body { margin: 22px auto 34px; }

.close.notfound { min-height: 100vh; display: grid; place-items: center; border: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14.5px; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .brand { color: var(--ink); font-size: 13.5px; }
.foot .muted { margin-left: auto; }

/* screenshot zoom */
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(3, 6, 12, .94); display: grid; place-items: center; padding: 28px; overflow: auto; cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: none; width: min(2400px, 190vw); border: 1px solid var(--line-2); border-radius: 10px; }
.zoom button { position: fixed; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 16px; cursor: pointer; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .stack { grid-template-columns: 1fr 1fr; }
  .stack .layers { grid-column: 1 / -1; order: -1; }
  .pillar { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; text-align: left; padding: 18px; }
  .pillar b { width: 100%; margin-bottom: 4px; }
  .pillar span { border: 0; padding: 0; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tabs button:nth-child(3) { border-right: 0; }
  .tabs button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .panel-copy { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .card.wide:first-child, .card.wide:last-child { grid-column: 1 / -1; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid4 article { padding: 26px 22px 26px 0; }
  .grid4 article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .grid4 article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .links { display: none; }
  .nav-in { height: 60px; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 112px 0 52px; }
  .hero-row { grid-template-columns: 1fr; gap: 26px; }
  .hero-shot { margin-top: 40px; }
  .shot-bar { height: 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .sec { padding: 84px 0; }
  .head { margin-bottom: 36px; }
  .mesh { padding: 18px; gap: 8px; }
  .mesh b { font-size: 30px; }
  .layer { grid-template-columns: 1fr; padding: 22px; }
  .layer header { grid-row: auto; }
  .layer h3 { font-size: 22px; }
  .stack { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tabs button { padding: 13px 14px; font-size: 15px; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .tabs button:nth-child(even) { border-right: 0 !important; }
  .tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .panel-copy h3 { font-size: 24px; }
  .bento, .grid4 { grid-template-columns: 1fr; }
  .card.wide, .card { grid-column: 1 / -1; padding: 24px; }
  .grid4 article, .grid4 article + article { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .grid4 article:first-child { border-top: 0; }
  .close { padding: 104px 0 96px; }
  .foot .muted { margin-left: 0; }
  .zoom img { width: 260vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .panel.on { animation: none; }
  .btn, .card { transition: none; }
}
