/* ==========================================================================
   Lumaflex — landing page styles
   Built on top of Szablon (Apple-inspired) design system
   ========================================================================== */

:root {
  /* Lumaflex accents — red/infrared. Replaces Apple Blue for this brand. */
  --lx-red: #E50914;
  --lx-red-deep: #8B1A1A;
  --lx-red-dark: #5a0f10;
  --lx-red-glow: 230, 9, 20;       /* rgba tuple for live intensity mix */
  --lx-ir: #c41020;                /* deeper infrared tone */

  /* Intensity knob — multiplied into glow opacities */
  --lx-intensity: 1;

  /* Fonts — Inter Display as an SF-Pro substitute, per design-system caveat */
  --lx-font: "Inter", "SF Pro Display", "SF Pro Text", -apple-system,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,
body {
  font-family: var(--lx-font);
  color: var(--sz-near-black);
  background: var(--sz-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-hero-light { background: #fafafa; }

* { box-sizing: border-box; }

.lx-container {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.lx-container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* Typography helpers tuned to Szablon tokens but with Lumaflex density */
.lx-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lx-red);
}
.lx-eyebrow.on-dark { color: #ff3b4a; }

.lx-display {
  font-family: var(--lx-font);
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}

.lx-section-title {
  font-family: var(--lx-font);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
}

.lx-subtitle {
  font-family: var(--lx-font);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,0.62);
  margin: 0;
}

.on-dark .lx-subtitle,
.lx-subtitle.on-dark { color: rgba(255,255,255,0.62); }

.lx-body {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: rgba(0,0,0,0.72);
}

.on-dark .lx-body { color: rgba(255,255,255,0.68); }

/* Buttons — red pill replaces Apple blue */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--lx-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 980px;
  transition: background-color 200ms cubic-bezier(0.28, 0, 0.22, 1),
              transform 200ms cubic-bezier(0.28, 0, 0.22, 1),
              box-shadow 200ms cubic-bezier(0.28, 0, 0.22, 1);
}
.lx-btn-primary {
  background: var(--lx-red);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(var(--lx-red-glow), 0);
}
.lx-btn-primary:hover {
  background: #ff1a25;
  box-shadow: 0 10px 30px rgba(var(--lx-red-glow), calc(0.35 * var(--lx-intensity)));
}
.lx-btn-primary:active { transform: scale(0.98); }
.lx-btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.lx-btn-ghost.on-light { color: var(--sz-near-black); opacity: 0.8; }
.lx-btn-ghost.on-light:hover { background: rgba(0,0,0,0.06); }
.lx-btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.5); }
.lx-btn-ghost.on-dark:hover { background: rgba(255,255,255,0.1); }

.lx-chevron-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lx-red);
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.lx-chevron-link:hover { text-decoration: underline; }
.lx-chevron-link::after { content: "›"; font-size: 1.2em; margin-left: 2px; transform: translateY(-1px); }

