/* ============================================================
   INFOFRAME — Cormo CMS Theme
   ============================================================ */

:root {
  --dark-blue: #1D2D3A;
  --dark-blue-2: #16242F;
  --dark-blue-3: #11202B;
  --screen: #76B4EF;
  --light: #C6A0F0;
  --violet: #A673E0;
  --off-white: #EFEBF4;

  --accent-a: #76B4EF;
  --accent-b: #A673E0;
  --grad-wave: linear-gradient(100deg, var(--accent-a) 0%, #6E7FC4 42%, var(--accent-b) 100%);

  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.10);
  --surface-border-strong: rgba(255,255,255,0.18);

  --ink: var(--off-white);
  --ink-dim: rgba(239,235,244,0.62);
  --ink-faint: rgba(239,235,244,0.40);

  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --maxw: 1440px;
  --pad: clamp(20px, 5vw, 80px);
  --radius-sq: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark-blue);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(118,180,239,0.18), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(166,115,224,0.12), transparent 60%),
    linear-gradient(160deg, var(--dark-blue) 0%, var(--dark-blue-2) 55%, var(--dark-blue-3) 100%);
}
.page-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ── Typography ── */
.eyebrow {
  font-size: clamp(11px, 1vw, 13px); font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--surface-border-strong); }
.display { font-weight: 200; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
.grad-text {
  background: var(--grad-wave);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-rule {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 14px; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-rule .tag { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-dim); font-weight: 400; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; padding: 15px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn-grad { color: #fff; background: var(--grad-wave); background-size: 160% 160%; background-position: 0% 50%; }
.btn-grad:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 44px -14px rgba(166,115,224,0.7); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--surface-border-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--screen); color: #fff; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .logo-img { height: 22px; width: auto; display: block; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(22,36,47,0.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--surface-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-dim);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--grad-wave); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-burger { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 190px);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-kicker { margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 86px); margin-bottom: 26px; }
.hero h1 .li { display: block; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-dim);
  max-width: 30ch; margin-bottom: 36px; font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-meta .stat .n {
  font-size: clamp(26px, 3vw, 38px); font-weight: 300; letter-spacing: -0.01em;
  background: linear-gradient(92deg, var(--screen), var(--light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta .stat .l { font-size: 13px; color: var(--ink-dim); }
.hero-wave {
  position: absolute; top: -4%; right: -6%; width: 60%; max-width: 720px;
  opacity: .8; pointer-events: none; z-index: -1;
  -webkit-mask-image: radial-gradient(75% 75% at 62% 38%, #000 35%, transparent 82%);
  mask-image: radial-gradient(75% 75% at 62% 38%, #000 35%, transparent 82%);
}

/* ── Screen mockup ── */
.device {
  position: relative; border-radius: var(--radius-lg); padding: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid var(--surface-border-strong);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.device::after {
  content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 64%; height: 26px; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border: 1px solid var(--surface-border); border-top: none;
}
.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px;
  overflow: hidden; background: var(--dark-blue-3); isolation: isolate;
}
.screen-glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.06), transparent 40%);
  mix-blend-mode: screen;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.02);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease);
  padding: clamp(18px, 4%, 34px);
  display: flex; flex-direction: column; justify-content: center;
}
.slide.active { opacity: 1; transform: scale(1); }
.s-brand {
  align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(118,180,239,0.20), transparent 55%),
    radial-gradient(120% 120% at 50% 120%, rgba(166,115,224,0.20), transparent 55%),
    linear-gradient(160deg, #1c2c3a, #11202b);
}
.s-brand .brand-wave { width: clamp(120px, 30%, 200px); margin-bottom: clamp(14px, 3%, 26px); }
.s-brand .brand-logo { width: clamp(150px, 42%, 300px); height: auto; display: block; }
.s-brand .brand-tag {
  margin-top: clamp(10px, 2%, 18px);
  font-size: clamp(11px, 1.5vw, 15px); letter-spacing: 0.04em; color: var(--ink-dim); font-weight: 300;
}
.screen-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 26px; background: var(--grad-wave); display: flex; align-items: center; overflow: hidden;
}
.screen-ticker .tk {
  white-space: nowrap; font-size: 11px; font-weight: 500; color: #fff;
  letter-spacing: .04em; animation: ticker 14s linear infinite; padding-left: 100%;
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* ── Trust/Marquee ── */
.trust {
  padding: clamp(28px,5vw,46px) 0;
  border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
}
.trust .lbl { text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .item { font-size: clamp(16px,2vw,22px); font-weight: 400; color: var(--ink-faint); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ── Sections ── */
section.block { padding: clamp(40px, 5.5vw, 84px) 0; position: relative; }
.h2 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.02; }
.lead { font-size: clamp(15px,1.4vw,19px); color: var(--ink-dim); max-width: 56ch; margin-top: 22px; font-weight: 300; }

/* ── Feature cards ── */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius-sq);
  border: 1px solid var(--surface-border); background: var(--surface);
  padding: clamp(24px,2.6vw,34px); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(118,180,239,0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--surface-border-strong); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(118,180,239,0.18), rgba(166,115,224,0.12));
  border: 1px solid var(--surface-border-strong);
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--screen); }
.card h3 { font-size: clamp(18px,1.7vw,22px); font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { position: relative; padding-top: 30px; }
.step .num {
  font-size: clamp(40px,5vw,64px); font-weight: 200; line-height: 1;
  background: var(--grad-wave); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: clamp(18px,1.8vw,23px); font-weight: 500; margin: 16px 0 10px; }
.step p { color: var(--ink-dim); font-size: 14.5px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 1px; background: var(--grad-wave); }

/* ── Use cases ── */
.uses { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.use {
  position: relative; border-radius: var(--radius-sq); overflow: hidden; min-height: 260px;
  border: 1px solid var(--surface-border); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; transition: transform .5s var(--ease);
}
.use:hover { transform: translateY(-6px); }
.use.tall { grid-row: span 2; min-height: 0; }
.use-tex { position: absolute; inset: 0; z-index: 0; }
.use-tex.is-rays {
  background:
    radial-gradient(80% 70% at 50% 18%, rgba(255,255,255,0.10), transparent 60%),
    conic-gradient(from 210deg at 50% 130%, rgba(166,115,224,0.85), rgba(118,180,239,0.55), rgba(214,120,200,0.8), rgba(118,180,239,0.55), rgba(166,115,224,0.85)),
    linear-gradient(160deg,#3a2454,#171028);
}
.use-tex.is-dots {
  background:
    radial-gradient(90% 80% at 70% 20%, rgba(118,180,239,0.55), transparent 55%),
    radial-gradient(rgba(150,200,255,0.9) 1.6px, transparent 1.8px) 0 0/13px 13px,
    linear-gradient(160deg,#22466e,#142436);
}
.use-tex.is-dots2 {
  background:
    radial-gradient(90% 80% at 30% 18%, rgba(198,160,240,0.6), transparent 55%),
    radial-gradient(rgba(214,175,255,0.85) 1.5px, transparent 1.8px) 0 0/14px 14px,
    linear-gradient(160deg,#3a2a5c,#1a1430);
}
.use-tex.is-grid {
  background:
    radial-gradient(80% 70% at 50% 12%, rgba(118,180,239,0.45), transparent 55%),
    linear-gradient(rgba(118,180,239,0.45) 1px, transparent 1px) 0 0/100% 17px,
    linear-gradient(90deg, rgba(118,180,239,0.45) 1px, transparent 1px) 0 0/17px 100%,
    linear-gradient(160deg,#1f3a52,#122231);
}
.use-tex.is-scan {
  background:
    radial-gradient(80% 70% at 50% 14%, rgba(166,115,224,0.5), transparent 55%),
    repeating-linear-gradient(0deg, rgba(214,160,255,0.55) 0 2px, transparent 2px 7px),
    linear-gradient(160deg,#34245a,#181030);
}
.use img.bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.use .scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(16,29,40,0) 38%, rgba(16,29,40,0.55) 72%, rgba(16,29,40,0.92) 100%); }
.use h4 { font-size: 18px; font-weight: 500; position: relative; z-index: 3; }
.use p { font-size: 13px; color: var(--ink-dim); margin-top: 4px; position: relative; z-index: 3; }

/* ── Testimonials ── */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quote {
  border-radius: var(--radius-sq); border: 1px solid var(--surface-border);
  background: var(--surface); padding: clamp(24px,2.4vw,32px);
}
.quote .mark { font-size: 46px; line-height: .6; color: var(--violet); font-family: Georgia, serif; }
.quote p { font-size: 16px; margin: 14px 0 22px; color: var(--ink); font-weight: 300; line-height: 1.55; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-wave); flex: 0 0 auto; }
.quote .who .nm { font-size: 14px; font-weight: 500; }
.quote .who .rl { font-size: 12px; color: var(--ink-faint); }

/* ── CTA / Contact ── */
.cta { position: relative; }
.cta-card {
  border-radius: var(--radius-lg); border: 1px solid var(--surface-border-strong);
  background: linear-gradient(160deg, rgba(118,180,239,0.12), rgba(166,115,224,0.08));
  overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,64px);
  align-items: center; padding: clamp(34px,4vw,68px);
}
.cta-intro, .cta-form { position: relative; z-index: 1; }
.cta-card .wave-deco { position: absolute; right: -10%; top: -30%; width: 60%; opacity: .5; pointer-events: none; }
.cta-card h2 { font-size: clamp(28px,3.6vw,48px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.02; }
.cta-card .lead { margin-top: 18px; }
.cta-stats { margin-top: 30px; }
.cta-stats .cstat { font-size: clamp(15px,1.4vw,18px); font-weight: 400; color: var(--ink-dim); padding: 6px 0; }

/* ── CMS Form (x-cormo-form) ── */
.cormo-form .cf-form { display: grid; gap: 20px; }
.cormo-form .cf-field { display: flex; flex-direction: column; gap: 7px; }
.cormo-form .cf-label { font-size: 12px; letter-spacing: .04em; color: var(--ink-dim); }
.cormo-form .cf-req { color: var(--violet); margin-left: 2px; }
.cormo-form .cf-input {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(0,0,0,0.18); border: 1px solid var(--surface-border-strong);
  border-radius: 12px; padding: 14px 17px; transition: border-color .3s, background .3s; width: 100%;
}
.cormo-form .cf-input::placeholder { color: var(--ink-faint); }
.cormo-form .cf-input:focus { outline: none; border-color: var(--screen); background: rgba(0,0,0,0.28); }
.cormo-form textarea.cf-input { resize: vertical; min-height: 92px; }
.cormo-form .cf-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-faint); }
.cormo-form .cf-checkbox input { margin-top: 3px; accent-color: var(--violet); flex: 0 0 auto; }
.cormo-form .cf-radio-group { display: flex; flex-direction: column; gap: 8px; }
.cormo-form .cf-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-dim); }
.cormo-form .cf-radio input { accent-color: var(--violet); }
.cormo-form .cf-errors { font-size: 12px; color: #f87171; margin-top: 4px; }
.cormo-form .cf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; padding: 15px 28px;
  color: #fff; background: var(--grad-wave); background-size: 160% 160%; background-position: 0% 50%;
  transition: transform .35s var(--ease), box-shadow .35s, background-position .35s;
  cursor: pointer; width: 100%; margin-top: 4px;
}
.cormo-form .cf-submit:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 44px -14px rgba(166,115,224,0.7); }
.cormo-form .cf-success { display: none; text-align: center; padding: 30px 10px; }
.cormo-form .cf-success.show { display: block; }
.cormo-form .cf-success p { color: var(--ink-dim); }

