:root {
  --bg: #020612;
  --bg-soft: #081225;
  --panel: rgba(8, 17, 36, 0.66);
  --panel-strong: rgba(8, 15, 32, 0.88);
  --panel-elevated: rgba(10, 20, 44, 0.9);
  --line: rgba(108, 229, 255, 0.18);
  --line-strong: rgba(108, 229, 255, 0.46);
  --text: #eef8ff;
  --muted: #9eb5c9;
  --muted-2: #6e86a1;
  --cyan: #6ce5ff;
  --blue: #5f86ff;
  --violet: #9d6dff;
  --pink: #ff67c9;
  --green: #63ffca;
  --gold: #ffd56d;
  --danger: #ff6b96;
  --shadow-lg: 0 42px 100px rgba(0, 5, 20, 0.5);
  --shadow-md: 0 24px 60px rgba(0, 8, 24, 0.32);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(108, 229, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(157, 109, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 70% 100%, rgba(95, 134, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #030711 0%, #050b18 42%, #02050c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c7f6ff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.16rem 0.45rem;
}

.site-shell { position: relative; overflow: hidden; }
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("shortmaker-command-bg.svg");
  background-position: center top;
  background-size: cover;
  opacity: 0.45;
}
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 18, 0.97), rgba(2, 6, 18, 0.74) 38%, rgba(2, 6, 18, 0.95)),
    linear-gradient(180deg, rgba(2, 6, 18, 0.08), rgba(2, 6, 18, 0.92));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 3vw, 34px);
  backdrop-filter: blur(20px);
  background: rgba(2, 8, 19, 0.68);
  border-bottom: 1px solid rgba(108, 229, 255, 0.10);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 0.03em; }
.brand-logo { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.95rem; }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav a:hover::after { transform: scaleX(1); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  opacity: 0;
  transition: opacity 180ms ease;
}
.button:hover::before { opacity: 1; }
.button > *,.button { z-index: 1; }
.button.primary {
  color: #04101f;
  background: linear-gradient(135deg, #7af2ff 0%, #6c9cff 42%, #ff73d2 100%);
  box-shadow: 0 16px 42px rgba(109, 151, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.45);
}
.button.secondary {
  color: var(--text);
  border-color: rgba(108, 229, 255, 0.24);
  background: linear-gradient(180deg, rgba(108, 229, 255, 0.12), rgba(108, 229, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.button.ghost {
  color: var(--muted);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.button.large { min-height: 58px; padding-inline: 26px; }
.button.small { min-height: 40px; padding-inline: 16px; font-size: 0.92rem; }
.button.full { width: 100%; }

.hero-modern {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
  max-width: min(var(--max), calc(100vw - 24px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) clamp(18px, 3vw, 24px) clamp(36px, 5vw, 64px);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; opacity: 0.72; }
.hero-orb-a { width: 36rem; height: 36rem; top: 0; right: -12rem; background: radial-gradient(circle, rgba(108,229,255,0.22), transparent 66%); }
.hero-orb-b { width: 28rem; height: 28rem; bottom: -8rem; left: 12%; background: radial-gradient(circle, rgba(157,109,255,0.18), transparent 66%); }
.hero-grid {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background-image:
    linear-gradient(rgba(108, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 38%, transparent 100%);
  transform: perspective(760px) rotateX(62deg) translateY(130px);
  opacity: 0.28;
}

.hero-copy-column, .hero-side-stack, .section, .footer, .stat-ribbon { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
}
.hero-copy-column h1 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 6.4vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  max-width: 820px;
}
.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.72;
  max-width: 740px;
}
.hero-actions, .mini-actions, .proof-badges, .download-meta, .trust-row, .bento-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin: 28px 0 22px; }
.mini-actions { margin-top: 16px; }
.trust-row span, .download-meta span, .proof-badges span, .bento-tags span, .status-pill, .live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(108, 229, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: #dbf9ff;
  background: rgba(9, 20, 39, 0.62);
  font-size: 0.9rem;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }

.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.highlight-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(10,18,36,0.84), rgba(6,12,24,0.82));
  box-shadow: var(--shadow-md);
}
.highlight-card strong { display: block; margin-bottom: 10px; font-size: 1rem; }
.highlight-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.accent-cyan { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 24px 60px rgba(11, 73, 93, 0.26); }
.accent-violet { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 24px 60px rgba(59, 33, 116, 0.25); }
.accent-gold { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 24px 60px rgba(128, 83, 11, 0.22); }

.hero-side-stack { display: grid; gap: 18px; }
.hero-stage-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(108, 229, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 229, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(255, 103, 201, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(11, 22, 44, 0.82), rgba(5, 11, 24, 0.9));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  padding: 22px;
}
.stage-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.stage-head h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.02; letter-spacing: -0.04em; }
.product-stage-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 14px; }
.stage-panel {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  overflow: hidden;
}
.panel-main { padding: 16px; }
.panel-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  background: rgba(2, 8, 19, 0.6);
  border: 1px solid rgba(108, 229, 255, 0.16);
  color: #d6fbff;
  margin-bottom: 12px;
}
.stage-mockup { width: 100%; border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,0.30); }
.stack-panel { display: grid; gap: 12px; padding: 14px; }
.mini-proof-card {
  min-height: 100px;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(14,25,50,0.84), rgba(9,13,28,0.8));
}
.mini-proof-card span { display: block; font-size: 0.85rem; color: var(--muted-2); margin-bottom: 8px; }
.mini-proof-card strong { font-size: 1rem; line-height: 1.25; }

