/* Reset and Base Styles */
/* Copyright © 2025 Chris Drake. All rights reserved. "signature": "g𝛢уꓓᎠ9Ūk𝟢ᴡꓟdKⴹɅlꓧb৭օBЈОcⲦµЗʋᖴЈᎪƻIуzƐi𝟣ⴹԁųꓮȠpBᒿƨ𝟢ꓐꓐ𝟪ĵꓳоꓮⲘꓠ৭ԁхyz𝖠ƽƟĐꓮpҳⅼƟΟⅠųо𐐕ꓧEΕƦυŪеᴅƦᏴoīvMƏ8ᒿ3ď4ȠꓳМJoꞇɊЈF6ҳ𐐕е" */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-primary: #0071E3;
  --color-primary-hover: #0077ED;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-tertiary: #86868B;
  --color-background-white: #FFFFFF;
  --color-background-light: #F5F5F7;
  --color-background-dark: #1D1D1F;
  
  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 48px;
  --spacing-5xl: 64px; /* Reduced for tighter, more balanced spacing */
  
  /* Layout */
  --content-max-width: 1024px;
  --image-max-width: 1400px;
  --content-gutter-desktop: 120px;
  --content-gutter-tablet: 60px;
  --content-gutter-mobile: 24px;
  
  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-soft-hover: 0 14px 40px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-button: 980px;
  --radius-image: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}

.hero-headline {
  font-size: 72px;
  margin-bottom: var(--spacing-md);
  white-space: normal;
  line-height: 1.05;
}

.hero-headline br {
  display: none;
}

/* Headline grouping to control wrapping behavior */
.hero-headline-chunk {
  white-space: nowrap; /* Keep "Stop Copy‑Pasting." together */
}
.hero-headline-part {
  white-space: nowrap; /* Keep "Start Automating." together on wide screens */
}
.hero-headline-sep {
  display: inline; /* Render as a space by default */
}

.hero-headline-part {
  white-space: nowrap;
}

.section-headline {
  font-size: 56px;
  margin-bottom: var(--spacing-lg);
}

/* Semantic headline wrapping - keep parts together */
.headline-part {
  white-space: nowrap;
  display: inline-block;
}

