/* Plafon Stelle — entry screen. Deep indigo night + brushed-metal lamellae + thermal duality. */

:root {
  /* base — stellar night (Stelle), not gold, not metal-gray */
  --bg:        oklch(0.155 0.040 268);
  --bg-deep:   oklch(0.115 0.035 268);
  --surface:   oklch(0.235 0.042 268 / 0.62);
  --surface-2: oklch(0.285 0.046 268 / 0.72);
  --hairline:  oklch(0.78 0.03 250 / 0.18);   /* brushed-metal edge */
  --hairline-strong: oklch(0.86 0.03 250 / 0.34);

  /* ink — high contrast on bg */
  --ink:     oklch(0.965 0.012 250);
  --ink-dim: oklch(0.795 0.022 255);
  --ink-mute:oklch(0.66 0.025 258);

  /* brand + thermal accents */
  --primary:  oklch(0.66 0.155 268);          /* indigo highlight / pontaj */
  --warm:     oklch(0.765 0.155 58);           /* heating */
  --cool:     oklch(0.815 0.115 220);          /* cooling */
  --metal:    oklch(0.84 0.018 250);
  --star:     oklch(0.985 0.02 95);

  --font-display: 'Clash Display', system-ui, -apple-system, sans-serif;
  --font-body: 'Switzer', system-ui, -apple-system, sans-serif;

  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);      /* ease-out-quart */
  --pad: clamp(1.1rem, 4vw, 2.4rem);

  /* z-scale (semantic) */
  --z-scene: 0; --z-shell: 1; --z-top: 5;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 8px; }

/* ---------- atmospheric scene ---------- */
.scene { position: fixed; inset: 0; z-index: var(--z-scene); pointer-events: none; overflow: hidden; background: var(--bg-deep); }
.scene__photo { position: absolute; inset: -3%;
  background: url("../assets/office-black.png") center 42% / cover no-repeat;
  animation: drift 32s ease-in-out infinite alternate; will-change: transform; }
.scene__scrim { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-deep) 0%, oklch(0.10 0.03 264 / 0.64) 30%, oklch(0.10 0.03 264 / 0.12) 56%, transparent 74%),
    linear-gradient(0deg, var(--bg-deep) 0%, transparent 40%),
    radial-gradient(135% 115% at 56% 24%, transparent 50%, var(--bg-deep) 100%); }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.06) translate3d(-1.4%, 1%, 0); } }
/* brushed-metal lamellae: fine slats + a 2.5cm "real" rhythm overlay */
.scene__lamellae {
  position: absolute; inset: -2% -2%;
  transform: translate3d(var(--px,0), var(--py,0), 0);
  /* real brushed-metal blades: convex profile, ~22px period, light from upper-left */
  background-image:
    repeating-linear-gradient(90deg,
      oklch(0.09 0.025 262) 0,
      oklch(0.17 0.030 260) 3px,
      oklch(0.37 0.025 252) 8px,
      oklch(0.82 0.022 250) 10px,
      oklch(0.42 0.025 254) 13px,
      oklch(0.15 0.030 260) 19px,
      oklch(0.09 0.025 262) 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 100%);
  opacity: .94;
}
/* raking light sweeping across the slats */
.scene__sheen {
  position: absolute; top: -20%; bottom: -20%; left: -40%; width: 38%;
  background: linear-gradient(100deg, transparent, oklch(0.95 0.03 250 / 0.22) 44%, oklch(1 0.01 250 / 0.42) 50%, oklch(0.95 0.03 250 / 0.22) 56%, transparent);
  filter: blur(4px); width: 30%;
  transform: translateX(0) skewX(-8deg);
  animation: sweep 8.5s var(--ease) infinite;
  mix-blend-mode: screen;
}
@keyframes sweep { 0% { transform: translateX(0) skewX(-8deg); opacity: 0; }
  12% { opacity: 1; } 88% { opacity: 1; }
  100% { transform: translateX(360%) skewX(-8deg); opacity: 0; } }

.scene__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.scene__thermal { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(60px); opacity: .42; mix-blend-mode: screen; will-change: opacity, transform;
  animation: breathe 13s ease-in-out infinite; }
.scene__thermal--warm { left: -16vmax; bottom: -20vmax; background: radial-gradient(circle, var(--warm), transparent 64%); }
.scene__thermal--cool { right: -18vmax; top: -16vmax; background: radial-gradient(circle, var(--cool), transparent 64%); animation-delay: -6.5s; }
@keyframes breathe { 0%,100% { opacity: .22; transform: scale(1); } 50% { opacity: .4; transform: scale(1.08); } }