.youtube-frame, .proof-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(108, 229, 255, 0.14);
  background: rgba(5, 14, 28, 0.9);
}
.youtube-frame { aspect-ratio: 16 / 9; }
.youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-placeholder, .youtube-fallback, .proof-video-fallback, .gallery-empty {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(108, 229, 255, 0.16), transparent 70%),
    rgba(2, 8, 19, 0.88);
}
.media-placeholder span, .youtube-fallback span, .proof-video-fallback span, .gallery-empty span { color: var(--muted); line-height: 1.55; }
.video-title { color: var(--muted); line-height: 1.55; margin: 14px 0 0; }

.stat-ribbon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-ribbon article {
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(108, 229, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 18, 37, 0.82), rgba(6, 10, 22, 0.82));
  box-shadow: var(--shadow-md);
}
.stat-ribbon strong { display: block; font-size: 1.25rem; margin-bottom: 10px; }
.stat-ribbon span { color: var(--muted); line-height: 1.5; }

.section {
  padding: clamp(72px, 9vw, 116px) clamp(18px, 3vw, 24px);
  max-width: var(--max);
  margin: 0 auto;
}
.section-heading { max-width: 900px; margin-bottom: 34px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading.narrow { max-width: 780px; }
.section-heading h2, .showcase-header h2, .download-panel h2, .contact-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4vw, 4.15rem);
  line-height: 0.97;
  letter-spacing: -0.06em;
}
.section-copy, .muted, .download-actions-card p, .workflow-copy p, .proof-callout p, .bento-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.proof-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; align-items: stretch; }
.proof-player-card, .proof-callout, .workflow-card, .bento-card, .download-panel, .contact-panel, .glass-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 229, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 19, 39, 0.86), rgba(5, 10, 22, 0.84));
  box-shadow: var(--shadow-md);
}
.proof-player-card { padding: 18px; }
.proof-video-shell { min-height: 520px; }
.proof-video { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.proof-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 16px; }
.meta-label { display: block; color: var(--muted-2); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.proof-callouts { display: grid; gap: 14px; }
.proof-callout { padding: 20px; }
.proof-callout h3 { margin: 0 0 10px; font-size: 1.24rem; }

.showcase-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.gallery-wrap { position: relative; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-empty {
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 229, 255, 0.12);
}
.gallery-item {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  border-color: rgba(108, 229, 255, 0.32);
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 14, 0.95));
}
.gallery-overlay strong { display: block; margin-bottom: 6px; }
.gallery-overlay span { color: var(--muted); font-size: 0.92rem; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.workflow-card { padding: 16px; overflow: hidden; }
.workflow-visual {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin-bottom: 14px;
}
.workflow-copy h3 { margin: 0 0 10px; font-size: 1.26rem; }
.workflow-number {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #04101f;
  background: linear-gradient(135deg, #7af2ff, #ff7ad7);
  font-size: 0.8rem;
  font-weight: 900;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card { padding: 20px; min-height: 210px; }
.bento-card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.bento-lg { grid-column: span 2; min-height: 280px; }
.bento-accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 103, 201, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(9, 19, 39, 0.86), rgba(5, 10, 22, 0.84));
}

.download-panel, .contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
}
.download-actions-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: grid;
  gap: 12px;
}
.contact-cards { display: grid; gap: 14px; }
.glass-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}
.glass-card:hover { transform: translateY(-3px); border-color: rgba(108, 229, 255, 0.24); }
.contact-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(108,229,255,0.16), rgba(255,103,201,0.12));
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-icon { width: 26px; height: 26px; }
.glass-card h3 { margin: 0 0 8px; }
.glass-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 18px 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer strong { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  gap: 10px;
  padding: 24px;
  background: rgba(3, 7, 16, 0.94);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
  max-width: min(1120px, calc(100vw - 160px));
  margin: 0 auto;
}
.lightbox-stage img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}
.lightbox-meta strong { color: var(--text); }
.lightbox-close, .lightbox-nav {
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-close { position: absolute; top: 18px; right: 18px; }

.legal-page .section, .legal .section { max-width: 900px; }

@media (max-width: 1180px) {
  .hero-modern, .proof-layout, .download-panel, .contact-panel, .showcase-header { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-highlight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .topbar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow: auto; }
  .stat-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-stage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .workflow-grid, .bento-grid, .stat-ribbon { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy-column h1, .section-heading h2, .showcase-header h2, .download-panel h2, .contact-panel h2 { letter-spacing: -0.05em; }
  .hero-actions { display: grid; }
  .hero-actions .button, .topbar-actions .button { width: 100%; }
  .footer { flex-direction: column; }
  .lightbox { grid-template-columns: 1fr; padding-inline: 12px; }
  .lightbox-nav { display: none; }
  .lightbox-stage { max-width: calc(100vw - 24px); }
  .gallery-grid { grid-template-columns: 1fr; }
}


/* V7 proof video: remove the old fallback overlay completely once the video is available. */
.proof-video-fallback {
  display: none !important;
}

.proof-video-shell.has-proof-video .proof-video-fallback,
.proof-video-fallback[hidden],
.media-placeholder[hidden],
.gallery-empty[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.proof-video-shell::before,
.proof-video-shell::after {
  pointer-events: none;
}

.proof-video {
  position: relative;
  z-index: 2;
  display: block;
}
