/* ============================================================
   BreakDown — breakdownvfx.com
   Dark professional theme matching the application aesthetic
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg:             #0c1018;
  --surface:        #111827;
  --surface-2:      #172033;
  --border:         #1e2d45;
  --border-hi:      #253550;
  --accent:         #2dd4bf;
  --accent-dim:     rgba(45, 212, 191, 0.10);
  --accent-border:  rgba(45, 212, 191, 0.28);
  --amber:          #f59e0b;
  --text-hi:        #edf1f7;
  --text-body:      #8896b3;
  --text-muted:     #445170;
  --radius:         8px;
  --radius-lg:      14px;
  --nav-h:          148px;
  --deck-nav-h:     56px;
  --max-w:          1100px;
  --max-w-narrow:   700px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-hi);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Section base ---- */
.section {
  padding: 100px 0;
}

/* ---- Typography ---- */
.section-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--text-hi);
  margin-bottom: 20px;
}

.section-body {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-body);
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-border);
  transition: opacity 0.15s;
}
.link:hover { opacity: 0.75; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover  { opacity: 0.86; }
.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--accent);
  color: #0c1018;
}
.btn--sm { font-size: 13px; padding: 7px 15px; }
.btn--lg { font-size: 15px; padding: 13px 30px; letter-spacing: 0.01em; }

/* ---- Screenshot frame ---- */
.ss-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(77, 207, 180, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px  rgba(0, 0, 0, 0.4);
}
.ss-frame img { width: 100%; display: block; }

.caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(12, 16, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-cta {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.nav-cta:hover  { background: var(--accent); color: #0c1018; }
.nav-cta:active { transform: translateY(-50%) scale(0.975); }
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
}
.nav-wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: -18px;
}
.wm-break { color: var(--accent); }
.wm-down  { color: var(--text-hi); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: 100px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 760px;
}
.hero-headline {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-hi);
}
.amber { color: var(--amber); }
.hero-sub {
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-body);
  max-width: 560px;
}


/* ============================================================
   ANIMATION
   ============================================================ */
.section-animation {
  padding: 0;
  background: #0e0e0c;
}
.section-pipeline {
  padding: 80px 0 0;
  background: #0b1628;
}
.pipeline-header {
  margin-bottom: 48px;
}
.pipeline-header .section-label {
  font-size: 13px;
}
.animation-frame {
  display: block;
  width: 100%;
  height: 616px;
  border: none;
  background: #0e0e0c;
}


/* ============================================================
   VFX BIBLE ANIMATION
   ============================================================ */
.section-bible-anim {
  padding: 80px 0 0;
  background: #0b1628;
}
.bible-anim-header {
  margin-bottom: 48px;
}
.bible-anim-header .section-label {
  font-size: 13px;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
  margin-bottom: 32px;
}
.dashboard-header .section-label {
  font-size: 13px;
}


/* ============================================================
   OUTPUT
   ============================================================ */
.output-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.output-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.output-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.output-spec-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.output-spec-value {
  font-size: 15px;
  color: var(--text-hi);
  line-height: 1.5;
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.section-audience .section-body { font-size: 17px; }

/* ============================================================
   ABOUT
   ============================================================ */
.section-about .section-body { font-size: 16px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.section-cta {
  text-align: center;
  background: var(--surface);
}
.cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cta-body {
  font-size: 18px;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.68;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy,
.footer-link {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-link:hover { color: var(--text-body); }

/* ============================================================
   MODAL
   ============================================================ */
body.modal-open { overflow: hidden; }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
}
.modal-backdrop.is-open { display: block; animation: fade-in 0.2s ease; }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  z-index: 400;
  width: 92%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 36px 40px 40px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
}
.modal.is-open {
  display: block;
  animation: modal-in 0.22s ease;
}

@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -48%); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.modal-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text-hi); }

/* ---- Form ---- */
.form-row { display: flex; gap: 16px; }
.form-row--2 > .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-hi);
}
.form-optional { font-weight: 400; color: var(--text-muted); }
.req { color: var(--accent); }

.form-input,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--text-hi);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus { border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.form-submit { width: 100%; justify-content: center; }

/* ---- Success state ---- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0 8px;
  gap: 12px;
}
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.form-success h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-hi);
}
.form-success p { color: var(--text-body); font-size: 15px; }

/* ---- Footer button reset ---- */
.footer-link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-headline { font-size: 40px; }

  .bible-card {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 44px 36px;
  }
}

