/* Folito — concept B. Palette from the Passat Invest logo: petrol #10656F, green #25AF73, sand #E4C662. */
:root {
  --bg: #041A1E;
  --petrol: #10656F;
  --green: #25AF73;
  --green-hi: #3DDC97;
  --sand: #E4C662;
  --ink: #EAF4F1;
  --muted: #8FB0AE;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(7, 28, 32, .82);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
.defs { position: absolute; }
.wm-seg-a { stroke: var(--green); }
.wm-seg-b { stroke: var(--sand); }
b { font-weight: 650; }

/* ───────── background ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-glow-a { width: 760px; height: 760px; right: -180px; top: -240px; background: rgba(16, 101, 111, .55); }
.bg-glow-b { width: 560px; height: 560px; left: -240px; top: 520px; background: rgba(37, 175, 115, .18); }

/* ───────── header ───────── */
.top {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 32px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; color: var(--ink); }
.brand-wordmark { width: 118px; height: 40px; display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 500;
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-hi);
  animation: ping 2.4s ease-out infinite;
}

/* ───────── hero ───────── */
.hero {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 48px 32px 40px;
  min-height: min(780px, calc(100vh - 68px));
  display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 56px; align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-hi);
}
h1 {
  margin: 0; font-size: clamp(46px, 6.6vw, 92px);
  line-height: .98; letter-spacing: -.045em; font-weight: 750;
}
.grad {
  background: linear-gradient(95deg, var(--green-hi) 0%, #8FE6C3 45%, var(--sand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 26px 0 0; max-width: 42ch; font-size: 18.5px; line-height: 1.6; color: var(--muted); }
.works { margin: 22px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.works b { color: var(--ink); font-weight: 600; }

.cta { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.btn {
  display: inline-flex; padding: 13px 20px; border-radius: 12px;
  background: var(--green); color: #03231A; font-size: 15px; font-weight: 650; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(37, 175, 115, .7); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-hi); transform: translateY(-1px); }
.btn[hidden] { display: none; }
.status { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.status-bar { width: 84px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.status-bar span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--petrol), var(--green-hi)); animation: load 2.2s cubic-bezier(.2, .7, .2, 1) both; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ───────── stage: dashboard behind, console in front ───────── */
.stage { position: relative; min-width: 0; height: 600px; perspective: 1800px; }
.stage-glow {
  position: absolute; left: 10%; top: 10%; width: 90%; height: 80%;
  background: radial-gradient(closest-side, rgba(37, 175, 115, .3), transparent); filter: blur(50px);
}
.mock {
  position: absolute; left: 120px; top: 0; width: 860px;
  transform: rotateX(8deg) rotateY(-18deg) rotateZ(2deg); transform-origin: 0 50%;
  border-radius: 18px; opacity: .78;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .85);
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%);
          mask-image: linear-gradient(to right, #000 55%, transparent 98%);
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.mock-svg { display: block; width: 100%; height: auto; }

/* mock parts (same vocabulary as the app) */
.m-t { font-family: var(--font); }
.m-10 { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.m-11 { font-size: 11px; } .m-12 { font-size: 12px; } .m-13 { font-size: 13px; }
.m-14 { font-size: 14px; font-weight: 600; } .m-20 { font-size: 20px; font-weight: 650; } .m-26 { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.m-lbl { font-size: 10.5px; letter-spacing: .09em; fill: #7D8995; font-weight: 600; }
.m-hi { fill: #E6EDF3; } .m-mid { fill: #9AA6B2; } .m-dim { fill: #6B7886; } .m-on { fill: #3DDC97; font-weight: 600; } .m-pos { fill: #3DDC97; }
.m-ai { fill: #CFE3DF; font-weight: 600; }
.m-logo { color: #E6EDF3; }
.m-ic { fill: none; stroke: #7D8995; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.m-ic-on { stroke: #3DDC97; }
.m-card rect, .m-cardr { fill: #121A23; stroke: #1E2A36; }
.m-range rect { fill: #16212B; }
.m-range .m-range-on { fill: rgba(37, 175, 115, .18); }
.m-spark { fill: none; stroke: #3DDC97; stroke-width: 2; stroke-linecap: round; }
.m-line { fill: none; stroke: #3DDC97; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .5s cubic-bezier(.4, 0, .2, 1) forwards; }
.m-area { opacity: 0; animation: fade 1.2s 1.6s ease forwards; }
.m-dot { fill: #3DDC97; stroke: #0B1016; stroke-width: 2; opacity: 0; animation: fade .4s 2.5s ease forwards; }
.m-pulse { fill: #3DDC97; opacity: 0; transform-origin: 708px 332px; animation: pulse 2.6s 2.7s ease-out infinite; }
.m-seg { stroke-dasharray: 0 100; animation: seg 1.1s cubic-bezier(.3, .7, .2, 1) forwards; }
.m-seg1 { --len: 38; animation-delay: .7s; } .m-seg2 { --len: 31; animation-delay: .9s; }
.m-seg3 { --len: 19; animation-delay: 1.1s; } .m-seg4 { --len: 8; animation-delay: 1.3s; } .m-seg5 { --len: 4; animation-delay: 1.4s; }

.hl { fill: rgba(61, 220, 151, .07); stroke: #3DDC97; stroke-width: 2; opacity: 0; transition: opacity .45s ease; }
.hl.on { opacity: 1; }

/* the console — the star of the hero */
.console {
  position: absolute; z-index: 2; left: 0; bottom: 0; margin: 0;
  width: 440px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(37, 175, 115, .6);
  animation: card-in .9s .9s cubic-bezier(.2, .7, .2, 1) both;
}
.c-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.c-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.c-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.c-title b { font-size: 14px; }
.c-title span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.c-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, .28); background: rgba(37, 175, 115, .14);
  font-family: var(--mono); font-size: 11px; color: var(--green-hi);
}
.c-live .dot { width: 6px; height: 6px; }

.c-body { padding: 18px 18px 6px; min-height: 272px; }
.c-q {
  width: fit-content; max-width: 88%; min-height: 1.45em; margin: 0 0 0 auto;
  padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: rgba(255, 255, 255, .09);
  font-size: 14px; line-height: 1.45;
}
.c-tools { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.c-tools li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  animation: fade-up .3s both;
}
.c-tools li::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(61, 220, 151, .25); border-top-color: var(--green-hi);
  animation: spin .7s linear infinite;
}
.c-tools li.done::before {
  border: 0; animation: none;
  background: var(--green-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%2303231A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.c-tools code {
  padding: 2px 8px; border-radius: 6px; color: #9FE9CB;
  border: 1px solid rgba(61, 220, 151, .2); background: rgba(37, 175, 115, .1);
}
.c-ms { margin-left: auto; opacity: 0; transition: opacity .3s; }
.c-tools li.done .c-ms { opacity: .8; }
.c-a { margin: 16px 0 0; min-height: 4.6em; font-size: 14.5px; line-height: 1.6; color: #CFE3DF; }
.c-a b { color: var(--ink); }
.c-a.typing::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--green-hi); animation: blink 1s steps(2) infinite; }

.c-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.c-tabs { display: flex; gap: 6px; }
.c-tab {
  padding: 6px 12px; border-radius: 9px; border: 1px solid transparent; background: transparent;
  font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; transition: color .15s, background .15s;
}
.c-tab:hover { color: var(--ink); }
.c-tab.on { color: var(--green-hi); background: rgba(37, 175, 115, .14); border-color: rgba(61, 220, 151, .25); }
.c-input {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04);
  font-size: 13.5px; color: #6E8A89;
}
.caret { width: 2px; height: 16px; background: var(--green-hi); animation: blink 1s steps(2) infinite; }

/* ───────── tools section ───────── */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.tools { padding: 72px 0 40px; }
h2 {
  margin: 0; max-width: 20ch; font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 720; text-wrap: balance;
}
.sub { margin: 20px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--muted); }

.marquee {
  margin: 52px 0 12px; display: grid; gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.row { overflow: hidden; }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.row.rev .track { animation-direction: reverse; animation-duration: 70s; }
.track code {
  flex: none; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  font-family: var(--mono); font-size: 14px; color: #CFE3DF;
}
.track code::before { content: "read\00a0"; color: var(--green-hi); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.track code.w::before { content: "write\00a0"; color: var(--sand); }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li {
  position: relative; padding: 26px 24px 28px; border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(61, 220, 151, .65), transparent); }
.n { font-family: var(--mono); font-size: 13px; color: var(--green-hi); }
h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ───────── asset classes ───────── */
.span { padding: 64px 0 88px; }
.classes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.classes li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 2px; padding: 22px 22px; background: #06222A; }
.classes svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--green-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.classes b { font-size: 16px; }
.classes span { font-size: 14px; color: var(--muted); }

/* ───────── footer ───────── */
.foot {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 32px 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted);
}
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { border-bottom-color: var(--green-hi); }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .6; }

/* ───────── motion ───────── */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes seg { to { stroke-dasharray: var(--len) calc(100 - var(--len)); } }
@keyframes pulse { 0% { opacity: .5; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes load { from { width: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotateX(8deg) rotateY(-18deg) rotateZ(2deg); } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(5px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 48px; padding-top: 48px; }
  .stage { height: auto; padding-top: 0; }
  .mock { position: relative; left: 0; width: 112%; transform: rotateX(7deg) rotateY(-10deg); transform-origin: 0 0; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) rotateX(7deg) rotateY(-10deg); } }
  .console { position: relative; margin: -150px 0 0 auto; width: min(460px, 100%); }
  .steps, .classes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top { padding: 20px 20px 0; }
  .brand-wordmark { width: 96px; height: 32px; }
  .hero { padding: 36px 20px 48px; }
  .lead { font-size: 16.5px; }
  .mock { width: 150%; }
  .console { margin-top: -90px; }
  .c-body { min-height: 300px; }
  .wrap { padding: 0 20px; }
  .tools { padding-top: 64px; }
  .sub { font-size: 16.5px; }
  .track code { font-size: 12.5px; padding: 8px 13px; }
  .foot { padding: 16px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .m-line { stroke-dashoffset: 0; }
  .m-area, .m-dot { opacity: 1; }
  .m-seg { stroke-dasharray: var(--len) calc(100 - var(--len)); }
  .track { flex-wrap: wrap; width: auto; }
  .track code:nth-child(n+15) { display: none; }
}