/* ── Lead form (sekcja kontaktowa 1:1 z oryginałem) ── */
.lf { display: grid; gap: 20px; }
.lf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lf-field { display: flex; flex-direction: column; gap: 7px; }
.lf-field label { font-size: 12px; letter-spacing: .04em; color: var(--ink-dim); }
.lf-field input, .lf-field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(0,0,0,0.18); border: 1px solid var(--surface-border-strong);
  border-radius: 12px; padding: 14px 17px;
  transition: border-color .3s, background .3s;
  width: 100%;
}
.lf-field input::placeholder, .lf-field textarea::placeholder { color: var(--ink-faint); }
.lf-field input:focus, .lf-field textarea:focus { outline: none; border-color: var(--screen); background: rgba(0,0,0,0.28); }
.lf-field textarea { resize: vertical; min-height: 92px; }
.lf-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--ink-faint); cursor: pointer;
}
.lf-consent input { margin-top: 3px; accent-color: var(--violet); flex: 0 0 auto; }
.form-note { font-size: 13px; color: var(--ink-dim); }
.lf-ok { display: none; text-align: center; padding: 30px 10px; }
.lf-ok.show { display: block; }
.lf-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad-wave); display: flex; align-items: center; justify-content: center;
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--surface-border); padding: clamp(48px,6vw,72px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer a, .footer p.fi { display: block; font-size: 14px; color: var(--ink-dim); margin-bottom: 10px; transition: color .3s; }
.footer a:hover { color: var(--ink); }
.footer .copy {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--surface-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-faint);
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .14s; }
.reveal.d2 { transition-delay: .28s; }
.reveal.d3 { transition-delay: .42s; }
.reveal.d4 { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .screen-ticker .tk { animation: none !important; }
}

