/* Seedance AI — R2 PRODUCT-DEMO, bento, H4 floating-pill, video-split hero */
:root {
  --bg: #0c0c0c;
  --surface: #111111;
  --elevated: #1a1a1a;
  --panel: #161616;
  --text: #f4f4f5;
  --ink: #ffffff;
  --muted: rgba(244, 244, 245, 0.68);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --primary: #570df8;
  --primary-fg: #ffffff;
  --primary-hover: #6b2ff9;
  --brand: #570df8;
  --brand-2: #a78bfa;
  --link: #c4b5fd;
  --tint: rgba(87, 13, 248, 0.14);
  --scrim: color-mix(in srgb, #0c0c0c 55%, transparent);
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn-radius: 10px;
  --btn-padding-y: 11px;
  --btn-padding-x: 20px;
  --btn-transform: none;
  --radius-card: 14px;
  --radius-media: 12px;
  --header-h: 76px;
  --follow-h: 72px;
  --gutter: clamp(16px, 3vw, 40px);
  --wrap: min(1140px, 100% - var(--gutter) * 2);
  --blur: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: calc(var(--follow-h) + env(safe-area-inset-bottom));
}
.legal-page { padding-top: calc(var(--header-h) + 8px); }
img, video { max-width: 100%; display: block; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: #ddd6fe; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--primary); color: var(--primary-fg);
  padding: 8px 14px; border-radius: var(--btn-radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 88px) 0; }
.section-kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin: 0 0 10px;
  font-weight: 600;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.14;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.8vw, 3rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.28rem, 2.4vw, 1.85rem); margin: 0 0 16px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: 0 solid transparent;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-fg); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* H4 floating-pill */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
}
.site-header[data-header-variant="H4"] .header-pill {
  pointer-events: auto;
  width: min(1060px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px 8px 6px 14px;
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--blur));
}
.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-cluster img { width: 32px; height: 32px; border-radius: 8px; }
.brand-word { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.header-pill .btn-primary { margin-left: auto; padding: 8px 16px; min-height: 40px; font-size: 13px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--btn-radius);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--ink);
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px;
  background: var(--text); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .site-header[data-header-variant="H4"] .header-pill { flex-wrap: wrap; border-radius: 20px; }
  .header-pill .btn-primary { order: 2; margin-left: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; pointer-events: auto; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 4;
    padding: 8px 4px 4px;
    border-top: 1px solid var(--hairline);
  }
  .site-nav.is-open { display: flex; }
}

/* video-split hero (R2) */
.hero-split-wrap {
  padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px);
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: var(--wrap);
  margin-inline: auto;
}
.hero-byline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 10;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .hero-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(87, 13, 248, 0.35), transparent 70%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* bento grids */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.bento-card:hover {
  border-color: rgba(87, 13, 248, 0.45);
  background: var(--elevated);
}
.bento-card h3 { margin: 0; }
.bento-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.bento-media {
  border-radius: calc(var(--radius-card) - 4px);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
}
.bento-media img, .bento-media video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bento .cap, .showcase-bento .cap {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento.bento-models { grid-template-columns: repeat(3, 1fr); }
  .bento.bento-models .bento-card.span-2 { grid-column: span 2; }
}
@media (min-width: 960px) {
  .bento.bento-showcase {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }
  .bento-showcase .tile-a { grid-column: span 7; }
  .bento-showcase .tile-b { grid-column: span 5; }
  .bento-showcase .tile-c { grid-column: span 4; }
  .bento-showcase .tile-d { grid-column: span 4; }
  .bento-showcase .tile-e { grid-column: span 4; }
  .bento-showcase .tile-f { grid-column: span 6; }
  .bento-showcase .tile-g { grid-column: span 6; }
}

.catalog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card, .model-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.card:hover, .model-card:hover { border-color: rgba(87, 13, 248, 0.4); }
.model-card h3 a { color: var(--ink); text-decoration: none; }

.benefit-list, .audience-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.benefit, .audience-list article {
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--panel);
  border: 1px solid var(--hairline);
}

.cta-band {
  background: linear-gradient(135deg, rgba(87, 13, 248, 0.22), rgba(17, 17, 17, 0.9));
  border-block: 1px solid var(--hairline);
  padding: clamp(32px, 5vw, 56px) 0;
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.final-cta {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.rating-score { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0; }
.reviews { display: grid; gap: 14px; }
.review {
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--panel);
  border: 1px solid var(--hairline);
}
.review .who { font-size: 0.85rem; color: var(--muted); margin: 0; }

.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-a { padding: 0 0 16px; color: var(--muted); }
.faq-a[hidden] { display: none; }
.faq-item.is-open .faq-q { color: var(--brand-2); }

.crumbs { padding: 16px 0 0; font-size: 0.88rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.page-hero { padding: 24px 0 8px; }
.prose { max-width: 68ch; }

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  background: #080808;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.legal-links { display: flex; flex-direction: column; gap: 8px; }
.legal-links a { text-decoration: none; }

.follow-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  min-height: var(--follow-h);
  background: rgba(12, 12, 12, 0.92);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(var(--blur));
}
.follow-cta p { margin: 0; font-weight: 600; font-size: 0.95rem; }

.cta-stub {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 420px;
  background: var(--elevated);
  color: var(--text);
}
.cta-stub::backdrop { background: rgba(0, 0, 0, 0.65); }
.cta-stub-actions { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video[data-hero-video] { display: none; }
}
