:root {
  --bg: #07070a;
  --surface: #0d0d14;
  --surface2: #11111b;
  --text: #f5f6fa;
  --muted: rgba(245,246,250,.68);
  --muted2: rgba(245,246,250,.48);
  --primary: #6d5bff;
  --primary2: #8b5cf6;
  --accent: #22c55e;
  --border: rgba(255,255,255,.12);
  --borderStrong: rgba(255,255,255,.16);
  --shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 42px rgba(0,0,0,.55);
  --btnRadius: 10px;
  --inputRadius: 12px;
  --max: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: "DM Serif Display", ui-serif, Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(109,91,255,.20), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(34,197,94,.10), transparent 55%),
    var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: rgba(245,246,250,.92); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-3); }

/* ─── Nav ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,10,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borderStrong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand-word { font-size: 25px; font-weight: 800; }
.navlinks { display: flex; gap: 2px; align-items: center; }
.navlinks a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 17px;
  color: rgba(245,246,250,.72);
  font-weight: 600;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.navlinks a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.navlinks a.active { color: var(--text); background: rgba(255,255,255,.06); }
.navlinks .nav-cta {
  margin-left: var(--space-2);
  border: 1px solid rgba(109,91,255,.55);
  background: rgba(109,91,255,.16);
  color: var(--text);
}
.navlinks .nav-cta:hover { background: rgba(109,91,255,.24); border-color: rgba(109,91,255,.75); transform: translateY(-1px); }
@media (max-width: 900px) {
  .nav {
    height: auto;
    min-height: 64px;
    gap: 12px;
    padding: 12px 0;
  }
  .navlinks {
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .navlinks a {
    padding: 7px 9px;
    font-size: 13px;
  }
}
@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .navlinks {
    width: 100%;
    justify-content: flex-start;
  }
  .navlinks a {
    font-size: 14px;
  }
}

/* ─── Primitives ─── */
.panel {
  border: 1px solid var(--borderStrong);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--btnRadius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.btn.primary {
  border-color: rgba(109,91,255,.75);
  background: linear-gradient(180deg, rgba(109,91,255,.38), rgba(109,91,255,.18));
}
.btn.primary:hover { background: linear-gradient(180deg, rgba(109,91,255,.45), rgba(109,91,255,.22)); }
.btn.ghost { color: rgba(245,246,250,.72); background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
/* Vypnuté tlačítko musí být na první pohled vypnuté — jinak do něj lidi klikají
   a čekají, že se něco stane. Platí i pro `.primary`, proto ta specifičnost. */
/* `.disabled` je pro odkazy — atribut `disabled` na <a> nic nedělá, takže by
   šlo pořád kliknout. `pointer-events: none` klik zabije, `tabindex="-1"`
   a `aria-disabled` v HTML řeší klávesnici a odečítače. */
.btn.disabled, .btn.primary.disabled { pointer-events: none; }
.btn[disabled], .btn.primary[disabled], .btn.disabled, .btn.primary.disabled {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: rgba(245,246,250,.38);
  cursor: not-allowed;
  transform: none;
}
.btn[disabled]:hover, .btn.primary[disabled]:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  transform: none;
}

.input {
  width: 100%;
  border-radius: var(--inputRadius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font: inherit;
}
.input::placeholder { color: rgba(245,246,250,.45); }
.input:focus { border-color: rgba(109,91,255,.55); }

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(245,246,250,.72);
}

/* ─── Sections ─── */
.section { padding: var(--space-6) 0; }
.section-head { margin-bottom: var(--space-4); }
.section-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(109,91,255,.95);
}
.section-title {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -.25px;
  font-weight: 800;
  color: rgba(245,246,250,.92);
  line-height: 1.25;
}
.subtle { margin: 0; color: rgba(245,246,250,.62); font-size: 15px; line-height: 1.85; max-width: 72ch; }
.right { display: flex; justify-content: flex-end; margin-top: var(--space-3); }