.scene__vignette { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-deep) 2%, oklch(0.12 0.035 264 / 0.58) 25%, transparent 53%),
    radial-gradient(125% 100% at 50% 35%, transparent 50%, var(--bg-deep) 100%); }

/* ---------- shell ---------- */
.shell { position: relative; z-index: var(--z-shell); min-height: 100svh;
  display: flex; flex-direction: column;
  padding: max(var(--pad), env(safe-area-inset-top)) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  gap: clamp(1.5rem, 4vh, 3rem); }

/* ---------- topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--metal); background: linear-gradient(160deg, var(--surface-2), oklch(0.2 0.04 268 / 0.5));
  border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--hairline-strong); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-dim);
  padding: .4rem .75rem; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; }
.status__dot--warm { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.status__dot--cool { background: var(--cool); box-shadow: 0 0 10px var(--cool); margin-left: -3px; }
.status__text { white-space: nowrap; }

/* ---------- hero ---------- */
.hero { flex: 1; display: grid; align-items: center; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; }
.hero__intro { max-width: 46rem; }
.hero__kicker { font-size: .82rem; letter-spacing: .02em; color: var(--cool); font-weight: 500;
  margin-bottom: 1rem; }
.hero__title { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 5rem); line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance; }
.hero__title .t-warm { color: var(--warm); }
.hero__title .t-cool { color: var(--cool); }
.hero__lede { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-dim); }
.cta { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem;
  font-weight: 600; font-size: 1.02rem; padding: .95rem 1.5rem; border-radius: 999px;
  color: oklch(0.16 0.04 268); background: linear-gradient(180deg, oklch(0.9 0.07 250), var(--metal));
  border: 1px solid var(--hairline-strong); box-shadow: 0 10px 30px oklch(0.7 0.1 250 / 0.25), inset 0 1px 0 #fff6;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-height: 48px; }
.cta svg { transition: transform .25s var(--ease); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px oklch(0.7 0.1 250 / 0.35), inset 0 1px 0 #fff6; }
.cta:hover svg { transform: translateX(3px); }

/* ---------- modules ---------- */
.modules { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.module { position: relative; display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.15rem; border-radius: var(--r); min-height: 64px;
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--hairline-strong);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden; }
.module::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--metal)); opacity: .0; transition: opacity .3s var(--ease); }
.module:hover { transform: translateY(-3px); border-color: var(--hairline-strong); background: var(--surface-2); }
.module:hover::before, .module:active::before, .module:focus-visible::before { opacity: .9; }
.module__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: var(--accent, var(--metal)); border-radius: 12px;
  background: oklch(0.2 0.04 268 / 0.55); border: 1px solid var(--hairline); }
.module__icon svg { width: 22px; height: 22px; }
.module__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.module__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.module__desc { font-size: .82rem; color: var(--ink-mute); }
.module__stat { font-size: .78rem; color: var(--ink-dim); text-align: right; white-space: nowrap; }
.module__stat b { display: block; font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.module__stat--up b { color: var(--cool); }
.module__stat--warn b { color: var(--warm); }

.module--pontaj { grid-column: 1 / -1; --accent: var(--primary);
  background: linear-gradient(110deg, oklch(0.3 0.07 268 / 0.7), var(--surface));
  border-color: oklch(0.6 0.13 268 / 0.4); min-height: 84px; padding: 1.2rem 1.35rem; }
.module--pontaj .module__name { font-size: 1.3rem; }
.module--pontaj .module__icon { width: 50px; height: 50px; color: var(--primary);
  box-shadow: 0 0 24px oklch(0.66 0.155 268 / 0.4); }
.module--pontaj::before { opacity: .8; }
.module--econ  { --accent: var(--cool); }
.module--chelt { --accent: var(--metal); }
.module--dat   { --accent: var(--warm); }

/* ---------- footer ---------- */
.footnote { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .78rem; color: var(--ink-mute); }
.footnote__sep { opacity: .5; }

/* ---------- entrance (enhances an already-visible default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__intro > *, .module { animation: rise .7s var(--ease) backwards; }
  .hero__kicker { animation-delay: .05s; } .hero__title { animation-delay: .12s; }
  .hero__lede { animation-delay: .2s; } .cta { animation-delay: .28s; }
  .module { animation-delay: calc(.34s + var(--i) * .08s); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- desktop ---------- */
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .modules { align-self: center; }
  .module--pontaj { grid-column: 1 / -1; }
}
@media (min-width: 560px) and (max-width: 879px) {
  .modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .modules { grid-template-columns: 1fr; }
  .module--pontaj { grid-column: 1; }
  .status__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scene__photo { animation: none; }
}

