/* BLOCK WORKS marketing site — shared design system.
   Tokens copied verbatim from apps/console/src/index.css so the marketing site and the
   real product share one visual identity, not a look-alike. */

@font-face {
  font-family: 'D-DIN Condensed Bold';
  src: url('../fonts/D-DINCondensed-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #f6f8fb;
  --surface-1: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #ffffff;
  --border: #d9dfe9;
  --border-strong: #b6c0d1;
  --text-primary: #101623;
  --text-secondary: #414d63;
  --text-muted: #5f6b81;
  --accent: #2563eb;
  --accent-foreground: #ffffff;
  --accent-muted: #2563eb1a;
  --brand-amber: #f3b40e;
  --brand-ink: #101623;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(16, 22, 35, 0.04), 0 8px 24px -8px rgba(16, 22, 35, 0.12);
  --shadow-lg: 0 4px 12px rgba(16, 22, 35, 0.06), 0 24px 48px -16px rgba(16, 22, 35, 0.18);
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141414;
    --surface-1: #1e1e1e;
    --surface-2: #262626;
    --surface-3: #2e2e2e;
    --border: #333333;
    --border-strong: #484848;
    --text-primary: #e8e8e8;
    --text-secondary: #9d9d9d;
    --text-muted: #8a8a8a;
    --accent: #5b8def;
    --accent-foreground: #0b0d12;
    --accent-muted: #5b8def26;
    --brand-ink: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme='dark'] {
  --background: #141414;
  --surface-1: #1e1e1e;
  --surface-2: #262626;
  --surface-3: #2e2e2e;
  --border: #333333;
  --border-strong: #484848;
  --text-primary: #e8e8e8;
  --text-secondary: #9d9d9d;
  --text-muted: #8a8a8a;
  --accent: #5b8def;
  --accent-foreground: #0b0d12;
  --accent-muted: #5b8def26;
  --brand-ink: #ffffff;
}
:root[data-theme='light'] {
  --background: #f6f8fb;
  --surface-1: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #ffffff;
  --border: #d9dfe9;
  --border-strong: #b6c0d1;
  --text-primary: #101623;
  --text-secondary: #414d63;
  --text-muted: #5f6b81;
  --accent: #2563eb;
  --accent-foreground: #ffffff;
  --accent-muted: #2563eb1a;
  --brand-ink: #101623;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 28px;
  width: 28px;
}
.brand .wordmark {
  font-family: 'D-DIN Condensed Bold', ui-sans-serif, sans-serif;
  font-size: 21px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand .wordmark .b {
  color: var(--brand-amber);
}
.brand .wordmark .w {
  color: var(--brand-ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text-primary);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand-amber);
  color: #1a1300;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px -4px rgba(243, 180, 14, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* -------------------------------------------------------------- hero --- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}
h1 .accent {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero-shot {
  margin-top: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-shot img {
  width: 100%;
}

/* ------------------------------------------------------------- proof --- */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}
.proof-stat .num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.proof-stat .label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* -------------------------------------------------------------- section --- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ------------------------------------------------------------- pillars --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.pillar .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 18px;
}
.pillar h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.pillar p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* --------------------------------------------------------- feature row --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-row.reverse .feature-copy {
  order: 2;
}
.feature-row.reverse .feature-shot {
  order: 1;
}
.feature-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-amber);
  color: #1a1300;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.feature-copy h3 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.feature-copy p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin: 0 0 16px;
}
.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-copy li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  padding: 6px 0;
}
.feature-copy li .check {
  color: var(--accent);
  flex-shrink: 0;
}
.feature-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature-shot img {
  width: 100%;
}

/* ------------------------------------------------------------ keywords --- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.type-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.type-card .name {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.type-card .desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- quote --- */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  line-height: 1.4;
}
.quote-block cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------- CTA --- */
.cta-band {
  text-align: center;
  background: var(--surface-1);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 64px 32px;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}
.cta-band p {
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* --------------------------------------------------------------- modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-dialog {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-dialog h3 {
  margin: 8px 0 12px;
}
.modal-dialog p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}
.modal-close:hover {
  color: var(--text-primary);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.waitlist-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text-primary);
  font-size: 14px;
}
.waitlist-form input[type='email']:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.waitlist-note {
  margin-top: 12px !important;
  font-size: 12.5px !important;
}

/* -------------------------------------------------------------- footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.c2pa-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #141414;
}
.c2pa-badge img {
  height: 38px;
  width: auto;
  display: block;
}
.c2pa-badge span {
  color: #a9b0bb;
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ------------------------------------------------------------- pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 1px var(--brand-amber);
  position: relative;
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-amber);
  color: #1a1300;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.price-card .price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}
.price-card .price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card .tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}
.price-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
  color: var(--text-secondary);
}
.price-card li .check {
  color: var(--accent);
}
.price-card .btn {
  width: 100%;
}

/* --------------------------------------------------------------- faq --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.faq-item p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* ------------------------------------------------------------- download --- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.platform-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}
.platform-card .plat-icon {
  margin-bottom: 16px;
  color: var(--text-primary);
}
.platform-card .plat-icon svg {
  width: 40px;
  height: 40px;
}
.platform-card h3 {
  margin: 0 0 6px;
}
.platform-card .req {
  font-size: 13px;
  color: var(--text-muted);
  margin: 14px 0 0;
}
.platform-card.disabled {
  opacity: 0.6;
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .type-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-shot {
    order: initial;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
  }
}
