/* ==========================================================================
   Siflo — styles. Dusk canyon theme built on the app's dark palette
   (app/src/main/kotlin/app/siflo/ui/Theme.kt in paulasquin/siflo).
   ========================================================================== */

@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../assets/fonts/jetbrainsmono-latin.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url(../assets/fonts/unbounded-latin.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0e0b09;
  --bg-2: #16130f;
  --bg-3: #221d19;
  --ink: #f6efe9;
  --ink-2: #d2c4b9;
  --ink-3: #9c8d82;
  --line: rgba(255, 196, 160, .13);
  --line-2: rgba(255, 196, 160, .25);
  --orange: #ff6a00;
  --orange-2: #ff8a3d;
  --peach: #ffdbc9;
  --ember: #ffb37a;
  --ok: #95d4a9;
  --sos: #ff5a52;
  --water: #7fc4e6;
  --card: rgba(20, 16, 13, .64);
  --radius: 20px;
  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
::selection { background: rgba(255, 106, 0, .4); }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- loader: the whistle icon, its arcs light up one by one ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #1d1510 0%, var(--bg) 70%);
  transition: opacity .9s ease, visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-mark { width: 96px; height: 96px; }
.loader-mark .lm-body { fill: var(--ink); }
.loader-mark .lm-arc { fill: none; stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; transition: stroke .3s, filter .3s; }
.loader-mark .lm-arc.on { stroke: var(--orange); filter: drop-shadow(0 0 6px var(--orange)); }
.loader-label { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- stage ---------- */
.stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: block;
  opacity: 0; transition: opacity .8s ease;
}
.stage.on { opacity: 1; }
.stage-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.s-label {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink);
  opacity: 0; transition: opacity .45s ease;
  will-change: transform;
}
.s-label.on { opacity: 1; }
.s-label::before {
  content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange-2); box-shadow: 0 0 0 4px rgba(255, 106, 0, .2), 0 0 14px var(--orange);
}
.s-label .s-line { flex: none; width: 34px; height: 1px; background: linear-gradient(90deg, var(--orange-2), transparent); }
.s-label .s-text { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(16, 12, 9, .74); backdrop-filter: blur(6px); white-space: nowrap; }
.s-label.left { flex-direction: row-reverse; }
.s-label.left .s-line { background: linear-gradient(270deg, var(--orange-2), transparent); }
.s-label.warm::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(149, 212, 169, .2), 0 0 14px var(--ok); }
.s-label.warm .s-line { background: linear-gradient(90deg, var(--ok), transparent); }
.s-label.warm.left .s-line { background: linear-gradient(270deg, var(--ok), transparent); }

.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #ff3d00, var(--orange), var(--ember)); box-shadow: 0 0 10px var(--orange); }

