/* ── SupplyMind / SupplyFlow Brand Overrides ── */

:root {
  /* Primary: Deep blue */
  --md-primary-fg-color: #1e3a5f;
  --md-primary-fg-color--light: #2a5080;
  --md-primary-fg-color--dark: #152d4a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #f5f7fa;

  /* Accent: Electric teal */
  --md-accent-fg-color: #00d4aa;
  --md-accent-fg-color--transparent: #00d4aa1a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #e6faf5;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2a5080;
  --md-primary-fg-color--light: #3a6a9f;
  --md-primary-fg-color--dark: #1e3a5f;
  --md-accent-fg-color: #00d4aa;
}

/* ── Hero Section ── */
.md-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 0 0 2rem 2rem;
  margin-bottom: 2rem;
}

.md-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ── Feature Cards Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ── Product Columns (Hero split) ── */
.product-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .product-columns {
    grid-template-columns: 1fr;
  }
  .md-hero h1 {
    font-size: 2rem;
  }
}

.product-card {
  background: var(--md-default-bg-color);
  border: 2px solid var(--md-default-fg-color--lightest);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: var(--md-accent-fg-color);
}

.product-card h2 {
  color: var(--md-primary-fg-color);
}

.product-card .badge {
  display: inline-block;
  background: var(--md-accent-fg-color);
  color: #0d2137;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ── CTA Buttons ── */
.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 0.5rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-primary {
  background: var(--md-accent-fg-color);
  color: #0d2137 !important;
}

.cta-secondary {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-fg-color) !important;
}

/* ── Stat Highlights ── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--md-accent-fg-color);
  display: block;
}

.stat-item .label {
  font-size: 0.875rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Comparison Table Enhancements ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--md-primary-fg-color);
  color: white;
  padding: 1rem;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.comparison-table tr:hover td {
  background: var(--md-accent-fg-color--transparent);
}

/* ── Mermaid diagram overrides ── */
.mermaid {
  margin: 2rem 0;
}

/* ── Screenshot placeholders ── */
.screenshot-placeholder {
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  border: 2px dashed var(--md-default-fg-color--lighter);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--md-default-fg-color--light);
  font-style: italic;
  margin: 1.5rem 0;
}

[data-md-color-scheme="slate"] .screenshot-placeholder {
  background: linear-gradient(135deg, #1a2332, #243447);
}

/* ── Roadmap Page ── */

.roadmap-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 60%, #003d33 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-radius: 0 0 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.roadmap-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #ffffff 30%, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roadmap-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 660px;
  margin: 0 auto;
}

.roadmap-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

/* ── Phase Card ── */

.roadmap-phase {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
  margin: 0.5rem 0;
  transition: box-shadow 0.2s;
}

.roadmap-phase:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .roadmap-phase:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.phase-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.phase-header h3 {
  width: 100%;
  margin: 0 0 0.25rem;
  color: white !important;
  font-size: 1.3rem;
}

.phase-header h3 a.headerlink {
  color: rgba(255, 255, 255, 0.4) !important;
}

.phase-1 { background: linear-gradient(135deg, #1e3a5f, #2a5080); }
.phase-2 { background: linear-gradient(135deg, #1a4a3a, #2a7a5a); }
.phase-3 { background: linear-gradient(135deg, #4a3a1e, #7a6a2a); }
.phase-4 { background: linear-gradient(135deg, #3a1e4a, #5a2a7a); }

.phase-body {
  padding: 1.5rem;
}

/* ── Phase Badges ── */

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phase-active {
  background: #00d4aa;
  color: #0d2137;
}

.phase-upcoming {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.phase-future {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.phase-date {
  font-size: 0.85rem;
  opacity: 0.8;
  color: white;
  margin-left: auto;
}

/* ── Roadmap Details Grid (milestones + KPIs side by side) ── */

.roadmap-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .roadmap-details-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-hero h1 {
    font-size: 1.8rem;
  }
  .phase-date {
    margin-left: 0;
  }
}

.roadmap-detail-card {
  background: var(--md-code-bg-color);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.roadmap-detail-card p:first-child {
  margin-top: 0;
}

.roadmap-detail-card table {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.roadmap-detail-card .task-list-control input {
  accent-color: var(--md-accent-fg-color);
}