.section-body {
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero-subheadline {
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.top-bar-content {
  max-width: var(--image-max-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--content-gutter-desktop);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  text-decoration: none;
  transition: background-color 0.2s ease;
  min-width: 28px;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-hero {
  margin-top: var(--spacing-lg);
}

.btn-download {
  display: block;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Links */
.link-secondary {
  color: var(--color-primary);
  font-size: 17px;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.link-secondary:hover {
  text-decoration: underline;
}

.link-tertiary {
  color: var(--color-text-tertiary);
  font-size: 15px;
  text-decoration: none;
}

.link-tertiary:hover {
  color: var(--color-text-secondary);
}

.separator {
  color: var(--color-text-tertiary);
  margin: 0 var(--spacing-sm);
}

/* Sections */
.section {
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
  min-height: auto; /* Changed from 80vh to allow natural content height */
}

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

.section-light {
  background-color: var(--color-background-light);
}

.section-dark {
  background-color: var(--color-background-dark);
  color: white;
}

.section-dark .section-headline,
.section-dark .section-body {
  color: white;
}

.section-dark .link-secondary {
  color: #5AC8FA;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-4xl) var(--content-gutter-desktop) var(--spacing-4xl); /* 48px top and bottom */
}

.hero-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-top: var(--spacing-5xl);
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.hero-benefit {
  text-align: left;
}

.hero-benefit-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.hero-benefit-headline {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero-benefit-body {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.hero-links {
  margin-top: var(--spacing-lg);
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-container {
  margin: 0;
}

.hero-image {
  width: 100%;
  max-width: 60%;
  max-height: 60vh;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  width: 100%;
  max-width: 60%;
  margin: 0 auto;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Split Sections */
.section-split {
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
}

.section-split .section-content {
  max-width: var(--content-max-width);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* Code section: make code preview narrower for readability */
.section-split.section-code-wide .section-content {
  grid-template-columns: 670px 290px !important;
}

.section-reverse .section-content {
  grid-template-columns: 1.5fr 1fr;
}

.section-reverse .split-text {
  order: 2;
}

.section-reverse .split-image {
  order: 1;
}

.split-text {
  display: flex;
  flex-direction: column;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

/* Section Images */
.section-image {
  margin-top: var(--spacing-2xl);
}

.section-image img {
  width: 100%;
  max-width: var(--image-max-width);
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

/* Feature Cards */
.section-features {
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
}

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

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-3xl);
  align-items: center;
  margin-bottom: var(--spacing-3xl);
  min-height: auto;
}

.feature-card-reverse {
  grid-template-columns: 1fr 1.5fr;
}

/* Special case: browser screenshot layout uses flex to preserve natural dimensions */
.feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-3xl);
}

.feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-content {
  order: 1;
  flex: 1 1 320px;
  min-width: 280px;
}

.feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image {
  order: 2;
  flex: 0 0 502px;
  max-width: 502px;
  overflow: visible;
}

.feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image img {
  display: block;
  max-width: 502px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

/* Browser screenshot: always use natural size (502x678) on desktop with Windows 10 drop shadow */
.feature-card .feature-image img[src="pic/ptsd_cure.png"],
.feature-card-reverse .feature-image img[src="pic/ptsd_cure.png"] {
  width: 502px;
  height: auto;
  border-radius: 0 !important;
  /* Windows 10 style drop shadow: subtle ambient shadow + directional shadow */
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),           /* Subtle border */
    0 2px 4px rgba(0, 0, 0, 0.08),           /* Close shadow */
    0 8px 16px rgba(0, 0, 0, 0.12),          /* Medium shadow */
    0 16px 32px rgba(0, 0, 0, 0.08);         /* Far shadow */
}

.feature-content {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow grid to shrink below content minimum */
}

/* Allow headline parts to wrap in feature cards to prevent overflow */
.feature-card .headline-part,
.feature-card-reverse .headline-part {
  white-space: normal;
}

/* Feature Badges */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: 0; /* Remove top margin */
  margin-bottom: var(--spacing-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--color-background-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Tools Section */
.section-tools {
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
}

.section-tools .section-headline {
  text-align: center;
}

.section-tools .section-body {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-3xl);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.tool-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tool-icon {
  font-size: 56px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.tool-icon-svg {
  width: 56px;
  height: 56px;
}

.tool-item h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.tool-item p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Trust Section */
.section-trust {
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
}

.maintainer-section {
  margin-top: var(--spacing-xl);
  display: flex;
  gap: var(--spacing-2xl);
  align-items: flex-start;
}

.maintainer-photo {
  border-radius: 8px;
  flex-shrink: 0;
}

.maintainer-content {
  flex: 1;
}

.maintainer-title {
  font-size: 17px;
  margin-bottom: var(--spacing-md);
}

.maintainer-name {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
}

.maintainer-credential {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.maintainer-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.maintainer-list li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.maintainer-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.maintainer-list a:hover {
  text-decoration: underline;
}

.maintainer-quote {
  font-size: 17px;
  font-style: italic;
  color: var(--color-text-secondary);
  border-left: 3px solid var(--color-primary);
  padding-left: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* Download Section */
.download-buttons {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.btn-download {
  display: inline-block;
  min-width: 200px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto var(--spacing-xl);
}

.platform-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.platform-name {
  font-size: 17px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.platform-link {
  color: #5AC8FA;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.platform-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.checksums-link {
  text-align: center;
  font-size: 15px;
}

.checksums-link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.checksums-link a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--color-background-light);
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
}

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

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px;
}

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

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.footer-fine-print {
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-align: right;
  margin-top: var(--spacing-md);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1068px) {
  :root {
    --content-gutter-desktop: 60px;
  }
  
  .hero-headline {
    font-size: 56px;
  }
  
  /* On smaller screens, place Start Automating on next line by converting separator into a block */
  .hero-headline-sep {
    display: block;
    height: 0;
  }
  .hero-headline-part {
    white-space: nowrap;
  }
  
  .section-headline {
    font-size: 48px;
  }
  
  .hero-benefits {
    gap: var(--spacing-lg);
  }
  
  .hero-benefit-headline {
    font-size: 22px;
  }
  
  .section-split .section-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg); /* Reduce gap from 64px to 24px on mobile */
    min-height: auto; /* Remove min-height on mobile */
  }
  
  /* Override section-code-wide fixed widths on mobile */
  .section-split.section-code-wide .section-content {
    grid-template-columns: 1fr !important;
  }
  
  .section-reverse .split-text,
  .section-reverse .split-image {
    order: 0;
  }
  
  .feature-card,
  .feature-card-reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg); /* Reduce gap from 64px to 24px on mobile */
    margin-bottom: 0; /* Remove bottom margin on mobile */
  }
  
  .feature-card-reverse .feature-content,
  .feature-card-reverse .feature-image {
    order: 0;
  }
  
  /* Prevent feature cards from overflowing on tablet */
  .feature-content,
  .feature-image {
    max-width: 100%;
    overflow: hidden;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .maintainer-section {
    flex-direction: column;
  }
}

@media (max-width: 734px) {
  :root {
    --content-gutter-desktop: 24px;
  }
  
  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .hero-headline-sep {
    display: block;
    height: 0;
  }
  .hero-headline-part {
    white-space: nowrap;
  }
  
  .section-headline {
    font-size: 40px;
  }
  
  /* Allow headline parts to wrap on mobile */
  .headline-part {
    white-space: normal;
    max-width: 100%;
  }
  
  /* Ensure feature cards don't overflow on mobile */
  .feature-card,
  .feature-content,
  .feature-image {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Allow screenshot flex layout to breathe on tablet/mobile */
  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) {
    overflow: visible;
  }

  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image {
    overflow: visible;
  }
  
  /* On mobile, always show content first, then image */
  .feature-card .feature-image,
  .feature-card-reverse .feature-image {
    order: 2; /* Image comes after content on mobile */
  }
  
  .feature-card .feature-content,
  .feature-card-reverse .feature-content {
    order: 1; /* Content comes first on mobile */
  }
  
  /* LM Studio mockup: scale down to fit mobile viewport */
  .lm-studio-mockup {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .lm-content {
    height: auto;
    min-height: 400px;
  }
  
  .lm-chats-panel {
    display: none; /* Hide chats panel on mobile */
  }
  
  .lm-chat-name {
    font-size: 10px;
  }
  
  .lm-tool-calls {
    font-size: 11px;
  }
  
  /* Hide specific status bar items on mobile */
  .lm-status-left .lm-status-item:nth-child(3),  /* "User" */
  .lm-status-left .lm-status-separator:nth-child(2) { /* separator before "User" */
    display: none;
  }
  
  .lm-status-right .lm-status-item:nth-child(3),  /* "MEMORY: 12 items" */
  .lm-status-right .lm-status-separator:nth-child(4) { /* separator after MEMORY */
    display: none;
  }
  
  .section-body {
    font-size: 17px;
  }
  
  .hero-subheadline {
    font-size: 24px;
  }
  
  .section {
    padding: var(--spacing-3xl) var(--content-gutter-desktop);
    min-height: auto;
  }
  
  /* Reduce spacing above tray-mockup on mobile */
  .section-split.section-reverse {
    padding-top: 42px;
  }
  
  .section-split.section-reverse .tray-mockup {
    padding-top: 10px; /* Reduce from 32px to 10px for tighter spacing */
  }
  
  .hero {
    padding: var(--spacing-3xl) var(--content-gutter-desktop);
  }
  
  /* Reduce hero top padding on mobile */
  .hero-content {
    padding-top: var(--spacing-xl); /* 32px instead of 64px */
  }
  
  .hero-benefits {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-benefit-icon {
    font-size: 40px;
  }
  
  .hero-benefit-headline {
    font-size: 21px;
  }
  
  .hero-image {
    max-width: 100%;
    max-height: 40vh;
  }
  
  /* Adjust hero visual container on mobile */
  .hero-visual {
    max-width: 100%;
    height: auto;
  }
  
  .hero-svg {
    height: auto;
  }
  
  .hero-image-container {
    margin: 0;
  }
  
  .top-bar-content {
    padding: var(--spacing-sm) var(--content-gutter-desktop);
  }
  
  /* Hide download button on mobile top bar */
  .top-bar .btn-primary {
    display: none;
  }
  
  .brand-text {
    font-size: 15px;
  }
  
  .brand-logo {
    height: 32px;
  }
  
  .btn-primary {
    font-size: 15px;
    padding: 10px 20px;
  }
  
  .hero-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .separator {
    display: none;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .store-preview {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 !important; /* Remove padding on mobile for proper centering */
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md) var(--spacing-lg);
    justify-items: start;
  }
  
  .footer-links a:nth-child(2n) {
    justify-self: end;
  }
}

@media (max-width: 501px) {
  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) {
    justify-content: center;
    gap: var(--spacing-xl);
  }

  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-content,
  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image {
    flex-basis: 100%;
  }

  .feature-card.feature-card-reverse:has(img[src="pic/ptsd_cure.png"]) .feature-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }
}

@media (max-width: 320px) {
  .hero-headline {
    font-size: 40px;
  }
  
  .section-headline {
    font-size: 36px;
  }
  
  .hero-subheadline {
    font-size: 20px;
  }
}

/* ========== CSS Graphics Styles ========== */

/* Logo Mosaic */
.logo-mosaic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3xl);
  padding: var(--spacing-3xl);
  background: white;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.logo-item {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-light);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transition: transform 0.2s ease;
}

.mosaic-arrow {
  font-size: 48px;
  color: var(--color-primary);
}

.mosaic-center {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl);
  border-radius: 16px;
  text-align: center;
}

.center-icon {
  font-size: 56px;
  margin-bottom: var(--spacing-sm);
}

.center-label {
  font-size: 20px;
  font-weight: 600;
}

/* Device Showcase */
.device-showcase {
  padding: var(--spacing-xl);
}

@media (max-width: 734px) {
  .device-showcase {
    padding: 0; /* Remove padding on mobile for proper centering */
  }
}

.device-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.device-frame {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-origin: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.device-frame:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: var(--shadow-soft-hover);
  cursor: pointer;
}

.device-frame.mac {
  transform: rotate(-2deg);
}

.device-frame.windows {
  transform: rotate(1deg);
}

.device-frame.linux {
  transform: rotate(-1deg);
}

.device-header {
  background: var(--color-background-light);
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.device-dots {
  display: flex;
  gap: 6px;
}

.device-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.device-dots span:nth-child(1) {
  background: #FF5F56;
}

.device-dots span:nth-child(2) {
  background: #FFBD2E;
}

.device-dots span:nth-child(3) {
  background: #27C93F;
}

.device-header.windows-header {
  justify-content: center;
  background: #0078D4;
  color: white;
}

.device-title {
  font-size: 14px;
  font-weight: 500;
}

  .device-content {
    padding: var(--spacing-3xl);
    text-align: center;
    font-size: 32px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  @media (max-width: 734px) {
    .device-content {
      padding: var(--spacing-lg); /* 24px instead of 64px on mobile */
      min-height: auto;
    }
  }

/* Security Graphic */
.security-graphic {
  padding: var(--spacing-xl) var(--spacing-3xl);
  background: white;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.security-shield {
  position: relative;
  display: inline-block;
  margin-bottom: calc(var(--spacing-xl) / 2);
}

.shield-icon {
  font-size: 72px;
  position: relative;
  z-index: 2;
}

.security-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.2;
}

.ring-1 {
  width: 100px;
  height: 33px;
  border-radius: 50px;
}

.ring-2 {
  width: 140px;
  height: 47px;
  border-radius: 70px;
}

.ring-3 {
  width: 180px;
  height: 60px;
  border-radius: 90px;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  max-width: 100%;
  margin: 0 auto;
}

.security-badge {
  background: var(--color-background-light);
  padding: var(--spacing-sm);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  min-width: 100px;
  white-space: nowrap;
}

/* Tray Mockup */
.tray-mockup {
  padding: var(--spacing-xl);
  text-align: center;
}

@media (max-width: 734px) {
  .tray-mockup {
    padding: 0; /* Remove all padding on mobile */
  }
}

.menu-bar {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-sm);
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.menu-bar-item {
  font-size: 32px;
  padding: var(--spacing-sm);
  cursor: pointer;
}

.menu-dropdown {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  text-align: left;
  min-width: 200px;
}

.dropdown-item {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--color-background-light);
}

.dropdown-divider {
  height: 1px;
  background: #ddd;
  margin: var(--spacing-sm) 0;
}

.tray-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-lg);
}

/* Feature Visuals */
.feature-visual {
  background: white;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-3xl);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Voice Visual */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: var(--spacing-xl);
}

.wave-bar {
  width: 12px;
  background: var(--color-primary);
  border-radius: 6px;
  transition: height 0.3s ease;
}

.voice-icon {
  font-size: 56px;
  margin-bottom: var(--spacing-md);
}

.voice-text {
  font-size: 18px;
  color: var(--color-text-secondary);
}

/* Browser Visual */
.browser-window {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
}

.browser-chrome {
  background: var(--color-background-light);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border-bottom: 1px solid #ddd;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.browser-url {
  flex: 1;
  background: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 6px;
  font-size: 14px;
}

.browser-content {
  padding: var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.browser-action {
  background: var(--color-background-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
  font-size: 18px;
  text-align: left;
}

/* LM Studio Mockup */
.lm-studio-mockup {
  width: 540px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Title Bar */
.lm-title-bar {
  background: #1E6FD9;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: white;
  position: relative;
}

.lm-title-center {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lm-icon {
  width: 14px !important;
  height: 14px !important;
  display: block;
  object-fit: contain;
}

.lm-title-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.lm-title-controls {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 12px;
}

.lm-control {
  font-size: 16px;
  cursor: pointer;
  opacity: 0.9;
}

.lm-control:hover {
  opacity: 1;
}

/* Main Content */
.lm-content {
  display: flex;
  height: 480px;
  background: #1a1a1a;
}

/* Left Sidebar */
.lm-sidebar {
  width: 39px;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.lm-sidebar-icons {
  width: 39px;
  height: 200px;
  display: block;
}

/* Chats Panel */
.lm-chats-panel {
  width: 160px;
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
  overflow-y: auto;
}

.lm-chats-header {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
}

.lm-chat-item {
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
  transition: background 0.2s;
}

.lm-chat-item:hover {
  background: #252525;
}

.lm-chat-active {
  background: #252525;
}

.lm-chat-name {
  color: #b0b0b0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.lm-chat-active .lm-chat-name {
  color: #e0e0e0;
  font-weight: 600;
}

/* Main Chat Area */
.lm-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  overflow-y: auto;
}

.lm-user-message {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 12px 16px;
  margin: 16px;
  border-radius: 8px;
  font-size: 14px;
  align-self: flex-end;
  max-width: 70%;
}

.lm-ai-response {
  padding: 0 16px 16px 16px;
  flex: 1;
}

.lm-model-name {
  color: #1E6FD9;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lm-tool-calls {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #e0e0e0;
}

.lm-tool-call {
  color: #61dafb;
  margin: 8px 0;
  display: block;
}

.lm-tool-icon {
  font-size: 14px;
  margin-right: 4px;
}

.lm-tool-name {
  color: #61dafb;
  font-weight: 600;
}

.lm-tool-param {
  color: #98c379;
  margin-left: 20px;
  font-size: 11px;
  display: block;
}

.lm-tool-result {
  color: #98c379;
  margin-left: 24px;
  font-size: 11px;
  margin-top: -4px;
  margin-bottom: 4px;
  display: block;
}

.lm-tool-status {
  color: #e5c07b;
  margin: 8px 0;
  font-style: italic;
}

.lm-tool-complete {
  color: #98c379;
  font-weight: 600;
  margin-top: 12px;
  font-size: 13px;
}

/* Input Area */
.lm-input-area {
  padding: 12px 16px;
  border-top: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.lm-input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}

.lm-input::placeholder {
  color: #666;
}

.lm-input-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lm-input-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 4px 10px;
  color: #b0b0b0;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.lm-input-btn:hover {
  background: #353535;
}

.lm-input-btn-primary {
  background: #1E6FD9;
  color: white;
  border-color: #1E6FD9;
}

.lm-input-btn-primary:hover {
  background: #1a5fc4;
}

/* Status Bar */
.lm-status-bar {
  height: 24px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid #2a2a2a;
  font-size: 11px;
  color: #888;
}

.lm-status-left,
.lm-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lm-status-separator {
  color: #444;
}

/* Pipeline Diagram */
.pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-3xl);
  background: white;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

.pipeline-node {
  background: var(--color-background-light);
  padding: var(--spacing-xl);
  border-radius: 16px;
  text-align: center;
  min-width: 120px;
}

.pipeline-center {
  background: var(--color-primary);
  color: white;
}

.node-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
}

.node-label {
  font-size: 16px;
  font-weight: 500;
}

.pipeline-arrow {
  font-size: 32px;
  color: var(--color-primary);
}

/* Store Preview */
.store-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.store-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-hover);
}

.store-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.store-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.store-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--color-background-light);
  color: var(--color-text-secondary);
}

