:root {
  --bg-canvas: #160f2e;
  --bg-surface: #24194a;
  --bg-surface-alt: #2e205e;
  --text-primary: #ffffff;
  --text-muted: #d1c8ea;
  --accent-primary: #e0409b;
  --accent-secondary: #22d3ee;
  --border-subtle: rgba(224, 64, 155, 0.25);
  --border-hairline: rgba(255, 255, 255, 0.12);
  --spine-color: #e0409b;
  --shadow-hard: 4px 4px 0px #22d3ee;
  --shadow-elevation: 0 16px 36px rgba(10, 6, 24, 0.45);
  --radius-standard: 20px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --line-height-base: 1.7;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: var(--line-height-base);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}

a:hover, a:focus-visible {
  color: var(--accent-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-standard);
  object-fit: cover;
}

/* Site Header */
.site-header {
  position: relative;
  background: linear-gradient(180deg, rgba(36, 25, 74, 0.95) 0%, rgba(22, 15, 46, 0.9) 100%);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0 var(--accent-secondary);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-title span {
  color: var(--accent-secondary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #ffffff;
  background-color: var(--bg-surface);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}

/* 3-dot Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--accent-primary);
}

.mobile-menu-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-elevation);
  padding: 1.25rem 1.5rem;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-links a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

/* Global Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-container {
  max-width: 72ch;
  margin: 0 auto;
}

.section-spacing {
  padding: 4.5rem 0;
}

.band-divider {
  background: linear-gradient(90deg, var(--bg-canvas) 0%, var(--bg-surface) 50%, var(--bg-canvas) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Typography & Titles */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.text-lead {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.6;
}

.badge-tag {
  display: inline-block;
  background-color: rgba(224, 64, 155, 0.18);
  border: 1px solid var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Custom Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-standard);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--accent-secondary);
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-standard);
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  text-decoration: none;
}

/* Hero Section */
.hero-compact {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(circle at top right, rgba(224, 64, 155, 0.15), transparent 60%),
              radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  box-shadow: var(--shadow-elevation);
  border: 2px solid var(--border-subtle);
  width: 100%;
  aspect-ratio: 16 / 10;
}

.hero-stat-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-secondary);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 4px 4px 0 var(--accent-primary);
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-secondary);
  line-height: 1.1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Timeline System */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 999px;
}

.timeline-step {
  position: relative;
  padding-left: 75px;
  margin-bottom: 3rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 12px;
  top: 0;
  width: 34px;
  height: 34px;
  background-color: var(--bg-canvas);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 2;
}

.timeline-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-standard);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s var(--ease-kinetic), border-color 0.25s ease;
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-secondary);
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

/* Borderless List Rows with Hairline Dividers */
.list-rows-group {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border-radius: var(--radius-standard);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
}

.list-row-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.2s ease;
}

.list-row-item:last-child {
  border-bottom: none;
}

.list-row-item:hover {
  background-color: var(--bg-surface-alt);
}

.row-icon-cell {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(224, 64, 155, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-secondary);
}

.row-body {
  flex-grow: 1;
}

.row-title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.row-desc {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Feature Grid with 20px radius cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-panel {
  background-color: var(--bg-surface);
  border-radius: var(--radius-standard);
  padding: 2rem;
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-kinetic);
}

.feature-panel:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-standard);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
}

th {
  background-color: var(--bg-surface-alt);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

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

tr:hover td {
  background-color: rgba(224, 64, 155, 0.05);
}

/* Form Styles & Drafter Tool */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-standard);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.output-preview {
  margin-top: 1.75rem;
  background: var(--bg-canvas);
  border: 1px dashed var(--accent-secondary);
  border-radius: 14px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* FAQ Accordion */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-standard);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 1.75rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent-secondary);
}

.faq-indicator {
  font-size: 1.3rem;
  color: var(--accent-primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-indicator {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-kinetic), padding 0.3s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0.5rem 1.75rem 1.5rem;
}

/* Site Footer */
.site-footer {
  background-color: #0c081a;
  border-top: 2px solid var(--accent-primary);
  padding: 4rem 0 2.5rem;
  margin-top: 5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-p {
  max-width: 38ch;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--accent-secondary);
  padding-left: 0.6rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-hairline);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-stat-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    display: inline-block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-step {
    padding-left: 55px;
  }
  .timeline-node {
    left: 4px;
    width: 32px;
    height: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .list-row-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
