/**
 * craft-theme.css — photography-first marketing system
 * Scoped via body.craft-page. Replaces sci-fi as the default marketing look.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Outfit:wght@400;500;600;700&display=swap');

body.craft-page {
  --craft-bg: #0e0d0c;
  --craft-surface: #171512;
  --craft-surface-2: #1f1c18;
  --craft-border: rgba(240, 233, 228, 0.12);
  --craft-text: #f5f0ea;
  --craft-text-2: rgba(245, 240, 234, 0.72);
  --craft-text-3: rgba(245, 240, 234, 0.48);
  --craft-accent: #c9b896;
  --craft-accent-soft: rgba(201, 184, 150, 0.14);
  --craft-on-accent: #17100d;
  --craft-white: #ffffff;
  --craft-font: 'Outfit', system-ui, sans-serif;
  --craft-display: 'Cormorant Garamond', Georgia, serif;

  background: var(--craft-bg);
  color: var(--craft-text);
  font-family: var(--craft-font);
  -webkit-font-smoothing: antialiased;
}

body.craft-page .sci-fi-canvas,
body.craft-page .sci-fi-vignette,
body.craft-page .sci-fi-scanlines {
  display: none !important;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
body.craft-page .navbar-glass {
  background: rgba(14, 13, 12, 0.86) !important;
  border-bottom: 1px solid var(--craft-border) !important;
  backdrop-filter: blur(18px);
  box-shadow: none !important;
}

body.craft-page .navbar .nav-link {
  color: var(--craft-text-2) !important;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

body.craft-page .navbar .nav-link:hover,
body.craft-page .navbar .nav-link.active {
  color: var(--craft-text) !important;
}

body.craft-page .navbar .nav-link:hover::after,
body.craft-page .navbar .nav-link.active::after {
  background: var(--craft-accent) !important;
  box-shadow: none !important;
}

body.craft-page .navbar .dropdown-menu {
  background: rgba(23, 21, 18, 0.96) !important;
  border: 1px solid var(--craft-border) !important;
}

body.craft-page .navbar .dropdown-item:hover {
  background: var(--craft-accent-soft) !important;
  color: var(--craft-accent) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
body.craft-page .btn-primary,
body.craft-page .btn.btn-primary {
  background: var(--craft-accent) !important;
  border-color: var(--craft-accent) !important;
  color: var(--craft-on-accent) !important;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: none !important;
}

body.craft-page .btn-primary:hover {
  filter: brightness(1.06);
  color: var(--craft-on-accent) !important;
}

body.craft-page .btn-outline-light,
body.craft-page .btn-outline-primary {
  border-color: var(--craft-border) !important;
  color: var(--craft-text) !important;
  border-radius: 999px;
  background: transparent !important;
}

body.craft-page .btn-outline-light:hover,
body.craft-page .btn-outline-primary:hover {
  background: var(--craft-accent-soft) !important;
  border-color: var(--craft-accent) !important;
  color: var(--craft-accent) !important;
}

body.craft-page .btn-store {
  background: var(--craft-surface) !important;
  border: 1px solid var(--craft-border);
  color: var(--craft-text);
  border-radius: 12px;
}

/* ── Typography ──────────────────────────────────────────────────── */
body.craft-page h1,
body.craft-page h2,
body.craft-page .display-5,
body.craft-page .craft-display {
  font-family: var(--craft-display);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--craft-text);
}

body.craft-page .text-primary,
body.craft-page .section-header .text-primary,
body.craft-page .fw-bold.text-primary {
  color: var(--craft-accent) !important;
  font-family: var(--craft-font);
  font-size: 0.75rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600 !important;
}

body.craft-page .lead,
body.craft-page p {
  color: var(--craft-text-2);
}

body.craft-page .craft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--craft-accent);
  margin-bottom: 1rem;
}

body.craft-page .craft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--craft-white);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Hero (full-bleed craft) ─────────────────────────────────────── */
body.craft-page .craft-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4.5rem;
  overflow: hidden;
  background: #050505;
}

body.craft-page .craft-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.craft-page .craft-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  transform: scale(1.02);
}

body.craft-page .craft-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0.35) 0%, rgba(14, 13, 12, 0.15) 35%, rgba(14, 13, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 13, 12, 0.75) 0%, rgba(14, 13, 12, 0.25) 55%, transparent 100%);
}

body.craft-page .craft-hero .container {
  position: relative;
  z-index: 1;
}

body.craft-page .craft-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--craft-white);
}

body.craft-page .craft-hero h1 em {
  font-style: italic;
  color: var(--craft-accent);
  font-weight: 500;
}