/* ── Mobile menu ── */
.mmenu {
  position: fixed; inset: 0; z-index: 80; background: rgba(16,29,40,0.96); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; padding: 30px var(--pad);
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mmenu.open { transform: none; }
.mmenu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mmenu .mclose {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--surface-border-strong); color: var(--ink); font-size: 22px;
}
.mmenu a { font-size: 28px; font-weight: 200; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }

/* ── Hero variants ── */
html[data-hero="centered"] .hero { text-align: center; }
html[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; justify-items: center; }
html[data-hero="centered"] .eyebrow { justify-content: center; }
html[data-hero="centered"] .hero-sub { max-width: 52ch; margin-inline: auto; }
html[data-hero="centered"] .hero-cta { justify-content: center; }
html[data-hero="centered"] .hero-meta { justify-content: center; }
html[data-hero="centered"] .hero-device { margin-top: clamp(40px,6vw,72px); width: 100%; max-width: 760px; }
@media (min-width: 881px) {
  html[data-hero="reverse"] .hero-copy { order: 2; }
  html[data-hero="reverse"] .hero-device { order: 1; }
  html[data-hero="reverse"] .hero-wave { right: auto; left: -6%; transform: scaleX(-1); }
}

/* ── Feature variants ── */
html[data-feat="list"] .feat-grid { gap: 0; }
html[data-feat="list"] .card { background: transparent; border: none; border-top: 1px solid var(--surface-border); border-radius: 0; padding: 30px 26px 30px 0; }
html[data-feat="list"] .card::before { display: none; }
html[data-feat="list"] .card:hover { transform: none; background: transparent; }

