:root {
  --deep: #07080d;
  --bg: #0b0d14;
  --card: #11141c;
  --raised: #1a1e28;
  --raised2: #222735;
  --line: rgba(238, 240, 245, 0.08);
  --line2: rgba(238, 240, 245, 0.14);
  --t1: #eef0f5;
  --t2: #a3a9b8;
  --t3: #7a8296;
  --accent: #3d8bff;
  --accent-ink: #6ea8ff;
  --ok: #4cc38a;
  --bad: #e5484d;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--t1);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url(assets/mark.png) center / contain no-repeat;
  mask: url(assets/mark.png) center / contain no-repeat;
}
.cmd {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line2), inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  font: 500 12px var(--mono);
  color: var(--t2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--t1); color: var(--deep); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.btn-primary:hover { background: #ffffff; }
.btn-secondary { background: var(--raised); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.btn-secondary:hover { background: var(--raised2); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: rgba(11, 13, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.links { display: flex; gap: 4px; }
.links a {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--t2);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.links a:hover { color: var(--t1); background: var(--raised); }
.nav-cta { justify-self: end; }
.menu-btn { display: none; }

#story { position: relative; height: 820vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0a0f1f;
}
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-ready #world { opacity: 1; }
.no-gl .stage { background: linear-gradient(180deg, #0a0f1f 0%, #203a6a 45%, #b98d7c 100%); }
.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.55) 0%, rgba(7, 8, 13, 0) 22%),
    radial-gradient(120% 90% at 0% 100%, rgba(7, 8, 13, 0.62) 0%, rgba(7, 8, 13, 0.3) 35%, rgba(7, 8, 13, 0) 60%);
}
.no-gl #story { height: 100vh; height: 100svh; }
.no-gl .cap, .no-gl .recap, .no-gl .prog, .no-gl .hint { display: none; }
.veil { position: absolute; inset: 0; z-index: 4; background: var(--bg); opacity: 0; pointer-events: none; }

.hero {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  padding: 152px 24px 0;
  text-align: center;
}
.hero > * { position: relative; }
.hero h1 {
  max-width: 820px;
  margin: 20px auto 0;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(7, 8, 13, 0.45);
}
.hero p {
  max-width: 34rem;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 28px;
  color: #c9cdd8;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(7, 8, 13, 0.6);
}
.actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.hint { display: block; margin-top: 40px; font: 400 12px var(--mono); color: var(--t3); }
.stage .btn-secondary { background: rgba(26, 30, 40, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.cap {
  position: absolute;
  z-index: 3;
  left: 48px;
  bottom: 96px;
  width: min(440px, calc(100% - 96px));
  visibility: hidden;
  opacity: 0;
}
.cap h2, .recap h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(7, 8, 13, 0.5);
}
.cap p { margin-top: 16px; font-size: 17px; line-height: 26px; color: #d3d7e0; text-wrap: pretty; text-shadow: 0 1px 12px rgba(7, 8, 13, 0.7); }
.cap .words { font-size: 20px; line-height: 30px; color: var(--t1); }

.recap {
  position: absolute;
  z-index: 3;
  left: 48px;
  top: 50%;
  margin-top: -200px;
  width: min(460px, calc(100% - 96px));
  visibility: hidden;
  opacity: 0;
}
.feats { list-style: none; margin-top: 24px; padding: 4px 20px; border-radius: 16px; background: rgba(11, 13, 20, 0.78); box-shadow: 0 0 0 1px var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.feats li { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 15px; }
.feats li:last-child { border: 0; }
.idx { font: 400 12px var(--mono); color: var(--t3); }

.prog { position: absolute; z-index: 6; left: 50%; bottom: 20px; width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; background: rgba(238, 240, 245, 0.18); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--t1); transform: scaleX(0); transform-origin: left; }

.sheet {
  position: relative;
  z-index: 5;
  margin-top: -20vh;
  padding: 96px 48px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.35);
}
.sheet-flat { margin: 0; border-radius: 0; box-shadow: none; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
.sec-head h2 { margin-top: 16px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; max-width: 640px; text-wrap: balance; }
.sec-head p { max-width: 380px; font-size: 16px; line-height: 24px; color: var(--t2); }

.offers { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; max-width: 1280px; margin: 48px auto 0; }
.offer {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.offer h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.offer p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--t2); }
.o-view { margin-top: auto; border-radius: 10px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line); }
.code pre { padding: 16px; font: 400 13px/20px var(--mono); color: var(--t2); overflow-x: auto; }
.c-k { color: #c9cfdb; }
.c-s { color: var(--accent-ink); }
.toggles { list-style: none; padding: 4px 12px; }
.toggles li { display: flex; justify-content: space-between; align-items: center; height: 40px; font-size: 14px; border-bottom: 1px solid var(--line); }
.toggles li:last-child { border: 0; }
.tg { width: 32px; height: 18px; border-radius: 9px; background: var(--raised2); position: relative; }
.tg:after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--t3); }
.tg.on { background: var(--accent); }
.tg.on:after { left: 17px; background: #06101f; }
.status { padding: 4px 12px; }
.st-row { display: flex; align-items: center; gap: 8px; height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-row b { font-weight: 500; flex: 1; }
.st-row span { font: 400 12px var(--mono); color: var(--ok); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.st-line { display: flex; justify-content: space-between; height: 36px; align-items: center; font-size: 13px; color: var(--t3); }
.st-line span:last-child { font-family: var(--mono); color: var(--t2); font-variant-numeric: tabular-nums; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1280px; margin: 48px auto 0; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line2); }
.steps .n { font: 500 13px var(--mono); color: var(--accent-ink); }
.steps h3 { margin-top: 12px; font-size: 18px; font-weight: 500; }
.steps p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--t2); }

#methode { padding-top: 64px; }
.devis { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; max-width: 1280px; margin: 0 auto; align-items: start; }
.d-copy h2 { margin-top: 16px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
.d-copy p { margin-top: 16px; max-width: 420px; font-size: 16px; line-height: 24px; color: var(--t2); }
.form { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--t2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0 12px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--t1);
  font-size: 15px;
  transition: box-shadow 0.15s var(--ease);
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8296' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.form textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 22px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.form ::placeholder { color: var(--t3); }
.form .bad { box-shadow: inset 0 0 0 1px var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-msg { font-size: 14px; color: var(--t2); }
.f-msg.ok { color: var(--ok); }
.f-msg.err { color: var(--bad); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 32px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t3); }
.foot .brand { font-size: 15px; color: var(--t2); }
.foot .mark { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; padding: 0 16px; height: 56px; }
  .nav-cta { height: 36px; padding: 0 12px; font-size: 13px; }
  .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--raised); cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { height: 44px; font-size: 16px; }

  .hero { padding-top: 104px; padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero p { font-size: 16px; line-height: 24px; margin-top: 16px; }
  .actions { margin-top: 24px; flex-wrap: wrap; }
  .actions .btn { flex: 1 1 180px; }
  .hint { margin-top: 24px; }
  .shade {
    background:
      linear-gradient(180deg, rgba(7, 8, 13, 0.6) 0%, rgba(7, 8, 13, 0) 30%),
      linear-gradient(0deg, rgba(7, 8, 13, 0.72) 0%, rgba(7, 8, 13, 0.3) 38%, rgba(7, 8, 13, 0) 58%);
  }
  .cap { left: 16px; right: 16px; bottom: 56px; width: auto; }
  .cap h2, .recap h2 { font-size: 28px; margin-top: 12px; }
  .cap p { font-size: 15px; line-height: 23px; margin-top: 10px; }
  .cap .words { font-size: 17px; line-height: 26px; }
  .recap { left: 16px; right: 16px; width: auto; top: auto; bottom: 48px; margin-top: 0; }
  .feats { margin-top: 16px; padding: 4px 16px; }
  .feats li { min-height: 44px; font-size: 14px; }

  .sheet { padding: 64px 16px; margin-top: -12vh; }
  .sheet-flat { margin-top: 0; }
  .offers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .devis { grid-template-columns: 1fr; gap: 32px; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 16px; }
  .foot { padding: 24px 16px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-height: 700px) and (max-width: 820px) {
  .feats li { min-height: 36px; font-size: 13px; }
  .hero { padding-top: 84px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #world { transition: none; }
}
