/* ============================================================
   Infotograf — Website Styles
   Design tokens mapped from iOS AppTheme.swift
   ============================================================ */

:root {
  /* === Dark Mode Tokens (nav, hero, philosophy, footer) === */
  --bg-app-dark: #1c1a1b;
  --bg-card-dark: #2c2a2b;
  --bg-input-dark: #353334;
  --bg-elevated-dark: #363435;
  --text-primary-dark: #e8e6e7;
  --text-secondary-dark: #8a8889;
  --text-tertiary-dark: #666565;
  --text-link-dark: #6a9fd4;
  --border-primary-dark: #484647;
  --border-secondary-dark: #4e4c4d;
  --header-gradient-top: #3a5270;
  --header-gradient-bottom: #263d5c;
  --header-border: #1e344e;
  --cta-gradient-top: #4a82b5;
  --cta-gradient-bottom: #2f6499;
  --cta-border: #245a8e;
  --tab-gradient-top: #393939;
  --tab-gradient-bottom: #1a1a1a;
  --tab-border: #555555;

  /* === Light Mode Tokens (features, content pages) === */
  --bg-app-light: #efedee;
  --bg-card-light: #ffffff;
  --bg-input-light: #f5f5f5;
  --text-primary-light: #333333;
  --text-secondary-light: #999999;
  --text-tertiary-light: #bbbbbb;
  --text-link-light: #3b6994;
  --border-primary-light: #d4d4d4;
  --border-secondary-light: #cccccc;

  /* === Invariant Accents === */
  --accent-red: #ed4956;
  --success-green: #4caf50;

  /* === Typography === */
  --font-logo: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* === Layout === */
  --section-padding-y: 100px;
  --section-padding-x: 24px;
  --content-max-width: 980px;
  --nav-height: 48px;

  /* === Corner Radii (from iOS) === */
  --radius-button: 3px;
  --radius-card: 4px;
}


/* ─── Reset ────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary-light);
  background: var(--bg-app-light);
}


/* ─── Navigation ───────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: linear-gradient(to bottom, var(--header-gradient-top), var(--header-gradient-bottom));
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 21px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

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


/* ─── Hero Section ─────────────────────────────────────── */

.hero {
  background: var(--bg-app-dark);
  color: var(--text-primary-dark);
  text-align: center;
  padding: 120px var(--section-padding-x) 100px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 72px;
  color: var(--text-primary-dark);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-brand-i {
  height: 68px;
  width: auto;
  vertical-align: baseline;
  margin-right: -4px;
  display: inline-block;
  position: relative;
  top: 2px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 200;
  color: var(--text-secondary-dark);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(to bottom, var(--cta-gradient-top), var(--cta-gradient-bottom));
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-button);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.hero-cta--secondary {
  background: linear-gradient(to bottom, #444, #2a2a2a);
  border-color: #555;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero--compact {
  min-height: auto;
  padding: 80px var(--section-padding-x);
}

.hero--compact .hero-tagline {
  margin-bottom: 32px;
}


/* ─── Features Section ─────────────────────────────────── */

.features {
  background: var(--bg-app-light);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.features-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary-light);
  margin-bottom: 16px;
}

.features-subheading {
  text-align: center;
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary-light);
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-primary-light);
  border-radius: var(--radius-card);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary-light);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary-light);
  line-height: 1.6;
}


/* ─── Philosophy Section ───────────────────────────────── */

.philosophy {
  background: var(--bg-card-dark);
  color: var(--text-primary-dark);
  text-align: center;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.philosophy-inner {
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-heading {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 200;
  margin-bottom: 24px;
}

.philosophy-text {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary-dark);
  line-height: 1.8;
}


/* ─── Footer ───────────────────────────────────────────── */

.footer {
  background: linear-gradient(to bottom, var(--tab-gradient-top), var(--tab-gradient-bottom));
  border-top: 1px solid var(--tab-border);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px var(--section-padding-x);
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
  max-width: var(--content-max-width);
  margin: 24px auto 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}


/* ─── Content Pages (Privacy, Support) ─────────────────── */

.content-page-header {
  background: var(--bg-app-dark);
  text-align: center;
  padding: 64px var(--section-padding-x) 56px;
}

.content-page-header h1 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary-dark);
}

.content-page-header .last-updated {
  font-size: 13px;
  color: var(--text-secondary-dark);
  margin-top: 8px;
}

.content-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--section-padding-x) 80px;
}