/* ---------- nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topnav.scrolled { background: rgba(14, 11, 9, .74); backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255, 106, 0, .18), 0 6px 20px -4px rgba(255, 106, 0, .7); }
.brand-mark svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-2); position: relative; transition: color .25s; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px rgba(14, 11, 9, .9); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--orange-2); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; margin-left: 22px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch button { background: none; border: 0; color: var(--ink-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: rgba(255, 106, 0, .2); color: var(--peach); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--ember), var(--orange) 55%, #f04e00); color: #1d0a00; border-color: transparent; box-shadow: 0 8px 32px -8px rgba(255, 106, 0, .7); }
.btn-primary:hover { box-shadow: 0 10px 40px -6px rgba(255, 106, 0, .95); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--orange-2); background: rgba(255, 106, 0, .08); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .75; line-height: 1.1; }
.btn .btn-two { display: grid; text-align: left; line-height: 1.2; }

/* ---------- typography ---------- */
.kicker { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
h2 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 16px; font-weight: 500; }
.h-xl { font-family: var(--f-display); font-size: clamp(34px, 5.2vw, 74px); line-height: 1.04; font-weight: 300; letter-spacing: -.03em; margin-bottom: 26px; }
.h-xl em, .h-lg em { font-style: normal; background: linear-gradient(100deg, var(--peach), var(--orange-2) 45%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-lg { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; font-weight: 300; margin-bottom: 22px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); font-weight: 300; }
p { margin: 0 0 14px; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

/* ---------- acts & panels ---------- */
main { position: relative; z-index: 2; }
.act { position: relative; }
.panel {
  position: relative; min-height: 110vh;
  display: flex; align-items: center;
  padding: 120px var(--pad);
}
.panel-left { justify-content: flex-start; }
.panel-right { justify-content: flex-end; }
.panel-sticky { min-height: 130vh; }
.card {
  position: relative; max-width: 460px; width: 100%;
  padding: 30px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 138, 61, .55), transparent 35%, transparent 70%, rgba(255, 219, 201, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card.card-sos::before { background: linear-gradient(140deg, rgba(255, 90, 82, .7), transparent 40%, transparent 70%, rgba(255, 90, 82, .3)); }
.card.card-sos .kicker { color: var(--sos); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .03); }
.chips li i { font-style: normal; font-family: var(--f-mono); color: var(--orange-2); letter-spacing: .1em; }
.chips li.ok i { color: var(--ok); }

/* ---------- hero ---------- */
.panel-hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: clamp(70px, 12vh, 140px); }
.panel-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 58% at 0% 100%, rgba(14, 11, 9, .84), transparent 72%); }
.hero-content { position: relative; max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 106, 0, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .7); } 70% { box-shadow: 0 0 0 12px rgba(255, 106, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); } }
.hero-title { width: max-content; font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 5.4vw, 92px); white-space: nowrap; line-height: .92; letter-spacing: -.045em; margin: 0 0 26px; }
.ht-line { display: block; overflow: hidden; padding-bottom: .08em; }
.ht-word { display: inline-block; }
.ht-glow { font-weight: 600; background: linear-gradient(95deg, #fff 0%, var(--peach) 22%, var(--orange-2) 55%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 580px; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink); font-weight: 300; margin-bottom: 30px; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 24px rgba(14, 11, 9, .95); }
.hero-kpis, .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 18px rgba(14, 11, 9, .9); }
.hero-kpis { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 34px; }
.hero-kpis div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.hero-kpis dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero-kpis dd { margin: 4px 0 0; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--orange-2), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; left: -1px; top: -20px; width: 3px; height: 20px; background: var(--peach); border-radius: 2px; animation: cue 2s infinite; box-shadow: 0 0 8px var(--orange); }
@keyframes cue { to { top: 50px; } }