body.craft-page .craft-hero .craft-hero-sub {
  font-size: 1.12rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

body.craft-page .craft-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

body.craft-page .craft-hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Sections ────────────────────────────────────────────────────── */
body.craft-page .craft-section {
  padding: 5.5rem 0;
  background: var(--craft-bg);
}

body.craft-page .craft-section.alt {
  background: var(--craft-surface);
}

body.craft-page .craft-section .section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.75rem;
}

body.craft-page .craft-section .section-sub {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

body.craft-page .craft-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  body.craft-page .craft-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  body.craft-page .craft-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.craft-page .craft-card {
  background: var(--craft-surface-2);
  border: 1px solid var(--craft-border);
  border-radius: 18px;
  padding: 1.4rem 1.35rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.craft-page .craft-card:hover {
  border-color: rgba(201, 184, 150, 0.4);
  transform: translateY(-2px);
}

body.craft-page .craft-card h3 {
  font-family: var(--craft-font);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.85rem 0 0.45rem;
  color: var(--craft-text);
}

body.craft-page .craft-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--craft-text-3);
  line-height: 1.5;
}

body.craft-page .craft-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--craft-accent-soft);
  color: var(--craft-accent);
  font-size: 1.05rem;
}

body.craft-page .craft-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

body.craft-page a.craft-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Proof / manifesto */
body.craft-page .craft-manifesto {
  border-left: 2px solid var(--craft-accent);
  padding-left: 1.25rem;
  max-width: 40rem;
}

body.craft-page .craft-manifesto p {
  font-family: var(--craft-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--craft-text);
  margin: 0;
}

body.craft-page .craft-manifesto .attrib {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--craft-accent);
  font-family: var(--craft-font);
}

/* Contrast / trust table */
body.craft-page .craft-compare {
  width: 100%;
  border-collapse: collapse;
}

body.craft-page .craft-compare th,
body.craft-page .craft-compare td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--craft-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

body.craft-page .craft-compare th {
  color: var(--craft-text-3);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.craft-page .craft-compare td strong {
  color: var(--craft-accent);
  font-weight: 600;
}

/* Story cards */
body.craft-page .story-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--craft-border);
  background: var(--craft-surface);
}

body.craft-page .story-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

body.craft-page .story-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
}

body.craft-page .story-card .body h3 {
  font-family: var(--craft-font);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

body.craft-page .story-card .body p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--craft-text-3);
}

/* Soften existing hub / AI cards into craft */
body.craft-page .hub-hero {
  background: transparent !important;
  min-height: auto;
  padding: 0;
}

body.craft-page .ai-hub-badge,
body.craft-page .hub-badge {
  background: var(--craft-accent-soft) !important;
  border-color: rgba(201, 184, 150, 0.35) !important;
  color: var(--craft-accent) !important;
}

body.craft-page .ai-feature-card {
  background: var(--craft-surface-2) !important;
  border: 1px solid var(--craft-border) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.craft-page .ai-feature-icon {
  background: var(--craft-accent-soft) !important;
  color: var(--craft-accent) !important;
}

body.craft-page .ai-hub-title-accent,
body.craft-page .hub-hero h1 span {
  background: none !important;
  -webkit-text-fill-color: var(--craft-accent) !important;
  color: var(--craft-accent) !important;
}

body.craft-page .bouts-section,
body.craft-page .leaderboard-section,
body.craft-page .framez-picks-section,
body.craft-page .download-section,
body.craft-page .ai-hub-section,
body.craft-page .blog-section {
  background: transparent;
}

body.craft-page .parallax-section-bg {
  opacity: 0.15;
}

body.craft-page .footer-section {
  background: var(--craft-surface) !important;
  border-top: 1px solid var(--craft-border);
}

body.craft-page .footer-links a {
  color: var(--craft-text-3) !important;
}

body.craft-page .footer-links a:hover {
  color: var(--craft-accent) !important;
}

/* Inner marketing pages */
body.craft-page .craft-page-hero {
  padding: 8rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(201, 184, 150, 0.12), transparent 60%),
    var(--craft-bg);
}

body.craft-page .craft-page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

body.craft-page .craft-page-hero .lead {
  max-width: 36rem;
  font-size: 1.1rem;
}

body.craft-page .craft-steps {
  counter-reset: step;
}

body.craft-page .craft-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--craft-border);
}

body.craft-page .craft-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--craft-display);
  font-size: 1.6rem;
  color: var(--craft-accent);
  line-height: 1;
}

@media (max-width: 767px) {
  body.craft-page .craft-hero {
    min-height: 85vh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }
  body.craft-page .craft-hero h1 {
    max-width: none;
  }
}