/* ============ LANDING (scrolls over the fixed hero scene; opaque) ============ */
.landing { position: relative; z-index: 1; background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  display: flex; flex-direction: column; gap: clamp(3.5rem, 9vw, 7rem); }
.sec { width: 100%; max-width: 76rem; margin-inline: auto; }
.sec__head { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); max-width: 46rem; }
.sec__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.06; text-wrap: balance; }
.sec__intro { margin-top: .7rem; color: var(--ink-dim); font-size: 1.05rem; max-width: 38rem; }

/* features — not identical cards: hairline-joined grid, climate block accented */
.features { list-style: none; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr);
  background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.feat { background: var(--bg); padding: clamp(1.3rem, 3vw, 2rem); }
.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: .5rem; }
.feat p { color: var(--ink-dim); font-size: .98rem; max-width: 36ch; }
.feat--warm { background: linear-gradient(180deg, oklch(0.22 0.05 60 / 0.28), var(--bg)); }
.feat--warm h3 { color: var(--warm); }
.feat--cool h3 { color: var(--cool); }

/* how it works — real sequence, numbers justified */
.steps { list-style: none; padding: 0; display: grid; gap: 1.1rem; max-width: 50rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step__n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; color: var(--primary);
  background: oklch(0.3 0.07 268 / 0.4); border: 1px solid oklch(0.6 0.13 268 / 0.4); }
.step p { color: var(--ink-dim); padding-top: .5rem; }

/* finishes — real imagery */
.finishes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.finish { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--hairline); }
.finish img { display: block; width: 100%; height: 180px; object-fit: cover; }
.finish figcaption { position: absolute; left: .8rem; bottom: .7rem; font-weight: 600; font-size: .92rem;
  padding: .25rem .7rem; border-radius: 999px; background: oklch(0.10 0.03 264 / 0.82); border: 1px solid var(--hairline); }
.finish--swatch { display: grid; place-items: center; min-height: 180px; font-weight: 600; color: var(--ink);
  background: var(--sw, var(--surface)); text-shadow: 0 1px 8px #0009; }

/* why */
.whys { list-style: none; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.whys h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; }
.whys h3::before { content: ""; display: block; width: 26px; height: 2px; background: var(--metal); opacity: .55; margin-bottom: .9rem; }
.whys p { color: var(--ink-dim); font-size: .98rem; }

/* proof */
.sec--proof { text-align: center; }
.sec--proof .sec__title { margin-bottom: 1.8rem; }
.stats { list-style: none; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.stats li { display: flex; flex-direction: column; gap: .4rem; }
.stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stats span { color: var(--ink-mute); font-size: .9rem; }

/* faq */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1.05rem 0; padding-right: 2rem; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--cool); font-size: 1.35rem; line-height: 0; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-dim); padding: 0 0 1.1rem; max-width: 62ch; }

/* cta */
.sec--cta { display: flex; }
.cta-card { width: 100%; text-align: center; padding: clamp(2.2rem, 6vw, 4rem); border-radius: var(--r-lg);
  background: linear-gradient(150deg, oklch(0.26 0.07 268 / 0.6), var(--surface));
  border: 1px solid oklch(0.6 0.13 268 / 0.35); box-shadow: inset 0 1px 0 var(--hairline-strong); }
.cta-card h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance;
  font-size: clamp(1.6rem, 4vw, 2.6rem); }
.cta-card p { color: var(--ink-dim); margin: .9rem auto 1.8rem; max-width: 36rem; }
.cta-card .cta { margin: 0; }

/* site footer */
.sitefoot { position: relative; z-index: 1; background: var(--bg-deep); border-top: 1px solid var(--hairline);
  padding: 2.4rem var(--pad); display: flex; flex-direction: column; gap: .8rem; max-width: 76rem; margin-inline: auto; }
.sitefoot__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sitefoot__langs { display: inline-flex; gap: .3rem; font-size: .85rem; }
.sitefoot__langs span { padding: .25rem .55rem; border-radius: 8px; color: var(--ink-mute); }
.sitefoot__langs span[aria-current="true"] { color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); }
.sitefoot__meta { color: var(--ink-mute); font-size: .85rem; }
.sitefoot__meta a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.8rem; }
}
