/* Apple-style Design System */
:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-background: #ffffff;
  --color-background-secondary: #f5f5f7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: rgba(0, 0, 0, 0.1);
  --font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --font-family-mono:
    "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 980px;
  --max-width-wide: 1200px;
  --transition-default: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-background: #000000;
    --color-background-secondary: #1d1d1f;
    --color-accent: #2997ff;
    --color-accent-hover: #0a84ff;
    --color-border: rgba(255, 255, 255, 0.1);
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 17px;
}

/* Professional gradient background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(120, 119, 198, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 10%,
      rgba(0, 113, 227, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse 50% 30% at 20% 20%,
      rgba(147, 51, 234, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(
        ellipse 80% 50% at 50% -20%,
        rgba(120, 119, 198, 0.25) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 40% at 80% 10%,
        rgba(0, 113, 227, 0.2) 0%,
        transparent 40%
      ),
      radial-gradient(
        ellipse 50% 30% at 20% 20%,
        rgba(147, 51, 234, 0.15) 0%,
        transparent 40%
      );
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(29, 29, 31, 0.72);
  }
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 17px;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-default);
}

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

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-default);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-current {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-default);
}

.lang-current:hover {
  color: var(--color-text);
  border-color: var(--color-text-secondary);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  .lang-dropdown {
    background: var(--color-background-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-default);
}

.lang-option:hover {
  background: var(--color-background-secondary);
  color: var(--color-text);
}

@media (prefers-color-scheme: dark) {
  .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

.lang-option.active {
  color: var(--color-accent);
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto 60px;
}

.hero-headline {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(
    180deg,
    var(--color-text) 0%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Hero CTA Group - Apple Store Style */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-default);
}

.hero-btn-primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.hero-btn-primary svg {
  flex-shrink: 0;
}

.hero-brew-hint {
  margin-top: -8px;
}

.hero-brew-hint code {
  font-family: var(--font-family-mono);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hero-alt-install {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hero-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-default);
}

.hero-link:hover {
  opacity: 0.8;
}

.hero-requirement {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.hero-image {
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: all var(--transition-default);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-accent);
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: all var(--transition-default);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.1);
}

.btn-large {
  padding: 18px 36px;
  font-size: 19px;
}

/* Section Styles */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subheadline {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Features Section */
.features-section {
  padding: 100px 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

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

.feature-item {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-background-secondary);
  border-radius: 20px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.feature-item h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* Metadata Section */
.metadata-section {
  padding: 100px 0;
  overflow: hidden;
}

.metadata-section .section-intro {
  margin-bottom: 60px;
  padding: 0 24px;
}

/* Marquee Animation - Apple Style */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Subtle edge fade - Apple prefers minimal masking */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.marquee-row {
  display: flex;
  width: max-content;
  overflow: visible;
}

.marquee-content {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-row[data-direction="right"] .marquee-content {
  animation-direction: reverse;
}

/* Speed variations */
.marquee-row[data-speed="slow"] .marquee-content {
  animation-duration: 80s;
}

.marquee-row[data-speed="medium"] .marquee-content {
  animation-duration: 60s;
}

.marquee-row[data-speed="fast"] .marquee-content {
  animation-duration: 45s;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

.format-tag,
.format-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  will-change: transform;
}

/* Format tags (.mp4, .jpg) - subtle, secondary */
.format-tag {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 400;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.format-tag:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Metadata info - primary, more prominent */
.format-info {
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: none;
}

.format-info:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
  .format-tag {
    background: transparent;
    color: rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 0, 0, 0.12);
  }

  .format-tag:hover {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.2);
  }

  .format-info {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.85);
  }

  .format-info:hover {
    background: rgba(0, 0, 0, 0.1);
  }
}

.formats-cta {
  text-align: center;
  margin-top: 48px;
  padding: 0 24px;
}

.formats-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.formats-link:hover {
  gap: 12px;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section - Apple Style */
.faq-section {
  padding: 100px 24px;
  background: var(--color-background);
}

.faq-headline {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  transition: color var(--transition-default);
}

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

.faq-item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-default);
}