.store-card:nth-child(3) .store-badge,
.store-card:nth-child(4) .store-badge,
.store-card:nth-child(6) .store-badge {
  background: var(--color-primary);
  color: white;
}

/* Code Preview */
.code-preview {
  background: #1E1E1E;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.code-header {
  background: #2D2D2D;
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #FF5F56;
}

.code-dots span:nth-child(2) {
  background: #FFBD2E;
}

.code-dots span:nth-child(3) {
  background: #27C93F;
}

.code-title {
  color: #999;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.code-content {
  padding: 28px 0px 28px 28px;
  color: #D4D4D4;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 4px;
}

.code-keyword {
  color: #569CD6;
}

.code-function {
  color: #DCDCAA;
}

.code-string {
  color: #CE9178;
}

.code-comment {
  color: #6A9955;
}

/* Install Page Styles */
.install-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
  text-align: center;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: #34C759;
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: var(--spacing-lg);
}

.install-headline {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  max-width: 800px;
}

.install-subheadline {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-3xl);
  max-width: 700px;
}

.extension-cards {
  background: var(--color-background-light);
  border-radius: 12px;
  padding: var(--spacing-3xl);
  max-width: 800px;
  width: 100%;
}

.extension-cards h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.extension-description {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: 17px;
  margin-bottom: var(--spacing-sm);
}

