/* ============================================================
   HOME.CSS — Homepage-specific styles
   ============================================================ */

/* ── Hero — Minimal Bold ── */
.hero {
  padding: clamp(60px, 10vh, 100px) var(--gutter) clamp(48px, 8vh, 80px);
  min-height: calc(100vh - var(--nav-h) - 3px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.hero-headline-accent {
  margin-top: var(--space-1);
}
.hero-headline-accent em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.7;
  margin: var(--space-8) 0 var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ── Hero Stats Row ── */
.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.hero-stat-accent {
  color: var(--accent);
}
.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .hero { text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
}

/* ── Hero Dashboard Container ── */
.hero-visual {
  position: relative;
}

.hero-dashboard-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* ── Framework Marquee ── */
.marquee-section {
  padding: var(--space-8) var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-label {
  text-align: center;
  font-family: var(--font-code);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ── Problem Taxonomy (light, bordered cards with accent top) ── */
.problems-section {
  padding: var(--space-24) var(--gutter);
  background: var(--bg);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 768px) {
  .problems-grid { grid-template-columns: 1fr; }
}

.problem-card {
  transition: all var(--duration) var(--ease);
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Bridge Statement ── */
.bridge-section {
  text-align: center;
  padding: var(--space-24) var(--gutter);
}
.bridge-section .bridge-text {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto var(--space-8);
  line-height: 1.2;
}
.bridge-section .bridge-sub {
  font-size: var(--text-lg);
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

.bridge-highlight {
  color: var(--accent);
  position: relative;
}

/* ── Tabbed Product Showcase ── */
.showcase-section {
  padding: var(--space-24) var(--gutter);
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-12);
  align-items: start;
  max-width: var(--max-w-lg);
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .showcase-layout { grid-template-columns: 1fr; }
}

.showcase-info h3 {
  margin-bottom: var(--space-4);
}
.showcase-info p {
  margin-bottom: var(--space-6);
}
.showcase-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}
.showcase-info ul li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-body);
}
.showcase-info ul li svg {
  width: 16px;
  height: 16px;
  color: var(--conserved);
  flex-shrink: 0;
}

/* ── Product Cards (3-column) ── */
@media (max-width: 1024px) {
  .product-cards { grid-template-columns: 1fr !important; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .product-cards { grid-template-columns: 1fr 1fr !important; }
}

/* ── Architecture Stack ── */
.architecture-section {
  background: var(--bg-alt);
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 900px;
  margin: var(--space-12) auto 0;
}

.arch-layer {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.arch-layer:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.arch-layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.arch-layer-label {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.arch-layer-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
}
.arch-layer-persona {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.arch-layer-components {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* ── Comparison / Differentiation (red vs green cards) ── */
.comparison-section {
  padding: var(--space-24) var(--gutter);
}
@media (max-width: 768px) {
  .comparison-section > .container > .reveal > div {
    grid-template-columns: 1fr !important;
  }
}

/* ── Metrics Strip ── */
.metrics-section {
  background: var(--bg-dark);
  padding: var(--space-16) var(--gutter);
}
.metrics-section .metric-value { color: #f1f5f9; }
.metrics-section .metric-label { color: #64748b; }

/* ── Timeline ── */
.timeline-section {
  padding: var(--space-24) var(--gutter);
}
.timeline {
  max-width: 700px;
  margin: var(--space-12) auto 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  position: relative;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  left: 19px;
}
.timeline-content {
  padding-left: var(--space-4);
}
.timeline-year {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.timeline-content h4 { margin-bottom: var(--space-2); }
.timeline-content p { font-size: var(--text-sm); }

/* ── Pricing Preview ── */
.pricing-section {
  background: var(--bg-alt);
  padding: var(--space-24) var(--gutter);
}

/* Hero is transparent so neural network shows through */
.hero {
  background: transparent;
}

/* ── Industries / Use Cases ── */
.industries-section {
  padding: var(--space-24) var(--gutter);
  background: var(--bg-alt);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .industry-grid { grid-template-columns: 1fr; }
}

.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
}
.industry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.industry-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.industry-card h4 {
  margin-bottom: var(--space-2);
}
.industry-card p {
  font-size: var(--text-sm);
  color: var(--text-body);
  margin-bottom: var(--space-4);
}

.industry-frameworks {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ── Showcase Gallery Strip ── */
.showcase-gallery {
  margin-top: var(--space-12);
}
.gallery-label {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  text-align: center;
}
.gallery-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: var(--space-2) 0 var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 4px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.gallery-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-dark, #0c1220);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  transition: border-color var(--duration) var(--ease);
  cursor: pointer;
}
.gallery-thumb:hover {
  border-color: var(--accent);
}
.gallery-thumb canvas {
  display: block;
  width: 240px;
  height: 120px;
  border-radius: var(--radius-sm);
}
.gallery-thumb span {
  font-family: var(--font-code);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── 6-Tab Showcase Section ── */
.showcase-tabs-section {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: var(--space-24) var(--gutter);
}
.showcase-tabs-section .section-label { color: var(--accent); }

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid #1e293b;
  background: transparent;
  color: #64748b;
  font-family: var(--font-code);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.showcase-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.showcase-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.showcase-tab svg { stroke: currentColor; }

@media (max-width: 768px) {
  .showcase-tab { padding: 6px 10px; font-size: 10px; }
  .showcase-tab svg { display: none; }
}

/* ── How It Works Section ── */
.howitworks-section {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: var(--space-24) var(--gutter);
}
.howitworks-section .section-label { color: var(--accent); }
.howitworks-section .section-title { color: #f1f5f9; }
.howitworks-section .section-subtitle { color: #94a3b8; }

.hiw-beat {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-16);
  max-width: var(--max-w-lg);
  margin-left: auto;
  margin-right: auto;
}
.hiw-beat-reverse {
  grid-template-columns: 1.2fr 1fr;
}
.hiw-beat-reverse .hiw-canvas-wrap { order: 1; }
.hiw-beat-reverse .hiw-copy { order: 2; }

.hiw-beat-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .hiw-beat, .hiw-beat-reverse {
    grid-template-columns: 1fr;
  }
  .hiw-beat-reverse .hiw-canvas-wrap { order: 1; }
  .hiw-beat-reverse .hiw-copy { order: 2; }
}

.hiw-copy h3 {
  color: #f1f5f9;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.hiw-copy p {
  color: #94a3b8;
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.hiw-copy em { color: var(--accent); font-style: normal; font-weight: 600; }

.hiw-copy-center { max-width: 600px; }

.hiw-canvas-wrap {
  background: var(--bg-panel, #141c2e);
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hiw-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hiw-canvas-center {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
}

/* ── Wizard Teaser Section ── */
.wizard-teaser-section {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: var(--space-24) var(--gutter);
}
.wizard-teaser-section .section-label { color: var(--accent); }
.wizard-teaser-section .section-title { color: #f1f5f9; }
.wizard-teaser-section .section-subtitle { color: #94a3b8; }

.wizard-panel-wrap {
  max-width: 720px;
  margin: var(--space-12) auto 0;
}

.wizard-step-pills {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.wizard-step-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid #1e293b;
  background: transparent;
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: #64748b;
  transition: all var(--duration-md) var(--ease);
  cursor: default;
}
.wizard-step-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
}

.wizard-step-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  background: #1e293b;
  color: #64748b;
  transition: all var(--duration-md) var(--ease);
}
.wizard-step-pill.active .wizard-step-num {
  background: var(--accent);
  color: #ffffff;
}

.wizard-step-label {
  font-weight: 500;
}

.wizard-step-divider {
  width: 24px;
  height: 1px;
  background: #1e293b;
  align-self: center;
}

@media (max-width: 768px) {
  .wizard-step-pills {
    gap: var(--space-1);
  }
  .wizard-step-pill {
    padding: var(--space-1) var(--space-2);
    font-size: 10px;
  }
  .wizard-step-label { display: none; }
  .wizard-step-divider { width: 12px; }
  .wizard-panel-wrap { margin-top: var(--space-8); }
}

/* ── Deliverables / What You Get Section ── */
.deliverables-section {
  padding: var(--space-24) var(--gutter);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
  max-width: var(--max-w-lg);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .deliverables-grid { grid-template-columns: 1fr; }
}

.deliverable-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.deliverable-canvas-wrap {
  background: var(--bg-dark, #0c1220);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.deliverable-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.deliverable-card h4 {
  padding: var(--space-4) var(--space-6) var(--space-2);
}
.deliverable-card p {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-body);
}