@media (max-width: 680px) {
  .modal { padding: 28px 24px 32px; }
  .form-row--2 { flex-direction: column; gap: 0; }

  :root { --nav-h: 100px; }
  .nav-logo { width: 80px; height: 80px; border-radius: 14px; }
  .nav-wordmark { font-size: 15px; }
  .nav-inner { padding: 0 16px; }
  .nav-cta { right: 16px; font-size: 13px; padding: 7px 13px; }

  .hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 72px; }
  .hero-headline { font-size: 30px; }
  .hero-sub { font-size: 15px; }

  .section { padding: 72px 0; }

  .section-heading { font-size: 24px; }

.output-specs { grid-template-columns: 1fr 1fr; }

  .bible-card { padding: 32px 24px; }
  .output-card { padding: 36px 24px; }

  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .output-specs { grid-template-columns: 1fr; }
}

/* ============================================================
   DECK LAYOUT
   ============================================================ */
body { overflow: hidden; }

.deck {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: var(--deck-nav-h);
  overflow: hidden;
}

/* ---- Slides ---- */
.slide {
  position: absolute;
  inset: 0;
  background: var(--bg);
  will-change: transform;
  overflow: hidden;
}
.slide.is-active { z-index: 1; }

/* ---- Hero slide ---- */
.slide-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 40px 28px;
}

/* ---- Animation slides ---- */
.slide--anim { overflow: hidden; }

/* ---- Card slide (static iframe, scrollable) ---- */
.slide--card {
  display: flex;
  flex-direction: column;
}
.slide--card .deck-iframe {
  flex: 1;
  height: 100%;
}

.slide-anim-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.slide-anim-header {
  padding: 14px 28px 0;
  flex-shrink: 0;
}
.slide-anim-header .section-label { font-size: 13px; }

.deck-iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 0;
  background: transparent;
}

/* ---- Dashboard slide ---- */
.slide-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 28px 0;
  gap: 20px;
}
.slide-header .section-label { font-size: 13px; }
.slide-header--center { text-align: center; width: 100%; }
.slide-screenshot {
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - var(--nav-h) - var(--deck-nav-h) - 220px);
  overflow: hidden;
  flex-shrink: 0;
}
.slide-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

/* ---- Output centered slide ---- */
.slide-output-centered {
  max-width: 780px;
  text-align: center;
  gap: 28px;
}
.output-eyebrow {
  font-size: 13px;
}
.output-body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-body);
}
.output-kicker {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1.5;
  padding-top: 8px;
}

/* ---- Content slides (Output, About) ---- */
.slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow-y: auto;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.slide-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  width: 100%;
  align-items: start;
}
.slide-col { display: flex; flex-direction: column; gap: 20px; }
.slide-col--border {
  padding-left: 56px;
  border-left: 1px solid var(--border);
}

.slide-closing {
  justify-content: space-between;
  gap: 0;
  max-width: 800px;
}
.closing-about  { padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.closing-cta    { padding-top: 40px; padding-bottom: 40px; text-align: center; }
.slide-footer   { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---- Next hint ---- */
.slide-next-hint {
  position: fixed;
  bottom: calc(var(--deck-nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 190;
  pointer-events: none;
  opacity: 0.75;
}
.slide-next-hint[hidden] { display: none; }

.slide-next-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-hi);
}

.slide-next-arrow {
  animation: hint-bounce 1.8s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ---- Deck navigation bar ---- */
.deck-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--deck-nav-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  z-index: 200;
}
.deck-nav-left  { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
.footer-co    { font-size: 11px; color: var(--text-body); letter-spacing: 0.04em; }
.footer-legal { font-size: 11px; color: var(--text-body); text-decoration: none; }
.footer-legal:hover { color: var(--text-hi); }
.deck-nav-center { display: flex; align-items: center; gap: 12px; }
.deck-nav-right { display: flex; align-items: center; justify-content: flex-end; }

.deck-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--text-body);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.deck-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.deck-btn:disabled { opacity: 0.25; cursor: default; }

.deck-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-dot {
  height: 7px;
  width: 7px;
  border-radius: 4px;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.25s cubic-bezier(0.4,0,0.2,1);
}
.deck-dot.is-active {
  background: var(--accent);
  width: 22px;
}

/* ---- Mobile deck ---- */
@media (max-width: 680px) {
  :root { --nav-h: 100px; --deck-nav-h: 52px; }
  .nav-logo { width: 80px; height: 80px; border-radius: 14px; }
  .nav-wordmark { font-size: 15px; }
  .slide-two-col { grid-template-columns: 1fr; gap: 32px; }
  .slide-col--border { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 32px; }
  .slide-anim-header { padding: 16px 16px 0; }
  .hero-headline { font-size: 30px; }
}
