/* FUTUR inc. — one page, two languages, no framework. */

:root {
  --paper: #f7f3ec;
  --card: #fffdf9;
  --ink: #17161a;
  --muted: #5f5b56;
  --line: #e3dccf;
  --accent: #0e5f5c;
  --accent-ink: #ffffff;
  --accent-soft: #dcecea;
  --ledger-bg: #17161a;
  --ledger-ink: #e9e4da;
  --ledger-dim: #8f8a82;
  --ledger-ok: #7fd1c9;
  --ledger-warn: #f0b36b;
  --shadow: 0 1px 2px rgba(23, 22, 26, .06), 0 12px 32px -20px rgba(23, 22, 26, .25);
  --radius: 14px;
  --gutter: 16px;
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121114;
    --card: #1a191d;
    --ink: #f1ede6;
    --muted: #a39e97;
    --line: #2b292e;
    --accent: #5cc0b8;
    --accent-ink: #0b1a19;
    --accent-soft: #163634;
    --ledger-bg: #0c0b0e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121114;
  --card: #1a191d;
  --ink: #f1ede6;
  --muted: #a39e97;
  --line: #2b292e;
  --accent: #5cc0b8;
  --accent-ink: #0b1a19;
  --accent-soft: #163634;
  --ledger-bg: #0c0b0e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding: clamp(3.5rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 1.2rem; align-items: center; font-size: .95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.top nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-weight: 700; font-size: .8rem; }
@media (max-width: 640px) { .top nav a:not(.lang):not(.cta-mini) { display: none; } }

/* hero */
.hero { padding-top: clamp(3rem, 9vw, 7rem); }
.hero .grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }

/* ledger */
.ledger {
  background: var(--ledger-bg); color: var(--ledger-ink);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem; line-height: 1.7; overflow-x: auto;
}
.ledger .cap { color: var(--ledger-dim); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.ledger table { border-collapse: collapse; white-space: nowrap; width: 100%; }
.ledger td:last-child { white-space: normal; min-width: 11ch; }
.ledger td { padding: .15rem .7rem .15rem 0; vertical-align: top; }
.ledger td:last-child { padding-right: 0; }
.ledger .dim { color: var(--ledger-dim); }
.ledger .ok { color: var(--ledger-ok); font-weight: 600; }
.ledger .warn { color: var(--ledger-warn); font-weight: 600; }
.ledger .rung { color: var(--ledger-dim); }

/* ladder */
.ladder { display: grid; gap: 1.2rem; margin-top: 2.5rem; grid-template-columns: 1fr; counter-reset: rung; }
@media (min-width: 820px) {
  .ladder { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .ladder .rung-card:nth-child(1) { margin-top: 5rem; }
  .ladder .rung-card:nth-child(2) { margin-top: 2.5rem; }
}
.rung-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); position: relative;
}
.rung-card::before {
  counter-increment: rung; content: counter(rung);
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 1rem;
}
.rung-card p { font-size: .98rem; }
.rung-card .rule { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.gets { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .gets { grid-template-columns: repeat(3, 1fr); } }
.gets div { padding: 1.2rem 0 0; border-top: 2px solid var(--accent); }
.gets h3 { margin-bottom: .4rem; }
.gets p { font-size: .95rem; color: var(--muted); margin: 0; }

/* proof */
.proof { display: grid; gap: 1.2rem; margin-top: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.proof .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.proof h3 { margin-bottom: .5rem; }
.proof p { font-size: .97rem; margin-bottom: .7rem; }
.proof .since { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.proof .since a { color: inherit; }
.aside { margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.aside p { margin: 0; }

/* fit */
.fit { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.fit li { margin-bottom: .5rem; }
.fit h3 { display: flex; align-items: center; gap: .5rem; }
.fit .no h3 { color: var(--muted); }

/* form */
.form-wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: .9fr 1.1fr; align-items: start; } }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .95rem; display: none; }
.status.ok { display: block; background: var(--accent-soft); color: var(--ink); }
.status.err { display: block; background: #fbe3dc; color: #6b1d10; }
:root[data-theme="dark"] .status.err { background: #3a1a13; color: #f6c9bd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.err { background: #3a1a13; color: #f6c9bd; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
