/* Dorcas + PhoenixDev Documentation & Tutorial Portal */

:root {
  --dorcas-blue-50: #edf8ff;
  --dorcas-blue-100: #d6efff;
  --dorcas-blue-500: #0095f6;
  --dorcas-blue-600: #0070ba;
  --dorcas-blue-700: #005a96;

  --phoenix-orange: #ff6600;
  --phoenix-orange-deep: #e04d00;
  --phoenix-cyan: #00f2ff;
  --phoenix-cyan-deep: #009fd4;
  --phoenix-navy: #0b3c5d;
  --phoenix-slate: #0e131f;
  --phoenix-light: #f2f4f7;

  --bg-page: #eef3f8;
  --bg-surface: #ffffff;
  --bg-surface-muted: #f2f4f7;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --text-primary: #0c1e35;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 10px rgba(12, 30, 53, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(12, 30, 53, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
}

[data-theme="dark"] {
  --bg-page: #060e1a;
  --bg-surface: #0f1d32;
  --bg-surface-muted: #0a1628;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px -14px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color 200ms ease, color 200ms ease;
}

html[dir="rtl"] body {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code,
kbd,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ltr-inline {
  direction: ltr;
  unicode-bidi: isolate;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .site-header {
  background: rgba(14, 19, 31, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0e131f;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wordmark-phoenix {
  color: inherit;
}

.wordmark-dev {
  color: var(--phoenix-orange);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--dorcas-blue-50);
  color: var(--dorcas-blue-600);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(0, 242, 255, 0.1);
  color: var(--phoenix-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding-inline: 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease;
}

.icon-btn:hover,
.lang-btn:hover {
  border-color: var(--phoenix-orange);
}

.btn-demo-sm {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--phoenix-orange), #e24400);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(255, 102, 0, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-demo-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(255, 102, 0, 0.55);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 12px 20px 18px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer .nav-link {
  display: block;
  padding: 10px 12px;
}

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
  }
  .btn-demo-sm {
    display: inline-flex;
  }
  .mobile-menu-btn,
  .mobile-drawer.open {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  padding-block: 28px 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0e131f;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 24px;
  box-shadow: 0 24px 55px -20px rgba(14, 19, 31, 0.55);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 48px 44px;
  }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-glow-orange {
  position: absolute;
  top: -90px;
  inset-inline-start: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-glow-cyan {
  position: absolute;
  bottom: -100px;
  inset-inline-end: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-accent-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--phoenix-orange), var(--phoenix-cyan), var(--phoenix-navy));
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.35);
  background: rgba(0, 242, 255, 0.1);
  color: var(--phoenix-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .eyebrow-pill {
  letter-spacing: 0;
}

.hero-title {
  margin: 14px 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .hero-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 660px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--phoenix-orange), #e24400);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(255, 102, 0, 0.55);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--phoenix-cyan);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(11, 60, 93, 0.65), rgba(14, 19, 31, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-showcase img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 242, 255, 0.22));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.stat-box {
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--phoenix-cyan);
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: #cbd5e1;
}

/* Sections */
.doc-section {
  padding-block: 38px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--phoenix-orange);
  margin-bottom: 6px;
}

html[dir="rtl"] .section-kicker {
  letter-spacing: 0;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--text-secondary);
  max-width: 720px;
  font-size: 0.95rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* System Architecture Diagram + Inspector */
.arch-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .arch-grid {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: stretch;
  }
}

.arch-diagram-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  padding: 12px;
}

.arch-svg-wrap svg {
  width: 100%;
  min-width: 600px;
  height: auto;
  display: block;
}

.arch-node {
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}

.arch-node rect.node-box {
  transition: stroke 160ms ease, stroke-width 160ms ease, fill 160ms ease;
}

.arch-node.active rect.node-box {
  stroke: var(--phoenix-orange);
  stroke-width: 2.5;
}

.layer-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .layer-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.layer-tab {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: all 150ms ease;
}

.layer-tab.active {
  background: #0e131f;
  color: #ffffff;
  border-color: var(--phoenix-cyan);
  box-shadow: 0 8px 18px -8px rgba(0, 242, 255, 0.35);
}

.arch-inspector {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-muted));
}