/* ---------- plain sections ---------- */
.section { position: relative; padding: clamp(100px, 14vh, 180px) 0; background: var(--bg); }
.section::before { content: ''; position: absolute; left: 0; right: 0; top: -200px; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.section-head { max-width: 820px; margin-bottom: clamp(50px, 8vh, 90px); }
.reveal { opacity: 0; transform: translateY(30px); }

/* film */
.section-film { background: radial-gradient(ellipse 55% 50% at 78% 50%, rgba(255, 106, 0, .12), transparent 65%), var(--bg); }
.film-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.film-points li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: baseline; color: var(--ink-2); font-size: 15.5px; }
.film-points b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--orange-2); letter-spacing: .06em; }
.phone-frame {
  position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto;
  padding: 12px; border-radius: 46px;
  background: linear-gradient(150deg, #3a302a, #120e0b 40%, #2a221d);
  box-shadow: 0 50px 120px -40px rgba(255, 106, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px rgba(0, 0, 0, .6);
}
.phone-frame video, .phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #fffbf8; }
.phone-frame.film { aspect-ratio: auto; }
.phone-frame.film video { display: block; height: auto; aspect-ratio: 9 / 16; background: #0e0b09; }
.phone-frame::after { content: ''; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0b0908; box-shadow: inset 0 0 0 2px #1f1915; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 106, 0, .22), 0 14px 40px -8px rgba(255, 106, 0, .9);
  transition: transform .3s, opacity .3s;
}
.film-play:hover { transform: scale(1.07); }
.film-play span { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.film.playing .film-play { opacity: 0; pointer-events: none; }

/* features */
.section-features { background: linear-gradient(var(--bg), var(--bg-2) 30%, var(--bg-2)); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 28px 26px 26px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(40, 31, 25, .7), rgba(20, 16, 13, .6)); overflow: hidden;
  transition: border-color .35s, transform .35s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature::after { content: ''; position: absolute; right: -40%; bottom: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .14), transparent 70%); pointer-events: none; transition: opacity .35s; opacity: .6; }
.feature:hover::after { opacity: 1; }
.feature-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(255, 106, 0, .14); border: 1px solid rgba(255, 138, 61, .3); }
.feature-ico svg { width: 24px; height: 24px; stroke: var(--orange-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.feature p { font-size: 15px; margin: 0; }

/* field cases */
.section-field { background: var(--bg); }
.section-field .lead { max-width: 720px; }
.features.cases { grid-template-columns: repeat(2, 1fr); }
.case { display: flex; flex-direction: column; }
.case-tag { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.case p + p { margin-top: 12px; }
.case .case-siflo { padding-left: 14px; border-left: 2px solid var(--orange); color: var(--ink); }
.case-siflo b { color: var(--orange-2); font-weight: 600; }
.case-src { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.case-src:hover { color: var(--ink); }
.cases-foot { margin: 28px auto 0; max-width: 720px; text-align: center; font-size: 15px; color: var(--ink-3); }

/* screens */
.section-screens { background: var(--bg-2); overflow: hidden; }
.screens { display: flex; justify-content: safe center; gap: 22px; padding: 10px var(--pad) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.screens figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 260px); scroll-snap-align: center; }
.screens .shot { border-radius: 28px; overflow: hidden; padding: 8px; background: linear-gradient(150deg, #3a302a, #120e0b 40%, #2a221d); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07); cursor: zoom-in; }
.screens img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border-radius: 21px; background: #fffbf8; }
.screens figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* privacy */
.section-privacy { background: radial-gradient(ellipse 60% 45% at 15% 30%, rgba(149, 212, 169, .07), transparent 60%), var(--bg); }
.privacy-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.privacy-list li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: rgba(149, 212, 169, .16); box-shadow: inset 0 0 0 1.5px var(--ok); }
.privacy-list li::after { content: ''; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 3.5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }
.privacy-list b { color: var(--ink); font-weight: 500; }
.cipher { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(34, 29, 25, .85), rgba(14, 11, 9, .8)); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; }
.cipher-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.cipher-row span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; }
.cipher-row output { font-family: var(--f-mono); font-size: 14px; color: var(--ink); word-break: break-all; min-height: 1.6em; }
.cipher-row.relay output { color: var(--ink-3); }
.cipher-row.relay { border-style: dashed; }
.cipher-row.plain output { color: var(--peach); }
.cipher-arrow { justify-self: center; width: 2px; height: 22px; background: linear-gradient(var(--orange-2), transparent); }
.cipher-foot { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* honesty */
.section-honest { background: var(--bg-2); }
.honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.honest > div { background: var(--bg-2); padding: clamp(24px, 3vw, 38px); }
.honest h3 { font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.3; margin-bottom: 12px; color: var(--ink); }
.honest p { font-size: 15px; margin: 0; }
.honest .num { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; color: var(--orange-2); }

/* download */
.section-download { text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 106, 0, .2), transparent 70%), var(--bg); }
.section-download .section-head { margin-left: auto; margin-right: auto; }
.dl-icon { width: 108px; height: 108px; margin: 0 auto 34px; border-radius: 30px; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 106, 0, .12), 0 30px 80px -20px rgba(255, 106, 0, .9); }
.dl-icon svg { width: 84px; height: 84px; }
.dl-icon .arc { animation: arc 2.4s infinite; opacity: .25; }
.dl-icon .arc:nth-of-type(2) { animation-delay: .25s; }
.dl-icon .arc:nth-of-type(3) { animation-delay: .5s; }
@keyframes arc { 0%, 15% { opacity: .25; } 30%, 60% { opacity: 1; } 85%, 100% { opacity: .25; } }
.dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 34px 0 26px; }
.store { display: inline-flex; align-items: center; gap: 14px; padding: 12px 24px 12px 18px; border-radius: 16px; background: #000; border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; text-align: left; transition: transform .25s, border-color .25s; }
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: 11px; letter-spacing: .04em; opacity: .8; }
.store b { display: block; font-size: 19px; font-weight: 600; line-height: 1.15; }
.store.pending { position: relative; cursor: default; }
.store.pending:hover { transform: none; border-color: rgba(255, 255, 255, .25); }
.store.pending::after { content: attr(data-badge); position: absolute; top: -10px; right: -10px; padding: 3px 9px; border-radius: 999px; background: var(--orange); color: #1d0a00; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.dl-note { max-width: 620px; margin: 0 auto; font-size: 15px; }

/* faq */
.section-faq { background: var(--bg-2); }
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-2); background: rgba(255, 106, 0, .04); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--orange-2); border-bottom: 1.5px solid var(--orange-2); transform: rotate(45deg); transition: transform .3s, margin .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 18px; margin: 0; font-size: 15.5px; }
.faq a { color: var(--orange-2); }
.support { margin-top: clamp(50px, 8vh, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(255, 106, 0, .12), rgba(255, 106, 0, .02)); }
.support p { margin: 0; color: var(--ink); font-size: 17px; }
.support p span { display: block; color: var(--ink-3); font-size: 14px; }

