/* ==========================================================================
   REDSITE Brand & Product Design System (DESIGN.md)
   Product: YAML to JSON Converter by REDSITE (yamltojson.redsite.in)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --ink: #0a0a0a;          /* Raven Black — Headings, brand accents, dark sections */
  --ink-soft: #24272e;     /* Raven Soft — Card titles, deep borders */
  --red: #e11d48;          /* Poppy Red — Primary brand accent, primary CTA gradient, highlights */
  --red-hover: #be123c;    /* Deep Crimson — Button hover and active state */
  --blue: #b0e0e6;         /* Powder Blue — Privacy badges, dark-band highlights, symbols */
  --blue-accent: #0284c7;  /* Sky Blue — Focus rings, selection indicators, active links */

  /* Neutral Backgrounds & Surfaces */
  --paper: #ffffff;        /* Canvas Paper — Main page and card background */
  --paper-warm: #fafbfc;   /* Warm Surface — Toolbar, steps, footer backgrounds */
  --paper-panel: #f8fafc;  /* Panel Gray — Pane headers, eyebrow backgrounds */

  /* Borders & Dividers */
  --line: #e2e8f0;         /* Standard Border — Crisp 1px structure */
  --line-light: #f1f5f9;   /* Subtle Divider — Internal card borders */

  /* Typography Colors */
  --muted: #5e636e;        /* Secondary Text — Descriptions, metadata, secondary links */
  --muted-light: #8e939e;  /* Hints / Watermarks — Placeholders, shortcut hints */

  /* Semantic Feedback Tints */
  --red-soft: #fff1f2;     /* Error Banner Background */
  --red-border: #fecdd3;   /* Error Border */
  --red-text: #9f1239;     /* Error Text */
  --green: #10b981;        /* Success / Active Live Dot */
  --green-soft: #ecfdf5;   /* Success Banner Background */
  --green-border: #a7f3d0; /* Success Border */
  --green-text: #065f46;   /* Success Text */
  --amber: #f59e0b;        /* Warning color */
  --amber-soft: #fffbeb;   /* Warning background */
  --amber-border: #fde68a; /* Warning border */
  --amber-text: #92400e;   /* Warning text */

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -12px rgba(10, 10, 10, 0.08);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1240px;
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--red);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   4.1 Topbar Navigation
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.product-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.brand-byline {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.brand-byline b {
  color: var(--red);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  background-color: var(--paper);
  transition: all 0.15s ease;
}

.back-link:hover {
  border-color: var(--ink-soft);
  background-color: var(--paper-warm);
}

/* ==========================================================================
   4.2 Hero Section & Eyebrow
   ========================================================================== */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.trust-row span b {
  color: var(--red);
  font-weight: 700;
  margin-right: 4px;
}

/* ==========================================================================
   4.4 The Workbench / Tool Container
   ========================================================================== */
.workbench-section {
  padding-bottom: 60px;
}

.workbench-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Direction Bar (YAML -> JSON vs JSON -> YAML) */
.direction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.direction-toggle-group {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.direction-btn {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.direction-btn.active {
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.swap-direction-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swap-direction-btn:hover {
  background-color: #f1f5f9;
  border-color: var(--ink-soft);
  color: var(--red);
}

/* Workbench Toolbar Header */
.workbench-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 4.3 Action Buttons */
.primary-btn {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a080c 45%, #e11d48 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  height: 38px;
  padding: 0 14px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.secondary-btn:hover {
  background-color: var(--paper-warm);
  border-color: var(--muted-light);
}

.pill-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pill-select {
  height: 38px;
  padding: 0 32px 0 12px;
  background-color: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono);
}

.pill-select:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.pill-select-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 10px;
  color: var(--muted);
}

.toolbar-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--paper-panel);
  border: 1px solid var(--line);
}

.toolbar-toggle-label input[type="checkbox"] {
  accent-color: var(--red);
  cursor: pointer;
}

.file-input-hidden {
  display: none;
}

/* Status Bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.ready {
  background-color: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-pill.valid {
  background-color: var(--green-soft);
  color: var(--green-text);
  border: 1px solid var(--green-border);
}

.status-pill.error {
  background-color: var(--red-soft);
  color: var(--red-text);
  border: 1px solid var(--red-border);
}

.status-message {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 650px;
}

.status-message.error-text {
  color: var(--red-text);
  font-weight: 600;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.status-delta {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #e2e8f0;
  color: var(--ink);
}

.status-delta.saved {
  background-color: var(--green-soft);
  color: var(--green-text);
}

/* Dual Pane Editor Container */
.dual-pane-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  position: relative;
  background-color: var(--paper);
}