/* ─── Hero ─── */
.hero { padding: var(--space-6) 0 var(--space-5); }
.hero-panel { padding: var(--space-5); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(109,91,255,.55);
  background: rgba(109,91,255,.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
}
.chip.muted { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(245,246,250,.72); }

.h1 {
  margin: var(--space-3) 0 0;
  font-size: 47px;
  line-height: 1.08;
  letter-spacing: -.8px;
  font-weight: 800;
}
@media (max-width: 560px) { .h1 { font-size: 35px; } }
.lead { margin: var(--space-3) 0 0; color: rgba(245,246,250,.72); font-size: 16px; line-height: 1.9; max-width: 58ch; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); }
.note {
  margin-top: var(--space-3);
  border-left: 2px solid rgba(109,91,255,.7);
  padding: 10px var(--space-2);
  background: rgba(109,91,255,.06);
  color: rgba(245,246,250,.65);
  font-size: 14px;
  line-height: 1.75;
}

/* ─── Mock (dashboard) ─── */
.mock {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: var(--space-3);
}
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: var(--space-2); }
.mock-title { font-family: var(--mono); font-size: 12px; color: rgba(245,246,250,.72); letter-spacing: .08em; text-transform: uppercase; }
.dots { display: flex; gap: 6px; opacity: .7; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.25); }

.mock-flow {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr 12px 1fr;
  gap: 10px;
  align-items: center;
  margin: var(--space-2) 0 var(--space-3);
}
@media (max-width: 560px) { .mock-flow { grid-template-columns: 1fr; } .arrow { display: none; } }
.step { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.ico.g { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); }
.ico.p { border-color: rgba(139,92,246,.50); background: rgba(139,92,246,.12); }
.ico.b { border-color: rgba(59,130,246,.50); background: rgba(59,130,246,.12); }
.ico.o { border-color: rgba(249,115,22,.50); background: rgba(249,115,22,.12); }
.ico.y { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.10); }
.lbl { font-size: 12px; color: rgba(245,246,250,.7); line-height: 1.25; }
.arrow { height: 1px; background: linear-gradient(90deg, rgba(109,91,255,.0), rgba(109,91,255,.9), rgba(109,91,255,.0)); opacity: .8; }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: var(--space-2);
}
@media (max-width: 560px) { .mock-stats { grid-template-columns: 1fr 1fr; } }
.stat { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); padding: 10px 12px; }
.stat .k { font-size: 11px; font-family: var(--mono); color: rgba(245,246,250,.55); text-transform: uppercase; letter-spacing: .1em; }
.stat .v { font-size: 17px; font-weight: 800; margin-top: 4px; }
.mock-chart {
  height: 86px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.mock-chart::before{
  content:"";
  position:absolute; inset: 10px 10px 14px 10px;
  background:
    radial-gradient(circle at 10% 70%, rgba(109,91,255,.65), transparent 35%),
    radial-gradient(circle at 40% 35%, rgba(34,197,94,.32), transparent 38%),
    radial-gradient(circle at 70% 60%, rgba(109,91,255,.55), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(34,197,94,.25), transparent 40%);
  filter: blur(10px);
  opacity: .9;
}

/* ─── Cards ─── */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .cards4 { grid-template-columns: 1fr 1fr; } .cards3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }

.card { padding: 14px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-top.tight { align-items: center; }
.card h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.card p { margin: 0 0 10px; color: rgba(245,246,250,.7); font-size: 14px; line-height: 1.75; }

.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(245,246,250,.72);
  flex: 0 0 auto;
}
.badge.p { border-color: rgba(109,91,255,.55); background: rgba(109,91,255,.12); }
.badge.g { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.10); }
.badge.b { border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.10); }
.badge.o { border-color: rgba(249,115,22,.55); background: rgba(249,115,22,.10); }
.badge.y { border-color: rgba(250,204,21,.55); background: rgba(250,204,21,.10); }

.bullets { margin: 10px 0 0; padding: 0 0 0 16px; color: rgba(245,246,250,.7); }
.bullets li { margin: 6px 0; font-size: 14px; line-height: 1.65; }

