/* ============================================================
   omnifab.css — OmniFab product page
   Imports: tokens.css + base.css must be loaded first
   ============================================================ */

/* ── Page hero ─────────────────────────────────────────────────── */
.page-hero {
  min-height: 52vh;
  background: linear-gradient(145deg, #001a0c 0%, #003320 55%, #004d30 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 72px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(0,180,80,0.12) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(255,255,255,0.03) 32px, rgba(255,255,255,0.03) 33px),
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(255,255,255,0.03) 32px, rgba(255,255,255,0.03) 33px);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.page-hero-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: #4a8c15;
  border-radius: 2px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.page-hero-sub { font-size: 1.0625rem; color: rgba(255,255,255,0.62); line-height: 1.7; margin-bottom: 28px; }
.page-hero-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.45);
}
.page-hero-visual img { width: 100%; display: block; }

/* ── Section eyebrow ─────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #4a8c15;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.45); }

/* ── Platform overview ───────────────────────────────────────── */
.platform-overview { background: var(--bg2); }
.platform-overview .section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 64px;
}
.platform-overview .section-header h2 { margin-bottom: 12px; }

.feature-rows { display: flex; flex-direction: column; gap: 64px; }
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row-icon-wrap {
  width: 64px; height: 64px;
  background: var(--bg3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #4a8c15;
}
.feature-row-text { min-width: 0; }
.feature-row-text h3 { color: var(--text); margin-bottom: 10px; font-size: 1.25rem; word-break: break-word; }
.feature-row-text p  { color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text2);
}
.feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-blue); }
.feature-row-screenshot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,69,129,0.12);
  grid-column: 3;
}
.feature-row-screenshot img { width: 100%; display: block; }
.feature-row-screenshot--placeholder {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: linear-gradient(145deg, #001a0c 0%, #003320 55%, #004d30 100%);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-row-screenshot--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.feature-row-screenshot--placeholder::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #4a8c15;
}
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.screenshot-placeholder-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.screenshot-placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Why OmniFab ─────────────────────────────────────────────── */
.why-section { background: var(--bg2); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why-text h2  { color: var(--text); margin-bottom: 20px; }
.why-text > p { color: var(--text2); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 32px; }
.feature-bullets { display: flex; flex-direction: column; gap: 14px; }
.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.5;
}
.feature-bullet-dot {
  width: 20px; height: 20px;
  background: #4a8c15;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-bullet-dot svg { color: #fff; }
.why-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,69,129,0.14);
  background: linear-gradient(135deg, #001a0c, #003320);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.why-visual-icon {
  width: 52%; height: auto;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}

/* ── AI section ───────────────────────────────────────────────── */
.ai-section { background: var(--brand-blue-deeper); }
.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,49,43,0.18);
  border: 1px solid rgba(229,49,43,0.35);
  color: #ff7b76;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.ai-badge svg { color: var(--brand-red); }
.ai-section h2 { color: #fff; margin-bottom: 14px; }
.ai-text > p { color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.ai-features { display: flex; flex-direction: column; gap: 20px; }
.ai-feature { display: flex; gap: 16px; align-items: flex-start; }
.ai-feature-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
}
.ai-feature-text h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.ai-feature-text p  { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.ai-screenshot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.ai-screenshot img { width: 100%; display: block; }

/* ── Videos section ──────────────────────────────────────────── */
.videos-section { background: var(--brand-blue-deeper); border-top: 1px solid rgba(255,255,255,0.07); }
.videos-section h2 { color: #fff; }
.videos-section .section-sub {
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
  font-size: 1.0625rem;
  margin-top: 12px;
}
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16/9;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  transition: background var(--duration-base);
}
.video-card:hover .video-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}
.video-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.video-tag {
  font-size: 0.7rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(229,49,43,0.85); color: #fff;
}
.video-tag.default { background: rgba(0,69,129,0.85); }
.video-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.video-card-title { color: #fff; font-size: 1rem; font-weight: 600; }
.video-play-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  transition: background var(--duration-base), transform 0.15s;
}
.video-card:hover .video-play-btn { background: var(--brand-red); border-color: var(--brand-red); transform: scale(1.08); }
.video-card:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-white);
  outline-offset: -2px;
}

/* ── Page CTA ─────────────────────────────────────────────────── */
.page-cta { background: var(--brand-blue); text-align: center; padding-block: 72px; }
.page-cta h2 { color: #fff; margin-bottom: 12px; }
.page-cta p  { color: rgba(255,255,255,0.65); font-size: 1.0625rem; margin-bottom: 28px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-visual { display: none; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { display: none; }
  .feature-row { grid-template-columns: 64px 1fr; }
  .feature-row-screenshot { grid-column: 1 / -1; }
  .ai-inner { grid-template-columns: 1fr; }
  .ai-screenshot { order: -1; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; gap: 16px; }
  .feature-row-icon-wrap { width: 48px; height: 48px; border-radius: 10px; }
  .feature-row-screenshot { grid-column: auto; }
}
