@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/libre-franklin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f8f8f5;
  --muted: #a7a7a2;
  --line: rgba(255, 255, 255, .14);
  --panel: #111210;
  --panel-2: #171816;
  --accent: #1648ff;
  --paper: #f1f0e9;
  --black: #080907;
  --radius: 10px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: white; color: black; padding: 12px 16px; }
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(8, 9, 7, .88); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 560; letter-spacing: -.015em; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: #d5d5d0; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 560; font-size: 14px; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button.primary { background: var(--paper); border-color: var(--paper); color: var(--black); }
.button.secondary { background: transparent; color: white; }
.button.primary:hover, .button.primary:focus-visible { background: white; border-color: white; }
.button.secondary:hover, .button.secondary:focus-visible { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); }
.button:focus-visible, .carousel-button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.eyebrow { color: #bfc6ff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero { min-height: 770px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; padding: 92px 0 72px; overflow: hidden; }
.hero h1 { max-width: 760px; margin: 20px 0 22px; font-size: clamp(52px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; font-weight: 520; }
.hero .lede { max-width: 650px; color: #c2c2bd; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.proof span::before { content: "✓"; margin-right: 7px; color: white; }
.device-stage { position: relative; min-height: 620px; }
.device-glow { position: absolute; inset: 14% -10% 6% 4%; background: radial-gradient(circle at 50% 40%, rgba(22, 72, 255, .46), transparent 64%); filter: blur(18px); }
.phone { position: absolute; width: min(310px, 68vw); border: 9px solid #272824; border-radius: 48px; background: #000; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .62); }
.phone img { width: 100%; }
.phone.one { right: 0; top: 0; transform: rotate(2.5deg); z-index: 2; }
.phone.two { left: 0; top: 110px; transform: rotate(-5deg) scale(.88); opacity: .9; }
.logo-fallback { height: 590px; display: grid; place-items: center; background: linear-gradient(150deg, #1648ff, #0825a4); }
.logo-fallback img { width: 160px; border-radius: 36px; }
.band { border-block: 1px solid var(--line); background: #0d0e0c; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise { min-height: 164px; display: grid; grid-template-columns: 32px 1fr; align-content: center; gap: 14px; padding: 28px 22px; border-right: 1px solid var(--line); }
.promise:last-child { border-right: 0; }
.promise strong { display: block; margin-bottom: 6px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.promise span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #bfc6ff; }
.icon-large { width: 34px; height: 34px; }
.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section h2 { max-width: 720px; margin: 12px 0 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.042em; font-weight: 520; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 28px; }
.card .number { color: #93938d; font-size: 13px; }
.card h3 { margin: 20px 0 10px; font-size: 22px; font-weight: 540; letter-spacing: -.02em; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding-left: 18px; }
.advantage-grid .card { min-height: 286px; display: flex; flex-direction: column; align-items: flex-start; }
.advantage-grid .card .number { margin-top: 28px; }
.journey-showcase { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0d0e0c; }
.story-actions { display: flex; gap: 8px; }
.carousel-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: white; cursor: pointer; font-size: 21px; transition: background-color .18s ease, border-color .18s ease; }
.carousel-button:hover { background: #1c1d1a; border-color: rgba(255,255,255,.32); }
.carousel-button:disabled { opacity: .36; cursor: default; background: var(--panel); border-color: var(--line); }
.screen-stories { height: 570px; display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.screen-stories::-webkit-scrollbar { display: none; }
.screen-story { flex: 0 0 100%; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; padding: 0; background: linear-gradient(135deg, #121310, #0d0e0c); scroll-snap-align: start; scroll-snap-stop: always; }
.screen-copy { max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 56px 60px; }
.story-step { color: #aab4ff; font-size: 12px; font-weight: 650; letter-spacing: .12em; }
.screen-copy h3 { margin: 18px 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.04em; font-weight: 520; }
.screen-copy p { color: var(--muted); font-size: 17px; }
.screen-copy ul { margin: 24px 0 0; padding: 0; list-style: none; color: #d2d2cd; }
.screen-copy li { padding: 8px 0; border-top: 1px solid var(--line); }
.screen-copy li:last-child { border-bottom: 1px solid var(--line); }
.screen-visual { min-width: 0; height: 100%; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; padding: 42px 34px 0; border-left: 1px solid var(--line); background: radial-gradient(circle at 50% 22%, rgba(22,72,255,.22), transparent 54%); }
.screen-device { width: min(100%, 390px); flex: 0 0 auto; margin: 0 auto; padding: 10px; border: 7px solid #2b2c28; border-radius: 45px; background: #080907; box-shadow: 0 32px 80px rgba(0,0,0,.48); }
.screen-device img { width: 100%; border-radius: 30px; }
.screen-device figcaption { padding: 12px 4px 5px; color: var(--muted); font-size: 12px; text-align: center; }
.journey-controls { padding: 20px 28px 24px; border-top: 1px solid var(--line); background: #10110f; }
.journey-control-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; }
.journey-meta { display: flex; align-items: baseline; gap: 14px; }
.journey-meta strong { font-size: 14px; font-weight: 600; }
.journey-meta span { color: var(--muted); font-size: 13px; }
.journey-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.journey-tab { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font: inherit; }
.journey-tab span { display: block; padding: 6px 0 12px; font-size: 14px; }
.journey-tab::after { content: ""; display: block; width: 100%; height: 3px; border-radius: 3px; background: #343530; }
.journey-tab.active { color: white; }
.journey-tab.active::after { background: var(--paper); }
.journey-tab:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.architecture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.architecture article { padding: 34px; background: var(--panel); border-right: 1px solid var(--line); }
.architecture article:last-child { border-right: 0; }
.architecture b { display: block; margin-top: 30px; color: #aab4ff; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.architecture h3 { font-size: 25px; font-weight: 540; margin: 16px 0 8px; }
.architecture p { color: var(--muted); margin: 0; }
.engine-panel { padding: 62px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #f1f0e9 0 52%, #e8e7df 100%); color: var(--black); }
.engine-copy { max-width: 820px; }
.engine-copy .eyebrow { margin-top: 32px; color: #4857a4; }
.engine-copy h2 { max-width: 850px; }
.engine-copy > p { max-width: 760px; margin: 24px 0 0; color: #484942; font-size: 18px; }
.engine-copy .button.primary { background: var(--black); border-color: var(--black); color: white; }
.engine-copy .button.primary:hover, .engine-copy .button.primary:focus-visible { background: #1b1c19; border-color: #1b1c19; }
.engine-copy .button.secondary { border-color: rgba(8,9,7,.25); color: var(--black); }
.engine-copy .button.secondary:hover, .engine-copy .button.secondary:focus-visible { background: rgba(8,9,7,.06); border-color: rgba(8,9,7,.45); }
.engine-copy .button:focus-visible, .processwire-mark:focus-visible { outline-color: var(--black); }
.processwire-mark { display: inline-flex; align-items: center; gap: 11px; color: var(--black); font-size: 14px; font-weight: 560; text-decoration: none; }
.processwire-mark span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(8,9,7,.28); border-radius: 6px; background: white; }
.processwire-mark img { width: 23px; height: 23px; }
.engine-ecosystem { display: grid; grid-template-columns: 1fr 90px 1.14fr 90px 1fr; align-items: center; gap: 0; margin-top: 52px; }
.ecosystem-card { min-height: 290px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid rgba(8,9,7,.18); border-radius: 8px; background: rgba(255,255,255,.48); }
.ecosystem-card.featured { min-height: 326px; justify-content: center; background: var(--black); color: white; border-color: var(--black); box-shadow: 0 22px 56px rgba(8,9,7,.18); }
.ecosystem-logo { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 44px; border: 1px solid rgba(8,9,7,.18); border-radius: 8px; background: white; }
.ecosystem-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.ecosystem-logo.mercato-logo { background: #1648ff; border-color: #1648ff; }
.ecosystem-logo.mercato-logo img { width: 100%; height: 100%; border-radius: 7px; }
.ecosystem-logo.module-logo { background: #171816; border-color: rgba(255,255,255,.2); }
.ecosystem-logo.module-logo .icon { width: 27px; height: 27px; color: white; }
.ecosystem-card > span { display: block; margin-bottom: 10px; color: #676860; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.ecosystem-card.featured > span { color: #aab4ff; }
.ecosystem-card strong { display: block; font-size: 24px; font-weight: 560; letter-spacing: -.025em; }
.ecosystem-card p { margin: 10px 0 0; color: #5f6059; font-size: 14px; }
.ecosystem-card.featured p { color: #b8b8b2; }
.ecosystem-card a { display: inline-block; margin-top: 24px; color: white; font-size: 13px; text-underline-offset: 4px; }
.ecosystem-connector { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #696a62; }
.ecosystem-connector i { width: 100%; height: 1px; background: rgba(8,9,7,.24); }
.ecosystem-connector b { padding: 8px 4px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.engine-note { margin: 22px 0 0; color: #63645d; font-size: 13px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-panel { min-height: 470px; position: relative; overflow: hidden; padding: 40px; border-radius: var(--radius); background: var(--paper); color: var(--black); }
.feature-panel.dark { background: var(--panel-2); color: white; border: 1px solid var(--line); }
.feature-panel h3 { max-width: 470px; font-size: clamp(32px, 4vw, 50px); font-weight: 520; line-height: 1.05; letter-spacing: -.038em; margin: 0 0 18px; }
.feature-panel p { max-width: 530px; opacity: .72; }
.product-stack { position: absolute; inset: auto -40px -60px 22%; display: flex; }
.product-stack img { width: 38%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 6px solid var(--paper); margin-left: -12%; }
.cta { text-align: center; padding: 110px 20px; border-block: 1px solid var(--line); background: linear-gradient(180deg, #0f172f, #080907 80%); }
.cta h2 { max-width: 900px; margin: 0 auto 20px; font-size: clamp(42px, 6vw, 72px); font-weight: 520; line-height: 1.02; letter-spacing: -.045em; }
.cta p { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.cta .actions { justify-content: center; }
.site-footer { padding: 76px 0 34px; }
.footer-intro { padding-bottom: 54px; }
.footer-intro .brand { margin-bottom: 24px; }
.footer-intro p { margin: 0; max-width: 620px; font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.04em; font-weight: 520; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px; padding: 40px 0 46px; border-top: 1px solid var(--line); }
.footer-grid h3 { margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: white; }
.footer-grid a { display: block; width: fit-content; margin: 14px 0; color: var(--muted); text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: white; }
.footer-support { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.footer-support a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-support a span { font-weight: 560; }
.footer-support a b { font-weight: 400; }
.footer-support p { margin: 0; color: var(--muted); font-size: 13px; }
.copyright { padding-top: 28px; color: #85857f; font-size: 13px; display: flex; justify-content: space-between; gap: 24px; }
.copyright a { color: #d5d5d0; text-decoration: none; }
.footer-disclaimer { margin: 24px 0 0; color: #656660; font-size: 12px; }
.legal-hero { padding: 95px 0 48px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 850px; margin: 12px 0 20px; font-size: clamp(44px, 7vw, 74px); font-weight: 520; line-height: 1.02; letter-spacing: -.045em; }
.legal-hero p { max-width: 740px; color: var(--muted); font-size: 19px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 70px; padding: 68px 0 110px; }
.legal-nav { position: sticky; top: 110px; align-self: start; }
.legal-nav a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-content h2 { margin: 54px 0 14px; font-size: 28px; letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 30px 0 10px; font-size: 19px; }
.legal-content p, .legal-content li { color: #c2c2bd; }
.legal-content li { margin: 8px 0; }
.notice { margin: 30px 0; padding: 20px; border-left: 3px solid #748bff; background: #12172a; color: #dfe3ff; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 24px 52px; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: white; }
code { padding: 2px 6px; border-radius: 4px; background: #1a1b18; color: #dbe0ff; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .device-stage { min-height: 650px; width: min(100%, 590px); margin: 0 auto; }
  .section-head, .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .grid-3, .architecture { grid-template-columns: 1fr; }
  .screen-stories { height: 540px; }
  .screen-copy { padding: 38px 32px; }
  .screen-copy h3 { font-size: clamp(32px, 5vw, 44px); }
  .screen-visual { padding: 34px 24px 0; }
  .screen-device { width: min(100%, 320px); }
  .architecture article { border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture article:last-child { border-bottom: 0; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise:nth-child(2) { border-right: 0; }
  .promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .engine-panel { padding: 42px; }
  .engine-ecosystem { grid-template-columns: 1fr; }
  .ecosystem-card, .ecosystem-card.featured { min-height: 0; }
  .ecosystem-connector { grid-template-columns: 1fr; justify-items: center; min-height: 74px; }
  .ecosystem-connector i { width: 1px; height: 18px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; padding-top: 56px; }
  .hero h1 { font-size: 50px; }
  .device-stage { min-height: 520px; }
  .phone { width: 245px; border-width: 7px; border-radius: 39px; }
  .phone.two { top: 95px; }
  .logo-fallback { height: 465px; }
  .section { padding: 76px 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .promise:last-child { border-bottom: 0; }
  .feature-panel { min-height: 410px; padding: 28px; }
  .screen-stories { height: auto; }
  .screen-story { grid-template-columns: 1fr; min-height: 0; }
  .screen-copy { padding: 30px 22px 36px; }
  .screen-copy h3 { font-size: 36px; }
  .screen-visual { height: 420px; order: -1; padding: 28px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .screen-device { width: min(100%, 310px); border-width: 6px; border-radius: 38px; }
  .screen-device img { border-radius: 25px; }
  .journey-controls { padding: 16px 18px 20px; }
  .journey-control-row { margin-bottom: 12px; }
  .journey-tabs { grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .journey-tabs::-webkit-scrollbar { display: none; }
  .journey-tab span { font-size: 13px; }
  .engine-panel { padding: 30px 22px; }
  .engine-copy > p { font-size: 16px; }
  .engine-ecosystem { margin-top: 38px; }
  .advantage-grid .card { min-height: 0; }
  .footer-intro { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-support, .copyright { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