.kv { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; color: rgba(245,246,250,.7); }
.kv span { display: inline-block; width: 74px; color: rgba(245,246,250,.52); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ─── Showcase ─── */
.showcase { padding: var(--space-4); }
.flow { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .flow { grid-template-columns: 1fr; } }
.flow-col { display: grid; gap: 12px; }
.node { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.node-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); flex: 0 0 auto; }
.node-ico.g { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); }
.node-ico.p { border-color: rgba(139,92,246,.50); background: rgba(139,92,246,.12); }
.node-ico.b { border-color: rgba(59,130,246,.50); background: rgba(59,130,246,.12); }
.node-ico.o { border-color: rgba(249,115,22,.50); background: rgba(249,115,22,.12); }
.node-ico.y { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.10); }
.node-title { font-weight: 800; letter-spacing: .01em; }
.node-sub { color: rgba(245,246,250,.62); font-size: 13px; margin-top: 2px; }

.flow-box { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); padding: 12px; }
.flow-box-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.pillrow { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-weight: 800; font-size: 13px; }
.pill-ok { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.10); }
.pill-mid { border-color: rgba(250,204,21,.55); background: rgba(250,204,21,.08); }
.pill-no { border-color: rgba(249,115,22,.55); background: rgba(249,115,22,.08); }

.dash { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02); padding: 10px; }
.dash-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px 10px; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-row:last-child { border-bottom: none; }
.dash-k { color: rgba(245,246,250,.55); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dash-v { font-weight: 900; }
.dash-chart { height: 70px; margin-top: 10px; border: 1px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.02); position: relative; overflow:hidden; }
.dash-chart::before { content:""; position:absolute; inset: 8px; background: radial-gradient(circle at 15% 60%, rgba(109,91,255,.55), transparent 40%), radial-gradient(circle at 70% 30%, rgba(34,197,94,.24), transparent 40%); filter: blur(10px); opacity:.9; }

.showcase-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); justify-content: flex-end; }

/* ─── Process ─── */
.process { padding: var(--space-4); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.stepno { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; border: 1px solid rgba(109,91,255,.55); background: rgba(109,91,255,.12); flex: 0 0 auto; }
.steptitle { font-weight: 900; letter-spacing: .01em; }
.stepsub { margin-top: 2px; color: rgba(245,246,250,.62); font-size: 14px; line-height: 1.7; }

/* ─── Contact ─── */
.contact { padding: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-3); }
.contact-email {
  cursor: default;
}
.contact-form { display: grid; gap: 10px; }
.contact-form label span { display: block; margin-bottom: 6px; color: rgba(245,246,250,.62); font-size: 14px; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-status {
  min-height: 20px;
  margin: 0;
  color: rgba(245,246,250,.68);
  font-size: 14px;
}
.form-status[data-state="success"] {
  color: #79d46d;
}
.form-status[data-state="error"] {
  color: #ff7a8a;
}

/* ─── Page header ─── */
.page-hero { padding: var(--space-6) 0 var(--space-4); }
.page-hero h1 { margin: 0; font-size: 35px; letter-spacing: -.4px; line-height: 1.15; }
.page-hero p { margin: 10px 0 0; color: rgba(245,246,250,.62); max-width: 72ch; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--borderStrong); padding: var(--space-6) 0; background: rgba(255,255,255,.02); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-brand { font-weight: 900; letter-spacing: .02em; }
.footer-sub { color: rgba(245,246,250,.62); font-size: 14px; margin-top: 8px; line-height: 1.8; }
.footer-mail { color: rgba(245,246,250,.88); text-decoration: underline; text-decoration-color: rgba(109,91,255,.55); text-underline-offset: 3px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: rgba(245,246,250,.72); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 10px; color: rgba(245,246,250,.45); font-size: 13px; text-align: right; }

/* ─── Lightbox (ke starším stránkám / assets) ─── */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 9999; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.lightbox__figure { position: relative; margin: 0; height: 100%; display: grid; place-items: center; padding: 24px; }
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(0,0,0,.5); }
.lightbox__img {
  max-width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,.08);
  background: #000;
}

/* ─── Systems overview page ─── */
.systems-overview {
  display: grid;
  gap: 18px;
}
.system-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
}
.system-copy h2 {
  margin: 12px 0 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}
