/* ============================================
   ClawFactories — Style
   Mobile-first, dark theme, vanilla CSS
   ============================================ */

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

:root {
  --bg: #0A0A0F;
  --bg-surface: #12121A;
  --bg-card: #16161F;
  --bg-elevated: #1C1C28;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --text: #F0F0F5;
  --text-secondary: #9A9AB0;
  --text-muted: #6B6B80;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(59, 130, 246, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--text);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* --- Fade In --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-large {
  font-size: 1.125rem;
  padding: 18px 40px;
}

.link-arrow {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}
.link-arrow:hover {
  color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-text {
  max-width: 680px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--border-accent);
}

.step-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.125rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}

.product-card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(59, 130, 246, 0.3));
}

.product-body {
  padding: 2.5rem 2rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.product-info h3 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.deliverables {
  list-style: none;
  margin-bottom: 2.5rem;
}

.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.deliverables .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-cta-area {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.price-note {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.product-footnote {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.product-footnote a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   GENRE PACKS
   ============================================ */
#genres {
  background: var(--bg-surface);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.genre-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s;
}

.genre-chip:hover {
  border-color: var(--border-accent);
  background: rgba(59, 130, 246, 0.05);
}

.genre-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.genre-included {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   WHAT YOU ACTUALLY DO
   ============================================ */
.touchpoints {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.touchpoint {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.touchpoint:hover {
  border-color: var(--border-accent);
}

.touchpoint-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-accent);
  border-radius: 50%;
}

.touchpoint-content h3 {
  margin-bottom: 0.375rem;
}

.touchpoint-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.touchpoint-reassure {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-style: italic;
  max-width: 600px;
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */
.section-cta {
  background: var(--bg-surface);
  text-align: center;
}

.section-cta .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.form-row input[type="email"]::placeholder {
  color: var(--text-muted);
}

.form-row input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row .btn {
  white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-powered {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-powered a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet+ */
@media (min-width: 640px) {
  .container {
    padding: 0 40px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .touchpoints {
    grid-template-columns: 1fr;
  }

  .product-body {
    padding: 3rem;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .section {
    padding: 100px 0;
  }

  .hero-content {
    padding-top: 140px;
    padding-bottom: 120px;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 560px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .price-block {
    flex-direction: column;
    gap: 0.25rem;
  }

  .touchpoint {
    flex-direction: column;
    gap: 1rem;
  }
}