.dual-pane-editor.stacked-layout {
  grid-template-columns: 1fr;
}

.dual-pane-editor.stacked-layout .editor-pane:first-child {
  border-right: none;
  border-bottom: 1px solid var(--line);
}

.dual-pane-editor.stacked-layout .code-textarea {
  min-height: 280px;
}

.editor-pane {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.editor-pane:first-child {
  border-right: 1px solid var(--line);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--paper-panel);
  border-bottom: 1px solid var(--line);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.format-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-weight: 800;
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pane-tool-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pane-tool-btn:hover {
  background-color: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

/* Editor Body & Line Numbers */
.editor-body {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.line-numbers {
  width: 44px;
  padding: 14px 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-light);
  background-color: var(--paper-panel);
  border-right: 1px solid var(--line);
  user-select: none;
  overflow: hidden;
  white-space: pre-line;
}

.code-textarea {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  border: none;
  outline: none;
  resize: none;
  background-color: var(--paper);
  color: var(--ink);
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  word-break: normal;
  word-wrap: normal;
}

.code-textarea::placeholder {
  color: var(--muted-light);
}

.code-textarea:focus {
  outline: none;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  color: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.drop-overlay.active {
  display: flex;
}

.drop-overlay-box {
  padding: 24px 36px;
  border: 2px dashed #b0e0e6;
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font-mono);
}

/* Samples Toolbar Under Workbench */
.sample-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background-color: var(--paper-warm);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.sample-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sample-chip {
  padding: 5px 12px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sample-chip:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

/* ==========================================================================
   4.5 The Signature Privacy Band
   ========================================================================== */
.privacy-band {
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 44px max(calc((100vw - 1240px) / 2), 24px);
  margin: 60px 0 80px;
}

.privacy-symbol {
  font-size: 42px;
  color: #b0e0e6;
  flex-shrink: 0;
  line-height: 1;
}

.privacy-content {
  flex: 1;
}

.privacy-content .eyebrow {
  background-color: #14171f;
  border-color: #24272e;
  color: #b0e0e6;
  margin-bottom: 10px;
}

.privacy-band h2 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 8px;
}

.privacy-band h2 em {
  color: #b0e0e6;
  font-style: normal;
}

.privacy-band p {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 800px;
}

.privacy-tag {
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #b0e0e6;
  white-space: nowrap;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 16px;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-soft);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   Technical Comparison & Guide Sections (SEO)
   ========================================================================== */
.guide-section {
  padding: 70px 0;
  background-color: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.guide-box {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.guide-box h3 {
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-box p, .guide-box li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.guide-box ul {
  padding-left: 20px;
}

.guide-box code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background-color: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

/* Table Style */
.table-wrapper {
  overflow-x: auto;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th {
  background-color: var(--paper-panel);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* How to Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.step-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   4.6 FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 40px 0 80px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
}

.faq-sticky-header {
  position: sticky;
  top: 96px;
  align-self: start;
}

.faq-sticky-header h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.faq-sticky-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion details {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-accordion details[open] {
  border-color: var(--ink-soft);
}

.faq-accordion summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-accordion details[open] summary::after {
  content: "−";
}

.faq-accordion p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-accordion p strong {
  color: var(--ink);
}

.faq-accordion p a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Related Developer Tools & Ecosystem Showcase
   ========================================================================== */
.ecosystem-section {
  padding: 70px 0;
  background-color: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.eco-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.eco-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.eco-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eco-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.eco-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.eco-subdomain {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-mono);
}

.eco-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.eco-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.eco-card:hover .eco-cta {
  color: var(--red);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 360px;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  color: var(--muted-light);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links-inline {
  display: flex;
  gap: 20px;
}

.footer-links-inline a {
  color: var(--muted);
}

.footer-links-inline a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #24272e;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green);
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Breakpoints (DESIGN.md Section 5)
   ========================================================================== */
@media (max-width: 960px) {
  .hero h1 {
    font-size: 34px;
  }
  .dual-pane-editor {
    grid-template-columns: 1fr;
  }
  .editor-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-sticky-header {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 64px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a:not(.back-link) {
    display: none;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .trust-row {
    gap: 14px;
    font-size: 12px;
  }
  .workbench-toolbar {
    padding: 12px;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: stretch;
  }
  .primary-btn, .secondary-btn {
    flex: 1;
    justify-content: center;
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .privacy-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 20px;
    margin: 40px 0 60px;
  }
  .privacy-symbol {
    font-size: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