/* ── Motion: lively ── */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="lively"] .grad-text { background-size: 220% 100%; animation: shimmer 6s ease-in-out infinite; }
  html[data-motion="lively"] .hero-device { animation: floaty 7s ease-in-out infinite; }
  html[data-motion="lively"] .hero-wave { animation: floaty 9s ease-in-out infinite; }
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Article / Post / Page ── */
.if-article-page { padding-top: 76px; }
.if-article { max-width: 800px; margin: 0 auto; padding: clamp(48px,6vw,80px) var(--pad); }
.if-article-hero-img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: var(--radius-sq); margin-bottom: clamp(32px,4vw,48px);
  border: 1px solid var(--surface-border);
}
.if-article .if-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.if-article .if-cat {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--screen); border: 1px solid rgba(118,180,239,0.4);
  border-radius: var(--radius-pill); padding: 4px 12px;
}
.if-article h1 {
  font-size: clamp(28px,4vw,54px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 16px;
}
.if-article .if-meta {
  font-size: 13px; color: var(--ink-faint);
  margin-bottom: clamp(32px,4vw,48px);
  border-bottom: 1px solid var(--surface-border); padding-bottom: 24px;
}
.if-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-dim); transition: color .3s; margin-bottom: 32px;
}
.if-back:hover { color: var(--ink); }
.if-back svg { transition: transform .3s var(--ease); }
.if-back:hover svg { transform: translateX(-4px); }

