/* ============================================
   MFX Network - Modern Stylesheet
   Supports: Dark/Light/System themes, i18n, Responsive
   ============================================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables - Dark Theme (default) - matching wallet/explorer */
:root {
  --bg-main-dark: #0f172a;
  --bg-surface-dark: #1e293b;
  --text-main-dark: #f1f5f9;
  --text-muted-dark: #94a3b8;
  --accent-gold: #f5b74a;
  --accent-teal: #43c6ac;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.2);
  
  /* Light Theme Variables - matching wallet/explorer */
  --bg-main-light: #ffffff;
  --bg-surface-light: #f9fafb;
  --text-main-light: #111827;
  --text-muted-light: #6b7280;
  --border-light: rgba(15, 23, 42, 0.1);
  
  /* Active Theme Variables (set by JS) */
  --bg-main: var(--bg-main-dark);
  --bg-surface: var(--bg-surface-dark);
  --text-main: var(--text-main-dark);
  --text-muted: var(--text-muted-dark);
  --border: var(--border-dark);
}

/* Light Theme */
html.theme-light {
  --bg-main: var(--bg-main-light);
  --bg-surface: var(--bg-surface-light);
  --text-main: var(--text-main-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--accent-gold);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent-teal);
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
}

/* Navigation */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-gold);
  outline: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem;
}

.lang-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher button:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.lang-switcher button.active {
  color: var(--accent-gold);
  background-color: var(--bg-surface);
}

/* Theme Switcher */
.theme-switcher {
  position: relative;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--bg-main);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background-color: var(--bg-surface);
  border-color: var(--accent-gold);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
  box-shadow: var(--shadow-card);
}

.theme-menu.active {
  display: flex;
}

.theme-menu button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-menu button:hover {
  color: var(--text-main);
  background-color: var(--bg-main);
}

.theme-menu button.active {
  color: var(--accent-gold);
  background-color: var(--bg-main);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-gold);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-content--centered {
  text-align: center;
}

.section-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-subtitle {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

.section--compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.api-base-url {
  margin-top: 1rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 8rem 0 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  /* TODO: заменить на реальный фон с vecteezy.com */
  /* background-image: url('/assets/hero-bg.jpg'); */
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-weight: 700;
}

.hero-text--centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Network Card */
.network-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.network-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.network-value {
  color: var(--text-main);
  font-weight: 600;
}

.status-online {
  color: var(--accent-teal);
}

.network-link {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.network-link:hover {
  color: var(--accent-teal);
  text-decoration: underline;
}

/* ============================================
   GRIDS
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   ROADMAP / TIMELINE
   ============================================ */
.timeline {
  max-width: 900px;
  margin: 3rem auto 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: -3rem;
  width: 2px;
  background-color: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--bg-main-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.timeline-content h3 {
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   DEV PAGE STYLES
   ============================================ */
.config-table {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.config-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  list-style: none;
}

.config-list dt {
  font-weight: 600;
  color: var(--accent-gold);
}

.config-list dd {
  color: var(--text-muted);
  margin: 0;
}

.config-list dd a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.config-list dd a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.metamask-guide,
.wallet-connect-note {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.metamask-guide h3,
.wallet-connect-note h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.guide-list {
  list-style: decimal;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.guide-list li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.guide-list ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.endpoint-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.endpoint-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-teal);
}

.endpoint-card h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.endpoint-url {
  margin-bottom: 1rem;
}

.endpoint-url a,
.endpoint-url code {
  color: var(--accent-teal);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.endpoint-url a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.endpoint-url a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.code-example {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.code-example h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.code-example pre {
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 0;
}

.code-example code {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre;
}

/* ============================================
   FAQ STYLES
   ============================================ */
.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item h3,
.faq-item h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.faq-item ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.faq-item ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.faq-item code {
  background-color: var(--bg-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--accent-teal);
}

.faq-item a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.faq-item a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ============================================
   VALIDATORS PAGE STYLES
   ============================================ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.role-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-gold);
}

.role-card h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.role-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.requirements-table {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.uptime-requirements {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.uptime-requirements h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.economics-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.rewards-card {
  border-color: var(--accent-teal);
}

.rewards-card:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 8px 24px rgba(67, 198, 172, 0.2);
}

.risks-card {
  border-color: var(--accent-gold);
}

.risks-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(245, 183, 74, 0.2);
}

.economics-card h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.note-text {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
}

.steps-list li {
  counter-increment: step-counter;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 4rem;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  background-color: var(--accent-gold);
  color: var(--bg-main-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.steps-list li strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.steps-list li p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-small .logo-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-chain {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-chain a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-chain a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .network-card {
    order: -1;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--bg-surface);
    width: 100%;
    padding: 2rem;
    border-top: 1px solid var(--border);
    transition: right 0.3s ease;
    gap: 1rem;
    box-shadow: var(--shadow-card);
  }

  .nav.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .lang-switcher {
    display: none; /* Hide on mobile, can show if needed */
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .config-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .config-list dt {
    margin-top: 1rem;
  }

  .config-list dt:first-child {
    margin-top: 0;
  }

  .endpoints-grid {
    grid-template-columns: 1fr;
  }

  .code-example pre {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    padding-left: 3.5rem;
  }

  .steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    left: 1rem;
    top: 1.25rem;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-item::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus,
button:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

body.nav-open {
  overflow: hidden;
}
