/* CSS Design System for FIT Repair Studio Product Website (MTB & Outdoor Theme) */

:root {
  /* Color Palette derived from the App Icon */
  --brand-deep: #0D2A6B;
  --brand-blue: #1E5BB8;
  --accent-electric: #007AFF;
  --accent-teal: #00DAC2;
  --accent-green: #00C389;
  
  /* Neutral Slate Scale */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Theme mapping */
  --bg-body: var(--slate-50);
  --text-main: var(--slate-900);
  --text-muted: var(--slate-700);
  --border-color: var(--slate-200);
  
  /* Fonts */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: 'Outfit', var(--font-family-sans);
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden; /* Prevent scrolling when lightbox is active */
}

/* --- Topographic Background --- */
.topo-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.topo-bg svg {
  opacity: 0.65;
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--slate-900);
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.brand-title {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--brand-deep);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-electric);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.nav-btn-secondary {
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-btn-secondary:hover {
  background-color: rgba(30, 91, 184, 0.05);
}

.nav-btn-primary {
  background-color: var(--brand-deep);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn-subtext {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 0.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
  color: white;
  box-shadow: 0 10px 25px -5px rgba(13, 42, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(13, 42, 107, 0.45);
}

.btn-secondary {
  background-color: white;
  color: var(--brand-deep);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 7rem 0 5rem;
  width: 100%;
  background-image: linear-gradient(to right, rgba(248, 250, 252, 0.88) 15%, rgba(248, 250, 252, 0.55) 65%, rgba(248, 250, 252, 0.80) 100%), url('../assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--slate-200);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.badge-new {
  display: inline-block;
  background-color: rgba(30, 91, 184, 0.06);
  border: 1px solid rgba(30, 91, 184, 0.15);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-deep);
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.highlight-text {
  background: linear-gradient(120deg, var(--accent-teal), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Side-by-Side Donations --- */
.hero-donations {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.donations-label {
  font-size: 0.8rem;
  color: var(--slate-700);
  font-weight: 600;
  letter-spacing: -0.2px;
}

.donations-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.donation-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
  transition: var(--transition-fast);
}

.bmac-link img {
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stripe-link {
  background-color: #635bff;
  color: white !important;
  font-size: 0.85rem;
  padding: 0 1rem;
  border-radius: 6px;
  font-weight: 600;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(99, 91, 255, 0.15);
}

.stripe-link:hover {
  background-color: #7a73ff;
  box-shadow: 0 6px 15px rgba(99, 91, 255, 0.25);
  transform: translateY(-1px);
}

.stripe-icon {
  font-size: 1.1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-700);
  font-weight: 500;
}

.divider {
  color: var(--slate-300);
}

.hero-interactive {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* --- macOS App Frame Showcase --- */
.macos-window {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--slate-300);
  background-color: #fff;
  transition: var(--transition-smooth);
}

.macos-window:hover {
  transform: scale(1.01) translateY(-4px);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.3);
  border-color: rgba(30, 91, 184, 0.3);
}

.window-header {
  background-color: #ebebeb;
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.window-buttons {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.window-buttons .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-buttons .dot.close { background-color: #ff5f56; }
.window-buttons .dot.minimize { background-color: #ffbd2e; }
.window-buttons .dot.expand { background-color: #27c93f; }

.window-title {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-700);
  font-weight: 500;
  position: absolute;
  left: 0;
  pointer-events: none;
}

.window-screen-link {
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: zoom-in;
  overflow: hidden;
}

.window-screen {
  width: 100%;
  display: flex;
  background-color: #f5f7fa;
}

.window-screen-link:hover .app-screenshot {
  filter: brightness(1.03);
  transform: scale(1.005);
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

/* --- Unconventional Feature Track (Map Path) --- */
.feature-track-section {
  padding: 8rem 0;
  background-color: var(--slate-900);
  color: white;
  position: relative;
  overflow: hidden;
  
  /* Stylized topographic GPS activity map background */
  background-image: linear-gradient(rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.93)), url('../assets/dark_map_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-track-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: rgba(30, 91, 184, 0.15);
  filter: blur(150px);
  border-radius: 50%;
  bottom: -200px;
  right: -200px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-title {
  font-family: var(--font-family-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--slate-300);
  font-size: 1.1rem;
}

/* Track layout */
.track-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.track-svg-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  pointer-events: none;
  z-index: 1;
}

.track-svg {
  width: 100%;
  height: 100%;
}

.feature-nodes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
  z-index: 2;
}

.feature-node {
  display: flex;
  width: 100%;
  align-items: center;
  position: relative;
}

/* Alternating nodes */
.feature-node:nth-child(odd) {
  justify-content: flex-start;
}

.feature-node:nth-child(even) {
  justify-content: flex-end;
}

.node-marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--slate-900);
  border: 3px solid var(--accent-electric);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
  transition: var(--transition-smooth);
}

.feature-node:hover .node-marker {
  border-color: var(--accent-green);
  box-shadow: 0 0 25px rgba(0, 195, 137, 0.6);
  transform: translate(-50%, -50%) scale(1.15);
}

.node-content {
  width: 42%;
  background-color: rgba(30, 41, 59, 0.75); /* Slightly darker card fill for better map separation */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.feature-node:hover .node-content {
  border-color: rgba(30, 91, 184, 0.4);
  transform: translateY(-4px);
  background-color: rgba(30, 41, 59, 0.95);
}

.node-title {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.node-text {
  color: var(--slate-300);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.node-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 1px;
}

/* --- App Screenshot Showcase Section (Removed/Merged) --- */
.screenshot-section {
  display: none;
}

/* --- Support Section (Removed) --- */
.support-section {
  display: none;
}

/* --- Download & Release --- */
.download-section {
  padding: 7rem 0;
  background-color: #081225;
  color: white;
}

.download-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-kicker,
.panel-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent-teal);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-header h2 {
  font-family: var(--font-family-display);
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.download-header p,
.download-primary p,
.release-panel p,
.developer-strip p {
  color: var(--slate-300);
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.25rem;
  align-items: stretch;
}

.download-primary,
.release-panel,
.developer-strip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: rgba(15, 23, 42, 0.58);
}

.download-primary,
.release-panel {
  padding: 1.5rem;
}

.download-primary h3,
.release-panel h3,
.developer-strip h3 {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.download-primary p {
  margin-bottom: 1.2rem;
}

.download-actions {
  margin: 1.1rem 0;
}

.compact-checklist,
.release-list {
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.compact-checklist li,
.release-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--slate-300);
  font-size: 0.95rem;
}

.compact-checklist li::before,
.release-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.release-meta div {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.release-meta dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-meta dd {
  color: white;
  margin-top: 0.15rem;
}


.developer-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem;
}

.code-snippet {
  background-color: rgba(0, 0, 0, 0.32);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-snippet code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background-color: rgba(8, 15, 34, 0.96);
  color: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-copy strong {
  display: block;
  font-family: var(--font-family-display);
  margin-bottom: 0.25rem;
}

.cookie-copy p {
  color: var(--slate-300);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.cookie-primary,
.cookie-secondary {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 0.95rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-primary {
  border: 0;
  background-color: var(--accent-green);
  color: #04111f;
}

.cookie-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
}

/* --- Lightbox Modal Overlay --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.6); /* Slightly more transparent overlay */
  backdrop-filter: blur(4px); /* Decreased from 12px for less foggy, clearer background view */
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  opacity: 0.7;
  transition: var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* --- Footer --- */
.footer {
  background-color: #080f22;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 1.75rem;
}

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

.footer-compact {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand h4 {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-modal-button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 0.9rem;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-modal-button:hover {
  border-color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.25rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  max-width: 560px;
}

/* --- Site Info Modals --- */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(8, 15, 34, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.site-modal[hidden],
.site-modal[aria-hidden="true"] {
  display: none !important;
}

.site-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background-color: #0b162b;
  color: white;
  padding: 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.site-modal-panel-small {
  width: min(780px, 100%);
  font-size: 0.86rem;
}

.site-modal-panel h2 {
  font-family: var(--font-family-display);
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.site-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.site-modal-close:hover {
  opacity: 1;
}

.modal-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.modal-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--slate-300);
}

.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.modal-company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
}

.modal-company-grid h3 {
  font-family: var(--font-family-display);
  font-size: 1rem;
  color: var(--accent-teal);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.modal-company-grid p,
.modal-data-list dd,
.modal-data-list dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.52;
}

.modal-company-grid p + p {
  margin-top: 0.65rem;
}

.modal-company-grid a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-data-list {
  display: grid;
  gap: 0.62rem;
}

.modal-data-list dt {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-data-list dd {
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

/* --- Responsive Adaptations --- */
@media (max-width: 968px) {
  .hero-section {
    background-image: linear-gradient(rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.96)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.2rem;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-donations {
    align-items: center;
  }
  
  .donations-row {
    justify-content: center;
  }
  
  .hero-meta {
    justify-content: center;
  }
  
  .download-card {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .feature-node {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .node-content {
    width: 80% !important;
  }
  
  .track-svg-container {
    display: none;
  }
  
  .node-marker {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }
  
  .feature-node:hover .node-marker {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-container {
    justify-content: center;
  }
  
  .node-content {
    width: 100% !important;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
  
  .donations-row {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  
  .donation-link {
    justify-content: center;
  }

  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
  }
}


/* --- Stripe Donation Form --- */
.donation-form {
  margin-top: 1.25rem;
}

.donation-option,
.donation-submit {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.donation-option {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--slate-200);
}

.donation-option:hover,
.donation-option.is-selected {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.donation-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #fff;
  color: var(--slate-700);
  font-size: 0.85rem;
  font-weight: 700;
}

.donation-custom input {
  width: 4.6rem;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--brand-deep);
  background: transparent;
}

.donation-submit {
  background: #635bff;
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 91, 255, 0.15);
}

.donation-submit:hover {
  background: #7a73ff;
  transform: translateY(-1px);
}

.donation-message {
  min-height: 1.2rem;
  margin-top: 0.5rem;
  color: var(--slate-700);
  font-size: 0.8rem;
}

.bmc-button {
  display: inline-flex;
  margin-top: 0.55rem;
  line-height: 0;
}

.bmc-button img {
  height: 48px;
  width: 174px;
  border: 0;
  display: block;
}

.bmc-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .donations-row {
    flex-wrap: wrap;
  }

  .donation-custom,
  .donation-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 968px) {
  .release-grid,
  .developer-strip {
    grid-template-columns: 1fr;
  }

  .download-header {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .download-section {
    padding: 5rem 0;
  }

  .download-header h2 {
    font-size: 2rem;
  }

  .download-primary,
  .release-panel,
  .developer-strip {
    padding: 1.15rem;
  }

  .release-meta {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