.system-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(245,246,250,.72);
  font-size: 16px;
  line-height: 1.75;
}
.demo-slot {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.demo-label {
  color: rgba(245,246,250,.52);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-frame {
  min-height: 245px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(139,92,246,.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    radial-gradient(circle at 70% 20%, rgba(109,91,255,.18), transparent 34%);
  overflow: hidden;
}
.demo-frame--video {
  position: relative;
}
.demo-frame--video.is-expanded + .demo-filmstrip {
  display: none;
}
.demo-frame--video.is-expanded {
  position: fixed;
  inset: 2vh 2vw;
  z-index: 80;
  min-height: auto;
  border-color: rgba(139,92,246,.7);
  background:
    linear-gradient(180deg, rgba(14,16,28,.96), rgba(9,11,18,.98)),
    radial-gradient(circle at 70% 20%, rgba(109,91,255,.18), transparent 34%);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.demo-frame--video.is-expanded::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5,6,12,.58);
  backdrop-filter: blur(6px);
}
.demo-expand-toggle {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(10,12,20,.68);
  color: rgba(245,246,250,.88);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
}
.demo-expand-toggle:hover {
  background: rgba(18,20,30,.9);
}
.demo-video {
  width: 100%;
  height: 100%;
  min-height: 245px;
  display: block;
  object-fit: cover;
  border: 0;
  background: #000;
}
.demo-frame--video.is-expanded .demo-video {
  object-fit: contain;
}
.demo-frame--video.is-expanded.is-inbox-02 .demo-video {
  object-fit: cover;
}
.demo-image {
  width: 100%;
  height: 100%;
  min-height: 245px;
  display: block;
  object-fit: contain;
  object-position: center;
}
.demo-image--cover {
  object-fit: cover;
  object-position: center top;
}
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.demo-gallery--newsletter {
  width: 100%;
  align-items: start;
}

.demo-filmstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.demo-thumb {
  aspect-ratio: 16 / 9;
  display: block;
  width: clamp(140px, 22%, 190px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,6,12,.55);
  cursor: zoom-in;
}
.demo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.demo-frame--newsletter {
  min-height: 245px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-link {
  width: 100%;
  display: block;
  cursor: zoom-in;
}
.newsletter-link--card {
  aspect-ratio: 1661 / 947;
}
.newsletter-link--shot {
  aspect-ratio: 1240 / 880;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(5,6,12,.58);
}
.demo-gallery:has(> .newsletter-link--shot:only-child) {
  grid-template-columns: 1fr;
}
.demo-gallery:has(> .newsletter-link--shot:only-child) .newsletter-link--shot {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.newsletter-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 6, 12, .82);
  backdrop-filter: blur(8px);
}
.lightbox-overlay.is-open {
  display: flex;
}
.lightbox-dialog {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 88vh;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0a0d14;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(10,12,20,.78);
  color: rgba(245,246,250,.9);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(18,20,30,.95);
}
body.lightbox-open {
  overflow: hidden;
}
.video-modal-dialog {
  width: min(92vw, 1400px);
  max-height: 88vh;
}
.video-modal-video {
  width: 100%;
  max-height: 88vh;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #000;
}
.demo-shot,
.demo-shot a {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-height: 245px;
  display: block;
}
.demo-shot--framed,
.demo-shot--framed a {
  width: min(88%, 440px);
  height: auto;
  min-height: 0;
}
.demo-shot--framed {
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-shot--framed a {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(5,6,12,.58);
}
.demo-shot a {
  cursor: zoom-in;
}
.demo-mini,
.demo-stats,
.demo-flow {
  width: min(88%, 440px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(5,6,12,.58);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.demo-mini {
  padding: 20px;
}
.demo-mini span {
  display: block;
  color: rgba(245,246,250,.55);
  font-size: 14px;
}
.demo-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}
.demo-mini p {
  margin: 12px 0 0;
  color: #79d46d;
  font-size: 14px;
}
.demo-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.demo-flow span {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,.10);
  color: rgba(245,246,250,.78);
  font-size: 14px;
  text-align: center;
}
.demo-flow span:last-child {
  border-right: 0;
}
.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.demo-stats div {
  min-height: 90px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.demo-stats div:last-child {
  border-right: 0;
}
.demo-stats b {
  font-size: 23px;
}
.demo-stats span {
  color: rgba(245,246,250,.58);
  font-size: 13px;
}
@media (max-width: 860px) {
  .system-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .demo-frame {
    min-height: 210px;
  }
  .demo-video {
    min-height: 210px;
  }
  .demo-frame--video.is-expanded {
    inset: 2vh 2vw;
  }
  .demo-gallery {
    grid-template-columns: 1fr;
  }
  .demo-thumb {
    width: calc(50% - 5px);
  }
  .demo-image {
    min-height: 210px;
  }
  .lightbox-overlay {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .demo-flow,
  .demo-stats {
    grid-template-columns: 1fr;
  }
  .demo-flow span,
  .demo-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .demo-flow span:last-child,
  .demo-stats div:last-child {
    border-bottom: 0;
  }
}

/* ─── Email homepage ─── */
.home-page {
  background:
    radial-gradient(circle at 20% 10%, rgba(109,91,255,.18), transparent 32%),
    radial-gradient(circle at 83% 18%, rgba(109,91,255,.16), transparent 34%),
    linear-gradient(180deg, #080810 0%, #090a12 42%, #07070a 100%);
  overflow-x: hidden;
}
.home-page .wrap,
.email-wrap {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding-inline: clamp(18px, 4.5vw, 72px);
}
.home-page .topbar {
  background: rgba(7,7,13,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.home-page .nav { height: 70px; }
.home-page .brand-word {
  font-size: 25px;
  font-weight: 800;
}
.home-page .navlinks { gap: 28px; }
.home-page .navlinks a {
  padding: 8px 0;
  font-size: 17px;
  color: rgba(255,255,255,.88);
  background: transparent;
}
.home-page .navlinks a:hover,
.home-page .navlinks a.active {
  color: #fff;
  background: transparent;
}
.home-page .navlinks .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 30px;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid rgba(139,92,246,.65);
  background: linear-gradient(135deg, #7257ff, #4d2ed9);
  box-shadow: 0 0 24px rgba(109,91,255,.35);
}
@media (max-width: 980px) {
  .home-page .navlinks {
    gap: 10px;
  }
  .home-page .navlinks .nav-cta {
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .home-page .nav {
    height: auto;
    min-height: 72px;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .home-page .brand-word {
    font-size: 20px;
  }
  .home-page .navlinks {
    width: 100%;
    justify-content: flex-start;
  }
  .home-page .navlinks a {
    font-size: 14px;
  }
}
.email-hero {
  padding: 54px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.email-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 570px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
}
@media (max-width: 1320px) {
  .email-hero-grid { grid-template-columns: 1fr; }
}
.email-copy,
.email-dashboard,
.dash-main,
.dash-inbox,
.dash-reply {
  min-width: 0;
}
.email-kicker {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid rgba(139,92,246,.8);
  border-radius: 12px;
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.email-title {
  margin: 0;
  max-width: 610px;
  font-size: clamp(45px, 4vw, 57px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
}
.email-title span {
  color: #8b6cff;
}
.email-lead {
  max-width: 570px;
  margin: 22px 0 26px;
  color: rgba(255,255,255,.72);
  font-size: 21px;
  line-height: 1.45;
}
.email-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  margin: 0 0 32px;
  gap: 0;
}
.email-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  background: rgba(12,12,20,.58);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.25;
}
.email-benefit + .email-benefit { margin-left: -1px; }
.email-benefit:first-child { border-radius: 12px 0 0 12px; }
.email-benefit:last-child { border-radius: 0 12px 12px 0; }
.email-benefit span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(139,92,246,.45);
  background: rgba(139,92,246,.10);
  color: #a78bfa;
}
.email-benefit svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .email-benefits { grid-template-columns: 1fr 1fr; gap: 0; }
  .email-benefit + .email-benefit { margin-left: 0; }
  .email-benefit:nth-child(2),
  .email-benefit:nth-child(4) { margin-left: -1px; }
  .email-benefit:nth-child(3),
  .email-benefit:nth-child(4) { margin-top: -1px; }
  .email-benefit:first-child { border-radius: 12px 0 0 0; }
  .email-benefit:nth-child(2) { border-radius: 0 12px 0 0; }
  .email-benefit:nth-child(3) { border-radius: 0 0 0 12px; }
  .email-benefit:last-child { border-radius: 0 0 12px 0; }
}
@media (max-width: 460px) {
  .email-benefits { grid-template-columns: 1fr; }
  .email-benefit,
  .email-benefit:first-child,
  .email-benefit:nth-child(2),
  .email-benefit:nth-child(3),
  .email-benefit:last-child { border-radius: 0; }
  .email-benefit:nth-child(2),
  .email-benefit:nth-child(4) { margin-left: 0; }
  .email-benefit + .email-benefit { margin-top: -1px; }
  .email-benefit:first-child { border-radius: 12px 12px 0 0; }
  .email-benefit:last-child { border-radius: 0 0 12px 12px; }
}
.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 52px;
}
.email-btn {
  min-width: 232px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 18px;
}
.email-btn-primary {
  background: linear-gradient(135deg, #775cff, #512fd8);
  border: 1px solid rgba(139,92,246,.8);
  box-shadow: 0 16px 44px rgba(95,65,255,.35);
}
.email-btn-primary span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #5d3bef;
  font-size: 14px;
}
.email-btn-primary svg,
.email-btn-secondary svg { width: 15px; height: 15px; }
.email-btn-secondary {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.025);
}
.email-dashboard {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  width: 100%;
  min-height: 595px;
  border: 1px solid rgba(139,92,246,.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,20,31,.98), rgba(11,12,20,.98));
  box-shadow:
    0 0 55px rgba(109,91,255,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
@media (max-width: 720px) {
  .email-dashboard { grid-template-columns: 1fr; min-height: 0; }
  .dash-sidebar { display: none; }
}
.dash-sidebar {
  padding: 22px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(6,7,15,.46);
}
.dash-brand {
  margin: 0 0 26px;
  padding-left: 8px;
  font-size: 23px;
  font-weight: 800;
}
.dash-sidebar nav {
  display: grid;
  gap: 5px;
}
.dash-sidebar nav span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgba(255,255,255,.70);
  font-size: 14px;
}
.dash-sidebar nav i {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-style: normal;
}
.dash-sidebar nav svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.dash-sidebar nav span.active {
  background: rgba(139,92,246,.16);
  color: #fff;
}
.dash-sidebar b {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 12px;
}
.dash-main {
  min-width: 0;
  padding: 24px;
}
.dash-head h2 {
  margin: 0 0 18px;
  font-size: 21px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.dash-stats div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.dash-stats p {
  margin: 0 0 9px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}
.dash-stats strong {
  font-size: 21px;
}
.dash-stats span {
  float: right;
  margin-top: 5px;
  color: #7ade77;
  font-size: 12px;
}
@media (max-width: 720px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-width: 1320px) {
  .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dash-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .9fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .dash-content { grid-template-columns: 1fr; }
}
.dash-inbox,
.dash-reply {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
}
.dash-section-head h3 {
  margin: 0;
  font-size: 18px;
}
.dash-section-head span {
  color: rgba(255,255,255,.64);
  font-size: 13px;
}
.dash-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 14px 14px;
}
.dash-tabs span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.dash-tabs span.selected {
  border-color: rgba(139,92,246,.8);
  color: #fff;
}
.mail-row {
  display: grid;
  grid-template-columns: 130px minmax(120px, 1fr) auto 44px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.mail-row.active {
  background: rgba(139,92,246,.08);
}
.mail-row b {
  color: #fff;
  font-weight: 700;
}
.mail-row span {
  color: rgba(255,255,255,.58);
}
.mail-row em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(139,92,246,.16);
  color: #b6a1ff;
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
}
.mail-row time {
  color: rgba(255,255,255,.66);
  text-align: right;
}
@media (max-width: 560px) {
  .mail-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 10px 14px;
  }
  .mail-row span,
  .mail-row em { grid-column: 1 / -1; }
}
@media (min-width: 561px) and (max-width: 980px) {
  .mail-row {
    grid-template-columns: minmax(110px, .9fr) minmax(120px, 1fr) auto 44px;
  }
}
.dash-reply {
  padding: 18px 14px 14px;
}
.reply-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
}
.reply-status span { color: rgba(255,255,255,.72); }
.reply-status b {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: #79d46d;
  font-size: 12px;
}
.dash-reply p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.55;
}
.reply-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.reply-actions button,
.send-later {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.reply-actions .send {
  border-color: rgba(139,92,246,.7);
  background: linear-gradient(135deg, #7257ff, #4d2ed9);
}
.send-later {
  width: 100%;
  margin-top: 10px;
}
.email-features {
  padding: 64px 0 64px;
}
.features-kicker {
  margin: 0 0 34px;
  text-align: center;
  color: #8b6cff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-left: 1px solid rgba(255,255,255,.08);
}
.feature-item {
  min-height: 156px;
  padding: 24px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.feature-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid rgba(139,92,246,.25);
  background: rgba(139,92,246,.12);
  color: #a78bfa;
}
.feature-item svg { width: 18px; height: 18px; }
.feature-item:nth-child(3) span {
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.10);
  color: #77d883;
}
.feature-item:nth-child(4) span {
  border-color: rgba(245,158,11,.22);
  background: rgba(245,158,11,.10);
  color: #f0b566;
}
.feature-item:nth-child(5) span {
  border-color: rgba(59,130,246,.22);
  background: rgba(59,130,246,.10);
  color: #8ab4ff;
}
.feature-item h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}
.feature-item p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-item { padding: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 720px) {
  .email-title { font-size: 43px; }
  .email-lead { font-size: 19px; }
  .email-btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-left: 0; border-right: 0; }
}

/* ─── Email Asistent — workflows row ─── */
.email-row {
  row-gap: 22px;
}
.email-bullets {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}
.email-bullets li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  font-size: 15px;
  color: rgba(245,246,250,.78);
}
.email-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(139,92,246,.18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%238b5cf6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>") center / 12px no-repeat;
  border: 1px solid rgba(139,92,246,.45);
}

/* ─── Checkmark bullets — color variants (Newsletters / Outreach / Campaigns) ─── */
.bullets-check {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}
.bullets-check li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  font-size: 15px;
  color: rgba(245,246,250,.78);
}
.bullets-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}
.bullets-green li::before {
  background-color: rgba(34,197,94,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%2322c55e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>");
  border: 1px solid rgba(34,197,94,.45);
}
.bullets-teal li::before {
  background-color: rgba(20,184,166,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%2314b8a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>");
  border: 1px solid rgba(20,184,166,.45);
}
.bullets-brown li::before {
  background-color: rgba(180,120,70,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23b47846' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>");
  border: 1px solid rgba(180,120,70,.5);
}
/* .email-hero-video uses .demo-frame--video defaults; do not override width
   so fixed inset works correctly when expanded. */
.email-videos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.email-videos--narrow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}
.email-vid {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(5,6,12,.55);
}
.email-vid-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,12,20,.7);
  overflow: hidden;
}
.email-vid-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
button.email-vid-thumb {
  appearance: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.email-vid-thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  filter: brightness(1.7);
}
.email-vid-thumb--preview .email-vid-play {
  position: relative;
  z-index: 1;
  background: rgba(139,92,246,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
button.email-vid-thumb:hover {
  border-color: rgba(139,92,246,.55);
}
button.email-vid-thumb:hover .email-vid-play {
  transform: scale(1.06);
}
.email-vid-play {
  transition: transform .15s ease;
}
.email-vid-play {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(139,92,246,.85);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(109,91,255,.35);
}
.email-vid-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.email-vid-title {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(245,246,250,.94);
  line-height: 1.3;
  letter-spacing: 0;
}
.email-vid-title span {
  color: rgba(245,246,250,.55);
  margin-right: 4px;
  font-weight: 500;
}
.email-vid-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(245,246,250,.55);
  line-height: 1.5;
}
.email-vid-time {
  color: #8b5cf6;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
}

@media (max-width: 1100px) {
  .email-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .email-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-videos--narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