/* Dark theme for .cm-content */
.cm-content { color: var(--ink); }
.cm-content h1,.cm-content h2,.cm-content h3,.cm-content h4,.cm-content h5,.cm-content h6 {
  color: var(--off-white); font-weight: 300; margin: 1.6em 0 .6em; letter-spacing: -0.01em;
}
.cm-content p { margin-bottom: 1.2em; color: var(--ink-dim); }
.cm-content a { color: var(--screen); text-decoration: underline; text-underline-offset: 3px; }
.cm-content a:hover { color: var(--light); }
.cm-content ul,.cm-content ol { padding-left: 1.6em; margin-bottom: 1.2em; color: var(--ink-dim); }
.cm-content li { margin-bottom: .4em; }
.cm-content blockquote {
  border-left: 3px solid var(--violet); margin: 1.6em 0;
  padding: 16px 24px; background: var(--surface); border-radius: 0 12px 12px 0;
  color: var(--ink-dim); font-style: italic;
}
.cm-content strong { color: var(--off-white); font-weight: 500; }
.cm-content code {
  background: rgba(118,180,239,0.12); border: 1px solid var(--surface-border);
  border-radius: 6px; padding: 2px 8px; font-size: .9em; color: var(--screen);
}
.cm-content pre {
  background: var(--dark-blue-3); border: 1px solid var(--surface-border);
  border-radius: 12px; padding: 20px; overflow-x: auto; margin-bottom: 1.4em;
}
.cm-content pre code { background: none; border: none; padding: 0; color: var(--off-white); }
.cm-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.cm-content th { background: var(--surface-2); padding: 10px 14px; font-weight: 500; text-align: left; border: 1px solid var(--surface-border); color: var(--off-white); }
.cm-content td { padding: 10px 14px; border: 1px solid var(--surface-border); color: var(--ink-dim); }
.cm-content img { border-radius: 12px; margin: 1.4em 0; }
.cm-content hr { border: none; border-top: 1px solid var(--surface-border); margin: 2em 0; }

/* Dark pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 10px; padding: 0 10px;
  font-size: 14px; border: 1px solid var(--surface-border);
  background: var(--surface); color: var(--ink-dim); transition: all .3s;
}
.pagination a:hover { border-color: var(--screen); color: var(--ink); }
.pagination .active span, .pagination [aria-current="page"] span {
  background: var(--grad-wave); border-color: transparent; color: #fff;
}
.pagination .disabled span { opacity: .4; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .uses { grid-template-columns: repeat(2,1fr); }
  .use.tall { grid-row: auto; min-height: 260px; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--surface-border-strong);
  }
  .nav-burger svg { width: 22px; height: 22px; stroke: var(--ink); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .device { max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cormo-form .cf-grid2 { grid-template-columns: 1fr; }
  .lf-2 { grid-template-columns: 1fr; }
}