.content-body h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary-light);
  margin-top: 40px;
  margin-bottom: 16px;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary-light);
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-body p {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-body ul,
.content-body ol {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}

.content-body li {
  margin-bottom: 6px;
}

.content-body a {
  color: var(--text-link-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.content-body a:hover {
  border-bottom-color: var(--text-link-light);
}


/* ─── Contact Card ─────────────────────────────────────── */

.contact-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-primary-light);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.contact-card p {
  color: var(--text-secondary-dark);
}

.contact-email {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-link-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-bottom-color: var(--text-link-light);
}


/* ─── FAQ Accordion ────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border-primary-light);
  padding: 20px 0;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item .faq-answer {
  margin-top: 12px;
}

.faq-item .faq-answer p {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 0;
}


/* ─── Animations ───────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo,
.hero-tagline,
.hero-cta {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-tagline {
  animation-delay: 0.15s;
}

.hero-cta {
  animation-delay: 0.3s;
}

/* ─── Theme Toggle ─────────────────────────────────────── */

.theme-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  margin-left: 16px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #2c2a2b;
  border: 1px solid #484647;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 140px;
  z-index: 1001;
  overflow: hidden;
  display: none;
  padding: 4px 0;
}

.theme-menu--open {
  display: block;
}

.theme-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #e8e6e7;
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
}

.theme-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-check {
  font-size: 14px;
  margin-left: 12px;
  color: #6a9fd4;
}


/* ─── Dark Theme Overrides ─────────────────────────────── */

[data-theme="dark"] body {
  background: var(--bg-app-dark);
  color: var(--text-primary-dark);
}

[data-theme="dark"] .features {
  background: var(--bg-card-dark);
}

[data-theme="dark"] .features-heading {
  color: var(--text-primary-dark);
}

[data-theme="dark"] .features-subheading {
  color: var(--text-secondary-dark);
}

[data-theme="dark"] .feature-card {
  background: var(--bg-app-dark);
  border-color: var(--border-primary-dark);
}

[data-theme="dark"] .feature-title {
  color: var(--text-primary-dark);
}

[data-theme="dark"] .feature-desc {
  color: var(--text-secondary-dark);
}

[data-theme="dark"] .content-body {
  background: var(--bg-app-dark);
}

[data-theme="dark"] .content-body h2,
[data-theme="dark"] .content-body h3 {
  color: var(--text-primary-dark);
}

[data-theme="dark"] .content-body p,
[data-theme="dark"] .content-body ul,
[data-theme="dark"] .content-body ol {
  color: var(--text-secondary-dark);
}

[data-theme="dark"] .content-body a {
  color: var(--text-link-dark);
}

[data-theme="dark"] .contact-card {
  background: var(--bg-card-dark);
  border-color: var(--border-primary-dark);
}

[data-theme="dark"] .contact-card p {
  color: var(--text-secondary-dark);
}

[data-theme="dark"] .faq-item {
  border-color: var(--border-primary-dark);
}

[data-theme="dark"] .faq-item summary {
  color: var(--text-primary-dark);
}

[data-theme="dark"] .faq-item summary::after {
  color: var(--text-tertiary-dark);
}

[data-theme="dark"] .faq-item .faq-answer p {
  color: var(--text-secondary-dark);
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --section-padding-y: 64px;
  }

  .hero {
    padding: 80px 20px 64px;
    min-height: 60vh;
  }

  .hero-logo {
    font-size: 48px;
  }

  .hero-brand-i {
    height: 45px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero--compact {
    padding: 56px 20px;
  }

  .features-heading {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .philosophy-heading {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .content-page-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    font-size: 36px;
  }

  .hero-brand-i {
    height: 34px;
  }

  .hero {
    padding: 64px 16px 48px;
  }

  .hero--compact {
    padding: 48px 16px;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .content-body {
    padding: 32px 16px 60px;
  }

  .content-page-header {
    padding: 48px 16px 40px;
  }
}


/* ============================================================
   Fediverse Page
   ============================================================ */

/* ─── Active nav link ──────────────────────────────────── */

.nav-link-active {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}


/* ─── Fediverse Hero ───────────────────────────────────── */

.fedi-hero {
  background: var(--bg-app-dark);
  color: var(--text-primary-dark);
  text-align: center;
  padding: 100px var(--section-padding-x) 80px;
}

.fedi-hero-byline {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.fedi-hero-title {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 200;
  color: var(--text-primary-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.fedi-hero-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: normal;
}

.fedi-hero-subtitle {
  font-size: 19px;
  font-weight: 200;
  color: var(--text-secondary-dark);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}


/* ─── Fediverse Sections ───────────────────────────────── */

.fedi-section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.fedi-section--light {
  background: var(--bg-app-light);
}

.fedi-section--dark {
  background: var(--bg-card-dark);
}

.fedi-section--cta {
  background: var(--bg-app-dark);
  text-align: center;
  padding: 80px var(--section-padding-x);
}

.fedi-section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.fedi-chapter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary-light);
  margin-bottom: 12px;
}

.fedi-chapter-label--dark {
  color: var(--text-tertiary-dark);
}

.fedi-section-heading {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary-light);
  margin-bottom: 32px;
}

.fedi-section-heading--dark {
  color: var(--text-primary-dark);
}


/* ─── Prose ────────────────────────────────────────────── */

.fedi-prose {
  max-width: 680px;
}

.fedi-prose--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fedi-prose p {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.fedi-prose--dark p {
  color: var(--text-secondary-dark);
}

.fedi-prose em {
  font-style: italic;
  color: var(--text-primary-light);
}

.fedi-prose--dark em {
  color: var(--text-primary-dark);
}

.fedi-prose strong {
  font-weight: 500;
  color: var(--text-primary-light);
}

.fedi-prose--dark strong {
  color: var(--text-primary-dark);
}

.fedi-prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

.fedi-prose--dark code {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}


/* ─── Illustrations ────────────────────────────────────── */

.fedi-illustration {
  margin: 40px auto;
  max-width: 480px;
}

.fedi-illustration--hero {
  max-width: 400px;
  opacity: 0.8;
}

.fedi-illustration--architecture {
  max-width: 640px;
  overflow-x: auto;
}

.fedi-illustration svg {
  width: 100%;
  height: auto;
}


/* ─── Comparison (email ≈ fediverse) ───────────────────── */

.fedi-comparison-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fedi-comparison-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-primary-light);
  border-radius: var(--radius-card);
  flex: 0 1 200px;
}

