/* ═══════════════════════════════════════════════════════════════
   VENOMQA — MERIDIAN DESIGN SYSTEM
   Swiss / Bauhaus / Precision Instrument
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ────────────────────────────────────────── */
:root {
  --stone-50:  #F8F5F2;
  --stone-100: #F0ECE8;
  --stone-200: #E2DDD8;
  --stone-300: #CCC6BF;
  --stone-400: #A89E94;
  --stone-500: #7A6E66;
  --stone-600: #5A5049;
  --stone-700: #3E3530;
  --stone-800: #292118;
  --stone-900: #18120C;

  --orange:    #D05A08;
  --orange-lt: #FDF0E8;
  --green:     #176B3A;
  --amber:     #8A5A00;
  --red:       #AA2020;

  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── PRIMARY & ACCENT COLORS ──────────────────────────────────── */
[data-md-color-primary="custom"],
:root {
  --md-primary-fg-color:             var(--stone-900);
  --md-primary-fg-color--light:      var(--stone-700);
  --md-primary-bg-color:             var(--stone-50);
  --md-primary-bg-color--light:      var(--stone-100);
}

[data-md-color-accent="custom"],
:root {
  --md-accent-fg-color:              var(--orange);
  --md-accent-fg-color--transparent: rgba(208, 90, 8, 0.1);
  --md-accent-bg-color:              var(--orange);
}

/* ── DARK MODE ────────────────────────────────────────────────── */
[data-md-color-scheme="slate"] {
  --md-hue: 30;
  --md-default-fg-color:             var(--stone-100);
  --md-default-fg-color--light:      var(--stone-400);
  --md-default-bg-color:             var(--stone-900);
  --md-code-bg-color:                var(--stone-800);
  --md-code-fg-color:                var(--stone-200);
  --md-primary-fg-color:             var(--stone-100);
  --md-primary-bg-color:             var(--stone-900);
}

/* ─-- TYPOGRAPHY ──────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ── SWISS DESIGN: NO BORDER RADIUS ───────────────────────────── */
.md-button,
.md-typeset code,
.md-typeset pre > code,
.md-typeset .admonition,
.md-typeset details,
.md-typeset table:not([class]),
.md-search__form,
.md-typeset .feature-card,
.md-typeset .try-it-box,
.md-typeset .terminal {
  border-radius: 0 !important;
}

/* Hero section styling */
.md-typeset .hero {
  text-align: center;
  padding: 2rem 0;
}

.md-typeset .hero h1 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.md-typeset .hero .tagline {
  font-size: 1.25rem;
  color: var(--stone-500);
  margin-bottom: 2rem;
}

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

.md-typeset .feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-typeset-table-color);
}

.md-typeset .feature-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.md-typeset .feature-card p {
  margin-bottom: 0;
  color: var(--md-default-fg-color--light);
}

/* Buttons */
.md-typeset .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.md-typeset .md-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.md-typeset .md-button--primary {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.md-typeset .md-button--primary:hover {
  background: var(--md-accent-fg-color);
}

.md-typeset .md-button--secondary {
  border: 2px solid var(--md-primary-fg-color);
  color: var(--md-primary-fg-color);
}

.md-typeset .md-button--secondary:hover {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* Code blocks */
.md-typeset pre code {
  font-size: 0.85rem;
}

/* Comparison table */
.md-typeset .comparison-table {
  overflow-x: auto;
}

.md-typeset .comparison-table th,
.md-typeset .comparison-table td {
  white-space: nowrap;
}

/* Terminal-style output */
.md-typeset .terminal {
  background: #1a1a2e;
  color: #eee;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: var(--md-code-font-family);
  font-size: 0.85rem;
  overflow-x: auto;
}

.md-typeset .terminal .prompt {
  color: #7c3aed;
}

.md-typeset .terminal .output {
  color: #22c55e;
}

/* Badges */
.md-typeset .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.md-typeset .badge--new {
  background: #22c55e;
  color: white;
}

.md-typeset .badge--beta {
  background: #f59e0b;
  color: white;
}

/* Mermaid diagrams */
.md-typeset .mermaid {
  text-align: center;
  margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .md-typeset .hero h1 {
    font-size: 2rem;
  }

  .md-typeset .button-group {
    flex-direction: column;
    align-items: center;
  }
}

/* Landing page hero */
.md-typeset .hero-section {
  text-align: center;
  padding: 2rem 0 3rem 0;
}

.md-typeset .hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-typeset .hero-tagline {
  font-size: 1.4rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2rem;
}

/* Try it now box */
.md-typeset .try-it-box {
  background: var(--md-code-bg-color);
  border: 2px solid var(--md-primary-fg-color);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 520px;
  font-family: var(--md-code-font-family);
}

.md-typeset .try-it-box code {
  font-size: 1.1rem;
  color: var(--md-code-fg-color);
  background: transparent;
  padding: 0;
}

.md-typeset .try-it-label {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.5rem;
  font-family: var(--md-text-font-family);
}

/* Step numbers */
.md-typeset .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--md-primary-fg-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* Architecture diagram */
.md-typeset .architecture-box {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--md-code-font-family);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Responsive landing page */
@media (max-width: 768px) {
  .md-typeset .hero-section h1 {
    font-size: 2.5rem;
  }

  .md-typeset .try-it-box {
    padding: 1rem;
    max-width: 100%;
  }

  .md-typeset .try-it-box code {
    font-size: 0.85rem;
    word-break: break-all;
  }
}
