/* Fluxto site — the app's dark palette: graphite, lime assets, peach debts, lavender transfers. */
:root {
  --bg: #0f1012;
  --bg-2: #141518;
  --surface: #1a1b1f;
  --surface-2: #26282c;
  --line: #2a2c31;
  --text: #f2f3f5;
  --muted: #a3a7af;
  --lime: #d4f45a;
  --peach: #ff9e7a;
  --lavender: #8e9bff;
  --on-lime: #12140a;
  --tint-lime: #1f2614;
  --tint-peach: #2b1d17;
  --tint-lavender: #1c1f2e;
  --radius: 28px;
  --radius-s: 16px;
  --max: 1160px;
  --gutter: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 10px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px !important; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 760px) { .nav-links a.opt { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: #e0fa78; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 20px; height: 20px; flex: none; }
.soon { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(212, 244, 90, .14), transparent 70%),
    radial-gradient(30% 40% at 62% 60%, rgba(142, 155, 255, .12), transparent 70%),
    radial-gradient(30% 40% at 92% 70%, rgba(255, 158, 122, .10), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px 6px 8px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.035em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; margin: 20px 0 20px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stack of cards, the app's wallet motif */
.stack { display: grid; gap: 0; margin-top: 40px; max-width: 420px; }
.stack div { display: flex; justify-content: space-between; padding: 14px 18px 26px; margin-bottom: -14px; border-radius: 18px 18px 0 0; color: #15170c; font-weight: 600; font-size: 15px; }
.stack div span:last-child { font-family: var(--font-display); }
.stack .s1 { background: var(--lime); }
.stack .s2 { background: var(--peach); }
.stack .s3 { background: var(--lavender); }
.stack .total { background: var(--surface); color: var(--text); border-radius: 18px; padding: 18px; margin: 0; border: 1px solid var(--line); flex-direction: column; gap: 2px; }
.stack .total small { color: var(--muted); font-weight: 400; font-size: 13px; }
.stack .total b { font: 600 34px/1.1 var(--font-display); letter-spacing: -.03em; }

/* Phones */
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #3a3c42, #17181b 40%, #2a2c31);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone.p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.phone.p2 { left: 0; top: 70px; transform: rotate(-7deg) scale(.86); z-index: 2; opacity: .9; }
.phone.p3 { right: 0; top: 70px; transform: rotate(7deg) scale(.86); z-index: 1; opacity: .9; }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof div { padding: 28px 8px; text-align: center; }
.proof b { display: block; font: 600 32px/1.1 var(--font-display); letter-spacing: -.03em; }
.proof span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding: 112px 0; }
.kicker { font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; text-wrap: balance; max-width: 18ch; }
.sub { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 18px 0 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 96px; }
.feature:first-of-type { margin-top: 64px; }
.feature.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; padding: 48px 0; border-radius: var(--radius); position: relative; overflow: hidden; }
.feature .shot .phone { position: relative; width: 270px; transform: none; opacity: 1; }
.shot.lime { background: radial-gradient(70% 70% at 50% 40%, var(--tint-lime), var(--surface)); }
.shot.peach { background: radial-gradient(70% 70% at 50% 40%, var(--tint-peach), var(--surface)); }
.shot.lavender { background: radial-gradient(70% 70% at 50% 40%, var(--tint-lavender), var(--surface)); }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0 0 20px; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--lime); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.tile:hover { border-color: #3a3d44; transform: translateY(-2px); }
.tile h3 { font-size: 22px; margin: 18px 0 8px; letter-spacing: -.02em; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.tile .ico svg { width: 22px; height: 22px; }
.ico.lime { background: var(--tint-lime); color: var(--lime); }
.ico.peach { background: var(--tint-peach); color: var(--peach); }
.ico.lavender { background: var(--tint-lavender); color: var(--lavender); }
.t3 { grid-column: span 3; }
.t2 { grid-column: span 2; }
.tile.wide { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: end; }
.tile .mini { border-radius: 22px; overflow: hidden; margin: 0 -28px -28px 0; align-self: end; }
.tile .mini img { border-radius: 22px 0 0 0; }

/* Privacy */
.privacy { background: var(--tint-lime); border: 1px solid #2c3620; border-radius: 36px; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.privacy h2 { max-width: 14ch; }
.privacy .list { display: grid; gap: 14px; }
.privacy .row { display: flex; gap: 14px; align-items: flex-start; background: rgba(15, 16, 18, .55); border-radius: var(--radius-s); padding: 16px 18px; }
.privacy .row svg { width: 22px; height: 22px; color: var(--lime); flex: none; margin-top: 2px; }
.privacy .row b { display: block; font-weight: 600; }
.privacy .row span { color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; max-width: 880px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.plan.pro { background: linear-gradient(180deg, #232a14, var(--surface) 60%); border-color: #3d4a1f; }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.badge { font: 600 12px/1 var(--font); background: var(--lime); color: var(--on-lime); padding: 5px 9px; border-radius: 999px; letter-spacing: .04em; }
.plan .price { font: 600 40px/1.1 var(--font-display); letter-spacing: -.03em; margin: 14px 0 4px; }
.plan .note { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* FAQ */
.faq { margin-top: 48px; max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font: 400 26px/1 var(--font-display); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Final CTA + footer */
.final { text-align: center; padding: 120px 0; }
.final h2 { margin: 0 auto; max-width: 16ch; }
.final .cta { justify-content: center; margin-top: 32px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Documents (privacy, support) */
.doc { max-width: 760px; padding: 72px var(--gutter) 96px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 8px; }
.doc .date { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 24px; max-width: none; margin: 44px 0 12px; letter-spacing: -.02em; }
.doc p, .doc li { color: #d3d6dc; }
.doc ul { padding-left: 22px; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 20px 0; }
.doc .card.lime { background: var(--tint-lime); border-color: #2c3620; }
.doc a { color: var(--lime); }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .feature, .privacy { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone { width: 250px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t3, .t2 { grid-column: span 1; }
  .tile.wide { grid-column: span 2; }
  .privacy { padding: 40px 28px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 40px; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .phone.p2 { left: -30px; }
  .phone.p3 { right: -30px; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  section.block { padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .tile .mini { display: none; }
  .plans { grid-template-columns: 1fr; }
  .feature .shot .phone { width: 230px; }
  .btn { width: 100%; justify-content: center; }
}