.faq-item[open] summary {
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.faq-item p {
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

@media (prefers-color-scheme: dark) {
  .faq-item summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .faq-item[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232997ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }
}

/* Footer */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

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

.footer-copyright {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-brew-hint code {
    font-size: 11px;
  }

  .hero-alt-install {
    flex-direction: column;
    gap: 6px;
  }

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

  .features-grid {
    gap: 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-image {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========================================
   Subpage Styles
   ======================================== */

/* Page Hero - for subpages */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-headline {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-subheadline {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text-secondary);
}

/* ========================================
   Download Page
   ======================================== */

.download-section {
  padding: 0 24px 100px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--color-background-secondary);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition:
    transform var(--transition-default),
    box-shadow var(--transition-default);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.download-card.recommended {
  border: 2px solid var(--color-accent);
}

.download-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
}

.download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

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

.download-card h2 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.download-desc {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.download-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-background);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  overflow: hidden;
  min-width: 0;
}

.download-code code {
  flex: 1;
  font-family: var(--font-family-mono);
  font-size: 13px;
  color: var(--color-text);
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition-default);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--color-background-secondary);
  color: var(--color-accent);
}

.copy-btn.copied {
  color: #34c759;
}

.download-btn {
  display: block;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  transition: background var(--transition-default);
}

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

.download-steps {
  background: var(--color-background);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.download-steps h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.download-steps ol {
  margin-left: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.download-steps code {
  font-family: var(--font-family-mono);
  font-size: 12px;
  background: var(--color-background-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.download-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 12px;
  background: rgba(255, 149, 0, 0.1);
  border-radius: 8px;
}

.download-note svg {
  flex-shrink: 0;
  color: #ff9500;
}

.download-prereq {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.download-prereq p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.download-prereq .download-code {
  margin-bottom: 12px;
}

.download-prereq .download-code code {
  font-size: 11px;
}

.download-prereq-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-default);
}

.download-prereq-link:hover {
  opacity: 0.8;
}

/* Requirements Section */
.requirements-section {
  padding: 80px 24px;
  background: var(--color-background-secondary);
}

.requirements-section .section-headline {
  text-align: center;
  margin-bottom: 48px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.requirement-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

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

.requirement-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.requirement-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ========================================
   Documentation Page
   ======================================== */

.docs-section {
  padding: 0 24px 100px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.docs-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.docs-nav h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  margin-top: 24px;
}

.docs-nav h4:first-child {
  margin-top: 0;
}

.docs-nav a {
  display: block;
  padding: 8px 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-default);
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--color-accent);
}

.docs-content {
  min-width: 0;
}

.docs-article {
  margin-bottom: 60px;
  scroll-margin-top: 80px;
}

.docs-article h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.docs-article h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.docs-article h4 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.docs-article p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.docs-article ul,
.docs-article ol {
  margin-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.docs-article li {
  margin-bottom: 8px;
}

.docs-article code {
  font-family: var(--font-family-mono);
  font-size: 14px;
  background: var(--color-background-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

.docs-article kbd {
  font-family: var(--font-family-mono);
  font-size: 13px;
  background: var(--color-background-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.docs-tip,
.docs-warning {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
}

.docs-tip {
  background: rgba(0, 113, 227, 0.1);
  border-left: 4px solid var(--color-accent);
}

.docs-warning {
  background: rgba(255, 149, 0, 0.1);
  border-left: 4px solid #ff9500;
}

.docs-tip strong,
.docs-warning strong {
  color: var(--color-text);
}

.docs-tip a,
.docs-warning a {
  color: var(--color-accent);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.docs-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.docs-table td:first-child {
  width: 180px;
  color: var(--color-text);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.docs-card {
  background: var(--color-background-secondary);
  padding: 24px;
  border-radius: 16px;
}

.docs-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.docs-card p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ========================================
   Changelog Page
   ======================================== */

.changelog-section {
  padding: 0 24px 100px;
}

.changelog-container {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-entry {
  margin-bottom: 40px;
  padding: 32px;
  background: var(--color-background-secondary);
  border-radius: 20px;
  transition: transform var(--transition-default);
}

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

.changelog-entry.major {
  border: 2px solid var(--color-accent);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.changelog-version {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.changelog-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-badge.current {
  background: #34c759;
  color: #fff;
}

.changelog-badge.major {
  background: var(--color-accent);
  color: #fff;
}

.changelog-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.changelog-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.changelog-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

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

.changelog-footer {
  text-align: center;
  margin-top: 60px;
}

.changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--transition-default);
}

.changelog-link:hover {
  opacity: 0.8;
}

/* ========================================
   Responsive - Subpages
   ======================================== */

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 20px 40px;
  }

  .download-section {
    padding: 0 32px 100px;
  }

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

  .download-card {
    padding: 24px 16px;
  }

  .download-code {
    padding: 10px 12px;
  }

  .download-code code {
    font-size: 11px;
  }

  .docs-container {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .docs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-nav h4 {
    width: 100%;
    margin-top: 16px;
  }

  .docs-nav a {
    padding: 6px 12px;
    background: var(--color-background-secondary);
    border-radius: 8px;
  }

  .changelog-entry {
    padding: 24px;
  }

  .changelog-version {
    font-size: 24px;
  }
}

/* ==========================================
   License Page Styles
   ========================================== */

.license-section {
  padding: 60px 24px 120px;
}

.license-container {
  max-width: 800px;
  margin: 0 auto;
}

.license-summary {
  text-align: center;
  margin-bottom: 60px;
}

.license-summary h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.license-summary p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.license-permissions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-background-secondary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}

.permission-item.allowed svg {
  width: 16px;
  height: 16px;
  color: #34c759;
}

.license-full {
  background: var(--color-background-secondary);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
}

.license-full h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.license-text {
  font-family: var(--font-family-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.license-text p {
  margin-bottom: 20px;
}

.license-text p:last-child {
  margin-bottom: 0;
}

.license-copyright {
  color: var(--color-text);
  font-weight: 600;
}

.license-disclaimer {
  font-size: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 24px;
}

@media (prefers-color-scheme: dark) {
  .license-disclaimer {
    background: rgba(255, 255, 255, 0.05);
  }
}

.license-footer-note {
  text-align: center;
}

.license-github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--transition-default);
}

.license-github-link:hover {
  opacity: 0.8;
}

.license-github-link svg {
  flex-shrink: 0;
}

/* License page responsive */
@media (max-width: 768px) {
  .license-summary h2 {
    font-size: 26px;
  }

  .license-full {
    padding: 24px;
    border-radius: 16px;
  }

  .license-text {
    font-size: 12px;
  }

  .permission-item {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================
   Formats Page Styles
   ========================================== */

.formats-section {
  padding: 0 24px 80px;
}

.formats-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.formats-category {
  background: var(--color-background-secondary);
  border-radius: 20px;
  padding: 28px;
  transition:
    transform var(--transition-default),
    box-shadow var(--transition-default);
}

.formats-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.formats-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.formats-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.formats-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.formats-header p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.formats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.format-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-background);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family-mono);
  color: var(--color-text);
  transition: all var(--transition-default);
}

.format-tag:hover {
  background: var(--color-accent);
  color: #fff;
}

.format-tag.special {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
}

.formats-meta {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.formats-meta h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.formats-meta ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.formats-meta li {
  margin-bottom: 4px;
}

/* Formats Stats */
.formats-stats {
  padding: 80px 24px;
  background: var(--color-background-secondary);
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

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

.stat-number {
  display: block;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-accent) 0%, #5856d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 17px;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-top: 8px;
}

/* Formats page responsive */
@media (max-width: 768px) {
  .formats-container {
    grid-template-columns: 1fr;
  }

  .formats-category {
    padding: 24px;
  }

  .stats-container {
    gap: 40px;
  }

  .stat-number {
    font-size: 48px;
  }
}