/* Nav (dark glass) */
.lx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  height: 52px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lx-nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.lx-nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
.lx-nav a:hover { text-decoration: underline; color: #fff; }
.lx-nav-links { display: flex; gap: 28px; }
.lx-nav-logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.lx-nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lx-red);
  box-shadow: 0 0 12px 2px rgba(var(--lx-red-glow), calc(0.8 * var(--lx-intensity)));
  animation: lxPulse 2.4s ease-in-out infinite;
}
@keyframes lxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes lxFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lxBreath {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes lxWave {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
@keyframes lxBeamDrop {
  0% { opacity: 0; transform: translateY(-40px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes lxCellPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(2.2); opacity: 1; }
}
@keyframes lxBubble {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}
@keyframes lxPanelOrbit {
  0%   { transform: rotateY(-18deg) rotateZ(-4deg); }
  25%  { transform: rotateY(0deg)   rotateZ(0deg); }
  50%  { transform: rotateY(18deg)  rotateZ(4deg); }
  75%  { transform: rotateY(0deg)   rotateZ(0deg); }
  100% { transform: rotateY(-18deg) rotateZ(-4deg); }
}
@keyframes lxPanelFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@keyframes lxParticle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

.lx-nav-right { display: flex; align-items: center; gap: 20px; }
.lx-lang {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-radius: 980px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.lx-lang:hover { background: rgba(255,255,255,0.14); }
.lx-lang b { color: #fff; }

/* Full-bleed hero on pure black */
.lx-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding-top: 52px;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.lx-hero.theme-light {
  background: #f5f5f7;
  color: var(--sz-near-black);
}

/* Hero vignettes */
.lx-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(
    60% 50% at 50% 50%,
    rgba(var(--lx-red-glow), calc(0.28 * var(--lx-intensity))) 0%,
    rgba(var(--lx-red-glow), 0) 70%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 500ms cubic-bezier(0.28, 0, 0.22, 1);
}
.lx-hero.theme-light::before {
  background: radial-gradient(
    60% 50% at 50% 50%,
    rgba(var(--lx-red-glow), calc(0.16 * var(--lx-intensity))) 0%,
    rgba(var(--lx-red-glow), 0) 70%
  );
}
.lx-hero::after {
  content: "";
  position: absolute; left: 50%; top: 65%; transform: translate(-50%,-50%);
  width: 90vw; height: 90vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--lx-red-glow), calc(0.18 * var(--lx-intensity))) 0%,
    rgba(var(--lx-red-glow), 0) 60%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* Dark section shared primitives */
.lx-section-dark {
  background: #000;
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.lx-section-light {
  background: #f5f5f7;
  color: var(--sz-near-black);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.lx-section-white {
  background: #fff;
  color: var(--sz-near-black);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.lx-section-center { text-align: center; }

/* Reveal-on-scroll — content visible by default, only hidden during pre-reveal window */
.lx-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.28, 0, 0.22, 1),
              transform 700ms cubic-bezier(0.28, 0, 0.22, 1);
}
.lx-reveal.is-pending {
  opacity: 0;
  transform: translateY(24px);
}
body.no-anim .lx-reveal,
body.no-anim .lx-reveal.is-pending { opacity: 1; transform: none; transition: none; }

/* Cards */
.lx-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.lx-card-dark {
  background: #1d1d1f;
  color: #fff;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Red pill badge (eyebrow in hero) */
.lx-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(var(--lx-red-glow), 0.12);
  border: 1px solid rgba(var(--lx-red-glow), 0.3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ff4a57;
}
.lx-hero.theme-light .lx-pill { color: #b30814; background: rgba(var(--lx-red-glow), 0.08); border-color: rgba(var(--lx-red-glow), 0.25); }
.lx-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lx-red);
  box-shadow: 0 0 8px 2px rgba(var(--lx-red-glow), calc(0.9 * var(--lx-intensity)));
  animation: lxPulse 1.6s ease-in-out infinite;
}

/* Tweaks panel */
.lx-tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  background: rgba(20, 20, 22, 0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px 18px 16px;
  width: 280px;
  font-size: 13px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: none;
}
.lx-tweaks.is-open { display: block; }
.lx-tweaks h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.lx-tweaks .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lx-tweaks label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.lx-tweaks .seg {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.lx-tweaks .seg button {
  flex: 1; background: transparent; border: 0; color: rgba(255,255,255,0.6);
  padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 12px;
  font-family: inherit; transition: all 150ms;
}
.lx-tweaks .seg button.active { background: var(--lx-red); color: #fff; }
.lx-tweaks .seg button:hover:not(.active) { color: #fff; background: rgba(255,255,255,0.05); }
.lx-tweaks input[type="range"] {
  width: 100%; accent-color: var(--lx-red);
}
.lx-tweaks .toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lx-tweaks .toggle:first-of-type { border-top: 0; }
.lx-tweaks .switch {
  width: 34px; height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px; position: relative; cursor: pointer;
  transition: background 200ms;
}
.lx-tweaks .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform 200ms;
}
.lx-tweaks .switch.on { background: var(--lx-red); }
.lx-tweaks .switch.on::after { transform: translateX(14px); }

/* Footer */
.lx-footer {
  background: #000;
  color: rgba(255,255,255,0.5);
  padding: 72px 0 48px;
  font-size: 13px;
  line-height: 1.5;
}
.lx-footer h5 {
  color: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.lx-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lx-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.lx-footer a:hover { color: #fff; }
.lx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lx-footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .lx-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility spacing */
.lx-mt-8 { margin-top: 8px; }
.lx-mt-16 { margin-top: 16px; }
.lx-mt-24 { margin-top: 24px; }
.lx-mt-32 { margin-top: 32px; }
.lx-mt-48 { margin-top: 48px; }
.lx-mt-64 { margin-top: 64px; }

@media (max-width: 720px) {
  .lx-section-dark, .lx-section-light, .lx-section-white { padding: 80px 0; }
}
