/* ══════════════════════════════════════
   Race Mind – Landing Page Styles
   Colors from tailwind.config.js / colors.ts
   ══════════════════════════════════════ */

/* ── Reset & Base ── */

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

:root {
  --primary: #FF8A00;
  --primary-dark: #FF6B00;
  --secondary: #00D1FF;
  --bg: #050505;
  --surface: #111111;
  --surface-light: #1A1A1A;
  --card: #1A1C1E;
  --muted: #949494;
  --foreground: #FFFFFF;
  --error: #EF4444;
  --success: #22C55E;
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lexend Deca', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Gradient Text ── */

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  font-family: inherit;
}

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

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 138, 0, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(255, 138, 0, 0.5);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  background: var(--primary);
  color: #000 !important;
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.3);
}

.btn-sm:hover {
  box-shadow: 0 0 40px rgba(255, 138, 0, 0.5);
}

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 32px;
  width: auto;
}

.logo-svg--sm {
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow--orange {
  background: var(--primary);
  top: -200px;
  left: -200px;
}

.hero-glow--cyan {
  background: var(--secondary);
  bottom: -200px;
  right: -200px;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-mockup {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* ── Phone Frame ── */

.phone-frame {
  width: 280px;
  background: var(--card);
  border-radius: 2rem;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 209, 255, 0.08);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-frame--sm {
  width: 200px;
  border-radius: 1.5rem;
  padding: 8px;
}

.phone-frame--sm::before {
  width: 55px;
  height: 16px;
  top: 8px;
  border-radius: 0 0 10px 10px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}

.phone-frame--sm .phone-screen {
  border-radius: 1rem;
}

/* ── Placeholder Screen Content ── */

.placeholder-screen {
  padding: 2.5rem 1.25rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-frame--sm .placeholder-screen {
  padding: 2rem 0.75rem 0.75rem;
}

.placeholder-heading {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.placeholder-bar {
  height: 8px;
  background: var(--surface-light);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Hero prognosis bars */

.placeholder-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.pm-label {
  font-size: 0.55rem;
  color: var(--muted);
  width: 3.5rem;
  flex-shrink: 0;
  text-align: right;
}

.pm-bar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
}

.pm-bar--best {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 60%, transparent 60%);
}

.pm-bar--probable {
  background: linear-gradient(90deg, var(--primary) 0%, rgba(255,138,0,0.6) 75%, transparent 75%);
}

.pm-bar--worst {
  background: linear-gradient(90deg, rgba(255,138,0,0.4) 0%, rgba(255,138,0,0.25) 90%, transparent 90%);
}

.pm-value {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--foreground);
  width: 2.5rem;
  flex-shrink: 0;
}

/* Wochenplan sessions */

.placeholder-session {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--foreground);
}

.ps--swim { background: rgba(0, 132, 255, 0.2); border-left: 3px solid #0084FF; }
.ps--bike { background: rgba(255, 138, 0, 0.2); border-left: 3px solid var(--primary); }
.ps--run { background: rgba(0, 209, 255, 0.2); border-left: 3px solid var(--secondary); }
.ps--rest { background: rgba(148, 148, 148, 0.1); border-left: 3px solid var(--muted); color: var(--muted); }

.placeholder-chip {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 138, 0, 0.15);
  color: var(--primary);
  border-radius: 1rem;
  font-size: 0.45rem;
  font-weight: 600;
}

/* Mesocycle blocks */

.meso-block {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meso-block span {
  font-weight: 400;
  font-size: 0.5rem;
  color: var(--muted);
}

.meso-block--build { background: rgba(255, 138, 0, 0.15); color: var(--primary); }
.meso-block--recovery { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.meso-block--taper { background: rgba(0, 209, 255, 0.15); color: var(--secondary); }
.meso-block--race { background: rgba(255, 138, 0, 0.25); color: var(--primary); }

/* Score ring */

.score-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  position: relative;
}

.score-ring svg {
  width: 100%;
  height: 100%;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Analysis cards */

.analysis-cards {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.analysis-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border-radius: 0.5rem;
  font-size: 0.6rem;
  font-weight: 500;
}

.ac-ok { color: var(--success); }
.ac-warn { color: var(--error); }

/* Chat bubbles */

.chat-screen {
  gap: 0.5rem;
  justify-content: flex-end;
  padding-bottom: 1.5rem !important;
}

.chat-bubble {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.5rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble--user {
  background: var(--surface-light);
  color: var(--foreground);
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
}

.chat-bubble--coach {
  background: rgba(255, 138, 0, 0.12);
  color: var(--foreground);
  border-left: 2px solid var(--primary);
  align-self: flex-start;
  border-bottom-left-radius: 0.2rem;
}

/* Prognose bars (feature section) */

.prognose-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.pr-label {
  font-size: 0.55rem;
  color: var(--muted);
  width: 3.5rem;
  flex-shrink: 0;
  text-align: right;
}

.pr-bar {
  flex: 1;
  height: 12px;
  background: var(--surface-light);
  border-radius: 6px;
  overflow: hidden;
}

.pr-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.pr-fill--best { background: var(--primary); }
.pr-fill--probable { background: rgba(255, 138, 0, 0.65); }
.pr-fill--worst { background: rgba(255, 138, 0, 0.35); }

.pr-time {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--foreground);
  width: 2.5rem;
  flex-shrink: 0;
}

.prognose-improvement {
  margin-top: 0.5rem;
  font-size: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Grid layouts */

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

.grid-2col--center {
  align-items: center;
}

.text-block h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* Mockup pair (core message) */

.mockup-pair {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.mockup-arrow {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Features ── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.feature-text em {
  color: var(--foreground);
  font-style: italic;
}

.feature-mockup {
  display: flex;
  justify-content: center;
}

/* ── Highlights ── */

.section--highlights {
  background: var(--surface);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.highlight-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, transform 0.3s;
}

.highlight-card:hover {
  border-color: rgba(255, 138, 0, 0.2);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Testimonials ── */

.section--testimonials {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.4;
}

.stars {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.3;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Audience ── */

.audience-visual {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.silhouette svg {
  width: 180px;
  height: 180px;
}

/* ── Info Table ── */

.info-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-col h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.info-col p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-line {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Download CTA ── */

.section--download {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.download-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download-inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.store-badge svg {
  height: 50px;
  width: auto;
  transition: transform 0.2s;
}

.store-badge:hover svg {
  transform: translateY(-2px);
}

.download-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ── */

.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: rgba(148, 148, 148, 0.5);
}

/* ══════════════════════════════════════
   REVEAL ANIMATION
   ══════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-mockup {
    order: -1;
  }

  .highlights-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .steps-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mockup-pair {
    flex-direction: column;
  }

  .mockup-arrow {
    transform: rotate(90deg);
  }

  .phone-frame {
    width: 240px;
  }

  .phone-frame--sm {
    width: 170px;
  }

  .highlights-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .info-table {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .audience-visual {
    order: -1;
  }

  .silhouette svg {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .phone-frame {
    width: 220px;
  }

  .phone-frame--sm {
    width: 150px;
  }

  .section {
    padding: 4rem 0;
  }

  .section--download {
    padding: 5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════ */

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-success {
  padding: 2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-success p {
  color: var(--success);
  font-weight: 500;
}

/* ══════════════════════════════════════
   SUBPAGES (Legal, Impressum, etc.)
   ══════════════════════════════════════ */

.subpage .nav {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-content {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 80vh;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-content .legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.page-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-content strong {
  color: var(--foreground);
}

.page-content a {
  color: var(--primary);
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content ul,
.page-content ol {
  color: var(--muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.page-content th {
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}

.page-content td {
  color: var(--muted);
}

.page-content .callout {
  background: var(--card);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.page-content .callout p {
  margin-bottom: 0;
}

.page-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2.5rem 0;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lang-toggle a {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.lang-toggle a.active {
  color: var(--foreground);
  border-color: var(--primary);
  background: rgba(255, 138, 0, 0.1);
}

@media (max-width: 768px) {
  .page-content table {
    display: block;
    overflow-x: auto;
  }
}
