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

:root {
  /* Cobalt + iceberg palette. Background deepens to navy; accents
     shift from cyan/purple to ice-white→cobalt to match the Fathom
     brand. Fathom-specific overlays in /fathom/fathom.css layer on
     top of these tokens for the subdomain. */
  --bg-primary:   #04060f;
  --bg-secondary: #080b18;
  --bg-tertiary:  #0e1322;
  --text-primary:   #e6eef8;
  --text-secondary: #a4afc3;
  --text-muted:     #6b7588;
  --accent-primary:   #87cfff; /* ice-cool */
  --accent-secondary: #4f86bf; /* cobalt */
  --accent-tertiary:  #d8efff; /* ice-bright */
  --border:       rgba(135, 207, 255, 0.10);
  --border-hover: rgba(135, 207, 255, 0.22);
  --glow: 0 0 40px rgba(135, 207, 255, 0.22);
  --shadow-lg: 0 20px 60px rgba(0, 4, 16, 0.55);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  filter: drop-shadow(var(--glow));
  transition: transform 0.3s ease;
}

.brand:hover .logo svg {
  transform: scale(1.05) rotate(5deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn-ghost,
.btn-primary {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(135, 207, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(135, 207, 255, 0.35);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(135, 207, 255, 0.08);
  border: 1px solid rgba(135, 207, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Terminal Window */
.hero-right {
  position: relative;
}

.terminal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dots span:nth-child(1) {
  background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
  background: #28ca42;
}

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 24px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
}

.terminal-body code {
  color: var(--text-primary);
}

.comment { color: #6b7280; }
.key { color: var(--accent-secondary); }
.string { color: var(--accent-tertiary); }
.boolean { color: var(--accent-primary); }

/* Background Gradient */
.hero-bg-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle, rgba(135, 207, 255, 0.15) 0%, transparent 50%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Features Section */
.features {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(135, 207, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  position: relative;
}

.cta-content {
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 64px;
  background: linear-gradient(135deg, rgba(135, 207, 255, 0.08), rgba(79, 134, 191, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(135, 207, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-right {
    order: -1;
  }

  .nav-links {
    display: none;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-large {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-large {
    width: 100%;
    justify-content: center;
  }

  .footer-column {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   Additions for the rebrand:
   - product cards (Fathom feature + "more to come" placeholder)
   - approach section
   - terminal text variants (cmd/prompt/muted)
   These extend the existing design tokens — no new colors.
   ============================================================ */

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.product-card-featured {
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(135, 207, 255, 0.08), transparent 60%),
    var(--bg-secondary);
  border-color: rgba(135, 207, 255, 0.18);
}

.product-card-soon {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  cursor: default;
}

.product-card-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.product-card-logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #010313;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(135, 207, 255, 0.1);
  width: fit-content;
}

.product-card-tag-muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.product-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.product-card-tagline {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.product-card-cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
}

.product-card-cta-muted {
  color: var(--text-muted);
}

.product-card-cta-muted a {
  color: var(--text-secondary);
  text-decoration: none;
}

.product-card-cta-muted a:hover {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    flex-direction: column;
    padding: 28px;
  }
  .product-card-logo {
    width: 96px;
    height: 96px;
  }
}

/* Approach section */
.approach {
  padding: 80px 0;
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(79, 134, 191, 0.05), transparent 70%);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.approach-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.approach-item:hover {
  border-color: var(--border-hover);
}

.approach-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(135, 207, 255, 0.08);
  border-radius: 12px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.approach-item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.approach-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 720px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* Terminal text variants (used in hero terminal-window) */
.terminal-body code .cmd {
  color: var(--accent-primary);
  font-weight: 500;
}

.terminal-body code .prompt {
  color: var(--accent-tertiary);
  font-weight: 600;
}

.terminal-body code .muted {
  color: var(--text-muted);
}

/* Darklake emblem logo (replaces the prior SVG diamond). */
.logo-emblem {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #010313;
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.18), 0 0 30px rgba(79, 134, 191, 0.25);
}

.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand:hover .logo-emblem {
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.35), 0 0 36px rgba(79, 134, 191, 0.40);
}

/* Shared product-page hero layout (used by Dream, Sigil, future products).
   Mirrors the Fathom subdomain hero — centered logo + tagline column. */
.hero-product {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-product-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero-product-logo {
  width: 220px;
  height: 220px;
  border-radius: 32px;
  box-shadow:
    0 0 80px rgba(135, 207, 255, 0.18),
    0 20px 60px rgba(0, 4, 16, 0.55);
}

.hero-title-product {
  max-width: 16ch;
}

/* Product cards stacked one per row — emblem on the left,
   content + CTA on the right. Identical horizontal cards top to
   bottom. Centered max-width so the section doesn't stretch
   edge-to-edge on wide displays. */
.product-grid-3 {
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.product-card-vert {
  flex-direction: row;
  gap: 28px;
  padding: 28px 32px;
  align-items: center;
}

.product-card-logo-vert {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #010313;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.10), 0 0 30px rgba(79, 134, 191, 0.18);
}

.product-card-logo-vert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text placeholder for cards without a real emblem yet (planned products) */
.product-card-logo-placeholder {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 38px;
  font-weight: 500;
  color: var(--accent-primary);
  letter-spacing: -1px;
  opacity: 0.85;
}

.product-card-vert:hover .product-card-logo-vert {
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.25), 0 0 36px rgba(79, 134, 191, 0.32);
}

/* Card body — name + tagline on one row, description below, CTA at end */
.product-card-vert .product-card-body {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-card-vert .product-card-tag {
  font-size: 10px;
}

.product-card-vert h3 {
  font-size: 22px;
  margin: 0;
}

.product-card-vert .product-card-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
}

.product-card-vert .product-card-body p:not(.product-card-tagline) {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.product-card-vert .product-card-cta {
  margin-top: 10px;
  padding-top: 0;
}

@media (max-width: 720px) {
  .product-card-vert {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Mobile responsiveness fixes
   - Terminal blocks no longer overflow (pre wraps + scrolls inside)
   - Hero title scales down further on narrow screens
   - Container padding tightens
   - All width-fixed elements capped to viewport
   ============================================================ */

/* Hard cap everything to the viewport so nothing forces horizontal scroll.
   Targets the canvas + the most-likely offenders. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Terminal text was the worst offender: `pre` doesn't wrap by default,
   so long shell lines (`brew install darklakeai/fathom/fathom`) pushed
   the page past the viewport. Wrap inside the block, and let the rare
   un-wrappable token scroll horizontally INSIDE the terminal box. */
.terminal-body pre,
.terminal-body code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.terminal-body {
  overflow-x: auto;
}

/* Make sure every grid card / product-card stays inside its column. */
.product-card-vert,
.feature-card,
.cta-content {
  max-width: 100%;
}

/* Phone-specific tweaks (<= 560px). Above this, the existing 968/640
   breakpoints already cover the layout. */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .hero-title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-subtitle { font-size: 15px; overflow-wrap: anywhere; }
  .terminal-body { padding: 16px; font-size: 12px; line-height: 1.6; }
  .nav .container { padding: 0 12px; }
  .nav-actions { flex-shrink: 0; }
  .nav-actions .btn-primary { padding: 7px 12px; font-size: 12px; }
  .brand-name { font-size: 16px; }
  .product-card-vert { padding: 20px; gap: 16px; }
  .product-card-logo-vert { width: 64px; height: 64px; border-radius: 14px; }
  .product-card-vert h3 { font-size: 20px; }
  .product-card-vert .product-card-body p:not(.product-card-tagline) {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .section-title { font-size: 28px; overflow-wrap: anywhere; }
  .cta-content { padding: 40px 20px; max-width: 100%; }
  .cta-content h2 { font-size: 24px; overflow-wrap: anywhere; }
  .cta-content p { font-size: 15px; }
  .footer-tagline, .footer-bottom p { overflow-wrap: anywhere; }
}

/* Extra-narrow phones (≤380px) — iPhone SE, older Androids. */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .section-title { font-size: 24px; }
  .terminal-body { font-size: 11px; padding: 12px; }
}

/* Coming-soon placeholder cards — same shape as the shipped product
   cards but muted, no hover-lift, no CTA, and a soft pulsing
   emblem hint instead of the iceberg logo. */
.product-card-coming {
  cursor: default;
  opacity: 0.78;
  border-style: dashed;
}

.product-card-coming:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.product-card-logo-coming {
  background: var(--bg-secondary);
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.10);
}

.product-card-coming:hover .product-card-logo-coming {
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.10);
}

.coming-mark {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.05em;
}

.product-card-coming h3 {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Coming-soon cards that ARE clickable because the page is up — keep
   the dashed border + muted style so the homepage still differentiates
   "in progress" from "shipped", but restore the lift-on-hover so
   visitors know they CAN click through. */
.product-card-coming.product-card-coming-live {
  cursor: pointer;
  opacity: 0.92;
}
.product-card-coming.product-card-coming-live:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