.fedi-comparison-card svg {
  width: 80px;
  height: auto;
  margin-bottom: 12px;
}

.fedi-comparison-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary-light);
  margin-bottom: 6px;
}

.fedi-comparison-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary-light);
  line-height: 1.5;
}

.fedi-comparison-arrow svg {
  width: 32px;
  height: auto;
}


/* ─── Implementation Steps ─────────────────────────────── */

.fedi-steps {
  margin-top: 48px;
}

.fedi-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.fedi-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--cta-gradient-top), var(--cta-gradient-bottom));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fedi-step-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary-light);
  margin-bottom: 8px;
}

.fedi-step-content p {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  line-height: 1.7;
}

.fedi-step-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}


/* ─── Feature Grid ─────────────────────────────────────── */

.fedi-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.fedi-feature-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-primary-dark);
  border-radius: var(--radius-card);
}

.fedi-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.fedi-feature-icon svg {
  width: 100%;
  height: 100%;
}

.fedi-feature-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary-dark);
  margin-bottom: 10px;
}

.fedi-feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary-dark);
  line-height: 1.6;
}

.fedi-feature-card code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 3px;
  color: #ccc;
}


/* ─── Journal Timeline ─────────────────────────────────── */

.fedi-journal {
  max-width: 680px;
  position: relative;
  padding-left: 40px;
}

.fedi-journal::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-primary-light);
}

.fedi-journal-entry {
  position: relative;
  margin-bottom: 40px;
}

.fedi-journal-entry:last-child {
  margin-bottom: 0;
}

.fedi-journal-marker {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-app-light);
  border: 2px solid var(--cta-gradient-top);
}

.fedi-journal-marker::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-gradient-top);
}

.fedi-journal-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary-light);
  margin-bottom: 8px;
}

.fedi-journal-content p {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  line-height: 1.8;
}

.fedi-journal-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}


/* ─── Identity Card ────────────────────────────────────── */

.fedi-identity-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary-dark);
  border-radius: var(--radius-card);
}

.fedi-identity-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #6364ff, 0 0 12px rgba(99, 100, 255, 0.3);
}

.fedi-identity-avatar svg {
  width: 100%;
  height: 100%;
}

.fedi-identity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fedi-identity-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary-dark);
}

.fedi-identity-handle {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #6364ff;
}

.fedi-identity-note {
  font-size: 12px;
  color: var(--text-tertiary-dark);
  margin-top: 2px;
}


/* ─── CTA ──────────────────────────────────────────────── */

.fedi-cta-heading {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary-dark);
  margin-bottom: 16px;
}

.fedi-cta-text {
  font-size: 17px;
  font-weight: 200;
  color: var(--text-secondary-dark);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}


/* ─── Fediverse Responsive ─────────────────────────────── */

@media (max-width: 768px) {
  .fedi-hero-title {
    font-size: 32px;
  }

  .fedi-hero-subtitle {
    font-size: 16px;
  }

  .fedi-section-heading,
  .fedi-section-heading--dark,
  .fedi-cta-heading {
    font-size: 28px;
  }

  .fedi-feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fedi-step {
    flex-direction: column;
    gap: 12px;
  }

  .fedi-comparison-row {
    flex-direction: column;
  }

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

  .fedi-identity-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .fedi-hero {
    padding: 64px 16px 56px;
  }

  .fedi-hero-title {
    font-size: 26px;
  }

  .fedi-hero-byline {
    font-size: 11px;
  }

  .fedi-section {
    padding: 64px 16px;
  }

  .fedi-section--cta {
    padding: 56px 16px;
  }

  .fedi-journal {
    padding-left: 32px;
  }

  .fedi-journal-marker {
    left: -32px;
    width: 18px;
    height: 18px;
  }

  .fedi-journal-marker::after {
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
  }
}