.extension-benefits {
  list-style: none;
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: var(--spacing-xl);
  padding-left: 0;
  text-align: left;
}

.extension-benefits li {
  margin-bottom: 4px;
  padding-left: 20px;
  position: relative;
}

.extension-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34C759;
  font-weight: bold;
}

.browser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.browser-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.browser-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.browser-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.btn-install {
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-install:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

.next-steps {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}

.next-steps h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.next-steps ol {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-left: 20px;
}

.next-steps ol li {
  margin-bottom: 8px;
}

.help-links {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.help-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 15px;
}

.help-links a:hover {
  text-decoration: underline;
}

/* Downloads Page Styles */
.download-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-5xl) var(--content-gutter-desktop);
  text-align: center;
}

.download-headline {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  max-width: 800px;
}

.download-subheadline {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-3xl);
  max-width: 600px;
}

.recommended-download {
  margin-bottom: var(--spacing-3xl);
}

.btn-download-large {
  background: var(--color-primary);
  color: white;
  font-size: 21px;
  font-weight: 600;
  padding: 18px 48px;
  border-radius: var(--radius-button);
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-download-large:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

.platform-badge {
  display: inline-block;
  background: #34C759;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.all-downloads {
  background: var(--color-background-light);
  border-radius: 12px;
  padding: var(--spacing-3xl);
  max-width: 800px;
  width: 100%;
}

.all-downloads h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.download-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.version {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.btn-download {
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-download:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

.system-requirements {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}

.system-requirements h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.system-requirements ul {
  list-style: none;
  font-size: 15px;
  color: var(--color-text-secondary);
  padding-left: 0;
}

.system-requirements li {
  margin-bottom: 4px;
  padding-left: 20px;
  position: relative;
}

.system-requirements li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34C759;
  font-weight: bold;
}

.system-requirements p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 15px;
}

.linux-command {
  background: #1D1D1F;
  color: #F5F5F7;
  padding: var(--spacing-md);
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  overflow-x: auto;
  line-height: 1.6;
  margin: var(--spacing-sm) 0;
}

.linux-command code {
  white-space: pre;
}

.inline-code {
  background: var(--color-background-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.downloads-footer-links {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.downloads-footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 15px;
}

.downloads-footer-links a:hover {
  text-decoration: underline;
}

.extension-section {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.extension-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.extension-section p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 17px;
  text-align: left;
}

.extension-section ul {
  list-style: none;
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: var(--spacing-lg);
  padding-left: 0;
  text-align: left;
}

.extension-section li {
  margin-bottom: 4px;
  padding-left: 20px;
  position: relative;
}

.extension-section li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34C759;
  font-weight: bold;
}

/* Responsive adjustments for graphics */
@media (max-width: 1068px) {
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .store-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .security-features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: var(--spacing-xs);
  }
  
  .security-graphic {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .security-shield {
    margin-bottom: var(--spacing-xs);
  }
}

@media (max-width: 1068px) and (min-width: 735px) {
  /* Tablet: reduce logo-mosaic padding and gap to prevent overflow */
  .logo-mosaic {
    padding: var(--spacing-md); /* 16px instead of 64px */
    gap: var(--spacing-md); /* 16px instead of 64px */
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 4 on tablet */
    gap: var(--spacing-sm); /* 12px gap */
  }
  
  .logo-item {
    padding: var(--spacing-sm); /* Reduce padding */
    font-size: 32px; /* Slightly smaller icons */
  }
  
  .mosaic-center {
    padding: var(--spacing-md); /* Reduce center padding */
  }
  
  .center-icon {
    font-size: 40px; /* Smaller center icon */
  }
  
  .center-label {
    font-size: 17px; /* Smaller label */
  }
}

@media (max-width: 734px) {
  .logo-mosaic {
    flex-direction: column;
    padding: var(--spacing-lg); /* Reduce from 64px to 24px */
    gap: var(--spacing-md); /* Reduce gap between elements */
  }
  
  .logo-grid {
    gap: var(--spacing-xs); /* Tighter grid on mobile */
  }
  
  .logo-item {
    padding: var(--spacing-sm); /* Reduce padding */
    font-size: 28px; /* Smaller icons on mobile */
  }
  
  .mosaic-arrow {
    font-size: 24px; /* Smaller arrow */
    transform: rotate(90deg);
    margin: 0; /* Minimal vertical space */
  }
  
  .mosaic-center {
    padding: var(--spacing-md); /* Reduce center padding */
  }
  
  .center-icon {
    font-size: 32px; /* Smaller center icon */
    margin-bottom: var(--spacing-xs);
  }
  
  .center-label {
    font-size: 16px; /* Smaller label */
  }
  
  .device-frame {
    transform: none !important;
  }
  
  .pipeline-diagram {
    flex-direction: column;
  }
  
  .pipeline-arrow {
    transform: rotate(90deg);
  }
  
  .install-headline {
    font-size: 40px;
  }
  
  .browser-grid {
    grid-template-columns: 1fr;
  }
  
  .download-headline {
    font-size: 40px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .all-downloads {
    padding: var(--spacing-lg); /* Reduce from 64px to 24px on mobile */
  }
}