.inspector-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 132, 224, 0.12);
  color: var(--dorcas-blue-600);
  font-size: 0.74rem;
  font-weight: 800;
  width: fit-content;
}

[data-theme="dark"] .inspector-badge {
  background: rgba(0, 242, 255, 0.12);
  color: var(--phoenix-cyan);
}

.inspector-title {
  margin: 10px 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.inspector-summary {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phoenix-orange);
  margin-top: 8px;
  flex-shrink: 0;
}

.code-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.code-chip {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--dorcas-blue-600);
}

[data-theme="dark"] .code-chip {
  color: var(--phoenix-cyan);
}

/* Domain Flow (Donor -> Activity) */
.flow-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 860px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-box {
  position: relative;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0e131f;
  color: var(--phoenix-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.flow-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.flow-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.split-compare {
  display: grid;
  gap: 18px;
}

@media (min-width: 820px) {
  .split-compare {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.compare-card.center {
  border-top: 4px solid var(--dorcas-blue-500);
}

.compare-card.mobile {
  border-top: 4px solid var(--phoenix-orange);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.tag-blue,
.tag-orange {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag-blue {
  background: rgba(0, 149, 246, 0.12);
  color: var(--dorcas-blue-600);
}

[data-theme="dark"] .tag-blue {
  color: #38bdf8;
}

.tag-orange {
  background: rgba(255, 102, 0, 0.14);
  color: var(--phoenix-orange);
}

/* Features Filter & Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 150ms ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: #0e131f;
  color: #ffffff;
  border-color: var(--phoenix-orange);
}

.features-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 680px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--dorcas-blue-500);
}

.feature-card.hidden {
  display: none;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dorcas-blue-50);
  color: var(--dorcas-blue-600);
  font-weight: 800;
  font-size: 1rem;
}

[data-theme="dark"] .feature-icon {
  background: rgba(0, 242, 255, 0.12);
  color: var(--phoenix-cyan);
}

.feature-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* RBAC Matrix Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.rbac-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.87rem;
}

.rbac-table th,
.rbac-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: start;
}

.rbac-table thead th {
  background: #0e131f;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.rbac-table tbody tr:hover {
  background: var(--bg-surface-muted);
}

.perm-yes {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.13);
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
}

[data-theme="dark"] .perm-yes {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.perm-scope {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 149, 246, 0.12);
  color: var(--dorcas-blue-600);
  font-size: 0.76rem;
  font-weight: 700;
}

[data-theme="dark"] .perm-scope {
  color: #38bdf8;
}

.perm-no {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Interactive Tutorial */
.creds-banner {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #0e131f;
  color: #ffffff;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 242, 255, 0.25);
}

@media (min-width: 820px) {
  .creds-banner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cred-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cred-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--phoenix-cyan);
  word-break: break-all;
}

.copy-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.copy-btn:hover {
  background: var(--phoenix-orange);
  border-color: var(--phoenix-orange);
}

.progress-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.progress-track {
  flex: 1 1 260px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-surface-muted);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--phoenix-orange), var(--phoenix-cyan));
  transition: width 260ms ease;
}

.reset-progress-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-step {
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease;
}

.tutorial-step.completed {
  border-color: rgba(16, 185, 129, 0.5);
}

.step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.step-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0e131f;
  color: var(--phoenix-cyan);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.step-body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.step-check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}

.step-check-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--phoenix-orange);
  cursor: pointer;
}

.step-tip {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-surface-muted);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-inline-start: 3px solid var(--phoenix-orange);
}

/* About PhoenixDev Section */
.about-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 1.15fr;
  }
}

.about-brand-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0e131f;
  color: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.palette-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.swatch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}

.swatch-color {
  height: 24px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.swatch code {
  font-size: 0.68rem;
  color: #e2e8f0;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  transition: border-color 150ms ease;
}

a.contact-card:hover {
  border-color: var(--phoenix-orange);
}

.contact-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-block: 24px 36px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Copy Toast */
.toast {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0e131f;
  color: #ffffff;
  border: 1px solid var(--phoenix-cyan);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media print {
  .site-header,
  .hero-ctas,
  .filter-bar,
  .copy-btn,
  .reset-progress-btn {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