/* footer */
.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 34px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; font-size: 13px; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--orange-2); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8, 6, 5, .93); backdrop-filter: blur(8px); padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 14px; }
.lightbox figcaption { color: var(--ink-2); font-size: 14px; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--ink); border-radius: 50%; width: 48px; height: 48px; font-size: 26px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* no WebGL: the acts keep their cards over a still gradient */
.no-webgl main .act { background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 106, 0, .16), transparent 70%), linear-gradient(#1b1430, var(--bg)); }

/* ?capture: video capture of the 3D stage only */
.capture main, .capture .topnav, .capture .footer, .capture .grain, .capture .scroll-progress, .capture .stage-labels { visibility: hidden !important; }
.capture .stage { opacity: 1 !important; transition: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: 1fr 1fr; }
  .honest { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  /* Phones: no live blur over the animated canvas and no full-screen animated grain — both are compositor-heavy. */
  .card, .topnav.scrolled, .s-label .s-text, .btn-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topnav.scrolled { background: rgba(14, 11, 9, .98); }
  .grain { display: none; }
  .nav-links { position: fixed; inset: 0 0 auto 0; top: 0; padding: 80px var(--pad) 30px; flex-direction: column; gap: 18px; background: rgba(14, 11, 9, .97); transform: translateY(-100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); z-index: -1; }
  .nav-links a { font-size: 18px; }
  .topnav.open .nav-links { transform: none; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 12px; }
  .topnav.open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .topnav.open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .panel { padding: 90px 16px; justify-content: center; min-height: 100vh; align-items: flex-end; padding-bottom: 10vh; }
  .panel-sticky { min-height: 110vh; }
  .card { padding: 22px 22px 24px; background: rgba(18, 14, 11, .86); }
  .panel-hero { align-items: flex-end; padding-bottom: 90px; }
  .panel-hero::before { background: linear-gradient(transparent 25%, rgba(14, 11, 9, .9) 72%); }
  .split { grid-template-columns: 1fr; }
  .cipher-row { grid-template-columns: 1fr; gap: 6px; }
  .lightbox { padding: 60px 12px; }
  .s-label { font-size: 10px; }
  .s-label .s-line { width: 16px; }
  .support { padding: 22px; }
}
@media (max-width: 600px) {
  .features, .features.cases { grid-template-columns: 1fr; }
  .hero-kpis { gap: 12px 22px; }
  .film-points li { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
