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

:root {
  --bg-page: #E8E9EB;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-on-card: #FFFFFF;
  --divider: #E0E0E0;
  --bg-caramel: #C2956A;
  --bg-taupe: #A38979;
  --bg-sienna: #8F5A3C;

  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
.site-header {
  width: 100%;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.2s;
}

.lang-switch:hover {
  opacity: 0.6;
}

.header-rule {
  height: 1px;
  background: var(--divider);
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 64px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 200;
  line-height: 0.95;
  color: var(--text-primary);
  padding: 0 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 80px 0;
}

.hero-subheadline {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  display: inline-block;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.6;
}

/* ===== Products Section ===== */
.products {
  max-width: 1440px;
  margin: 0 auto;
}

.products-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 80px 80px 48px;
}

.micro-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 200;
  line-height: 0.95;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
}

.divider {
  height: 1px;
  background: var(--divider);
  width: 100%;
}

/* ===== Product Cards ===== */
.products-row {
  display: flex;
  width: 100%;
}

.products-row-3 .product-card {
  width: 33.333%;
}

.products-row-2 .product-card {
  width: 50%;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--text-on-card);
  min-height: 400px;
}

.card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.card-spacer-24 { height: 24px; }
.card-spacer-12 { height: 12px; }
.card-spacer-8 { height: 8px; }

.card-category {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-on-card);
}

.category-muted {
  color: var(--text-tertiary);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
  line-height: 1.2;
  color: var(--text-on-card);
  white-space: pre-line;
}

.card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-on-card);
}

.desc-muted {
  opacity: 0.7;
}

.card-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-on-card);
  display: inline-block;
  transition: opacity 0.2s;
}

.card-cta:hover {
  opacity: 0.7;
}

/* Card background colors */
.bg-caramel { background-color: var(--bg-caramel); }
.bg-taupe { background-color: var(--bg-taupe); }
.bg-sienna { background-color: var(--bg-sienna); }
.bg-dark { background-color: var(--text-primary); }
.bg-charcoal { background-color: #2A2A2A; }
.bg-polar { background-color: #3D5A80; }

/* ===== FAQ Section ===== */
.faq-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

.faq-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.faq-title {
  font-size: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--divider);
  padding: 24px 0;
}

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

.faq-question {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 200;
  transition: transform 0.2s;
}

details[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
}

/* ===== GEO: Crawler-only content ===== */
.geo-table {
  padding: 48px 80px;
}

.geo-table h3 {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
  margin-bottom: 24px;
}

.geo-table table {
  width: 100%;
  border-collapse: collapse;
}

.geo-table th,
.geo-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}

.geo-table th {
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.geo-takeaways {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
}

.geo-takeaways h3 {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
  margin-bottom: 16px;
}

.geo-takeaways ul {
  list-style: disc;
  padding-left: 20px;
}

.geo-takeaways li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--text-primary);
  color: var(--text-on-card);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 64px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 2px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.5;
  white-space: pre-line;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.5;
  transition: opacity 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: #FFFFFF;
  opacity: 0.1;
  max-width: 1440px;
  margin: 0 auto;
}

.copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.copyright-text,
.copyright-right {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0.3;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-bar {
    padding: 16px 40px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-headline {
    font-size: 40px;
    padding: 0 40px;
  }

  .hero-content {
    padding: 24px 40px 0;
  }

  .products-header {
    padding: 60px 40px 36px;
  }

  .section-title {
    font-size: 48px;
  }

  .products-row-3 {
    flex-wrap: wrap;
  }

  .products-row-3 .product-card {
    width: 50%;
  }

  .products-row-3 .product-card:last-child {
    width: 100%;
  }

  .products-row-2 {
    flex-direction: column;
  }

  .products-row-2 .product-card {
    width: 100%;
  }

  .faq-section {
    padding: 60px 40px;
  }

  .footer-content {
    padding: 48px 40px;
    flex-direction: column;
    gap: 48px;
  }

  .footer-nav {
    gap: 40px;
  }

  .copyright-bar {
    padding: 24px 40px;
  }

  .geo-table {
    padding: 48px 40px;
  }

  .geo-takeaways {
    padding: 0 40px 60px;
  }
}

@media (max-width: 640px) {
  .header-bar {
    padding: 12px 20px;
  }

  .main-nav {
    display: none;
  }

  .hero-headline {
    font-size: 28px;
    padding: 0 20px;
  }

  .hero-content {
    padding: 20px 20px 0;
  }

  .hero-subheadline {
    font-size: 14px;
  }

  .products-header {
    padding: 40px 20px 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-desc {
    font-size: 14px;
  }

  .products-row-3 .product-card,
  .products-row-2 .product-card {
    width: 100%;
  }

  .products-row {
    flex-direction: column;
  }

  .product-card {
    padding: 20px;
    min-height: 320px;
  }

  .card-image {
    height: 160px;
  }

  .faq-section {
    padding: 40px 20px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-question {
    font-size: 15px;
  }

  .footer-content {
    padding: 40px 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 32px;
  }

  .copyright-bar {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .geo-table {
    padding: 24px 20px;
    overflow-x: auto;
  }

  .geo-takeaways {
    padding: 0 20px 40px;
  }
}

/* ===== Product Detail Page ===== */

/* Breadcrumb */
.breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 80px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.breadcrumb-link {
  color: var(--text-tertiary);
  transition: opacity 0.2s;
}

.breadcrumb-link:hover {
  opacity: 0.6;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--text-primary);
}

/* Product Hero */
.product-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-hero-title {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 200;
  line-height: 0.95;
  color: var(--text-primary);
}

.product-hero-tagline {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
}

/* Product Intro */
.product-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px;
}

.product-intro-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

/* Product Section Headers */
.product-section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.product-section-title {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 200;
  line-height: 1.1;
  color: var(--text-primary);
}

/* Features */
.product-features {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 200;
  color: var(--text-tertiary);
  letter-spacing: 2px;
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

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

/* How It Works */
.product-how {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background-color: var(--text-primary);
  color: var(--text-on-card);
  border-radius: 4px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 200;
  opacity: 0.3;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
}

.step-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.7;
}

/* Use Cases */
.product-usecases {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.usecase-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  border: 1px solid var(--divider);
  border-radius: 4px;
}

.usecase-role {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}

.usecase-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Product CTA Section */
.product-cta-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
  text-align: center;
}

.product-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.product-cta-title {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 200;
  line-height: 1.1;
  color: var(--text-primary);
}

.product-cta-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* App Store Screenshots */
.app-screenshots {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.screenshots-header {
  padding: 0 80px;
  margin-bottom: 40px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  background: var(--text-primary);
  border-radius: 16px;
}

.app-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-badge-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-card);
  letter-spacing: 0.5px;
}

.app-badge-sub {
  font-size: 11px;
  color: var(--text-on-card);
  opacity: 0.5;
}

.app-badge-download {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: var(--text-on-card);
  padding: 6px 20px;
  border-radius: 20px;
  margin-left: 8px;
  transition: opacity 0.2s;
}

.app-badge-download:hover {
  opacity: 0.85;
}

.screenshots-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshots-track {
  display: flex;
  gap: 20px;
  padding: 0 80px;
  width: max-content;
}

.screenshot-item {
  flex-shrink: 0;
  width: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: #F5F5F5;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

/* Product Comparison Table */
.product-comparison {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead {
  background: var(--text-primary);
  color: var(--text-on-card);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: left;
  padding: 16px 24px;
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider);
  line-height: 1.6;
  color: var(--text-secondary);
}

.comparison-table .comparison-feature {
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Product Stats */
.product-stats {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* Product Detail Responsive */
@media (max-width: 1024px) {
  .breadcrumb {
    padding: 20px 40px;
  }

  .product-hero {
    padding: 36px 40px 60px;
  }

  .product-hero-title {
    font-size: 48px;
  }

  .product-intro {
    padding: 48px 40px;
  }

  .product-features {
    padding: 60px 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-how {
    padding: 60px 40px;
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .product-usecases {
    padding: 60px 40px;
  }

  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-cta-section {
    padding: 60px 40px;
  }

  .product-section-title {
    font-size: 36px;
  }

  .product-cta-title {
    font-size: 32px;
  }

  .screenshots-header {
    padding: 0 40px;
  }

  .screenshots-track {
    padding: 0 40px;
    gap: 16px;
  }

  .screenshot-item {
    width: 220px;
    border-radius: 20px;
  }

  .app-screenshots {
    padding: 48px 0 60px;
  }

  .product-comparison {
    padding: 60px 40px;
  }

  .product-stats {
    padding: 48px 40px;
  }

  .stats-grid {
    gap: 48px;
  }

  .stat-value {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    padding: 16px 20px;
  }

  .product-hero {
    padding: 24px 20px 48px;
  }

  .product-hero-title {
    font-size: 32px;
  }

  .product-hero-tagline {
    font-size: 15px;
  }

  .product-intro {
    padding: 32px 20px;
  }

  .product-intro-text {
    font-size: 15px;
  }

  .product-features {
    padding: 40px 20px;
  }

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

  .product-how {
    padding: 40px 20px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-usecases {
    padding: 40px 20px;
  }

  .usecases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-cta-section {
    padding: 40px 20px;
  }

  .product-section-title {
    font-size: 28px;
  }

  .product-cta-title {
    font-size: 24px;
  }

  .screenshots-header {
    padding: 0 20px;
  }

  .screenshots-track {
    padding: 0 20px;
    gap: 12px;
  }

  .screenshot-item {
    width: 180px;
    border-radius: 16px;
  }

  .app-screenshots {
    padding: 32px 0 48px;
  }

  .screenshots-header {
    margin-bottom: 24px;
  }

  .app-badge {
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 14px;
  }

  .app-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .product-comparison {
    padding: 40px 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 13px;
  }

  .product-stats {
    padding: 32px 20px;
  }

  .stats-grid {
    gap: 32px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 10px;
  }
}

/* ===== Legal Pages (Privacy, Terms) ===== */
.legal-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-heading {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 200;
  line-height: 0.95;
  color: var(--text-primary);
}

.legal-intro {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
}

.legal-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}

.legal-section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 32px;
  align-self: start;
}

.legal-section-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 200;
  color: var(--text-tertiary);
  letter-spacing: 2px;
}

.legal-section-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
  line-height: 1.3;
  color: var(--text-primary);
}

.legal-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-item-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.legal-item-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-divider {
  height: 1px;
  background: var(--divider);
  max-width: 1440px;
  margin: 0 auto;
  margin-left: 80px;
  margin-right: 80px;
}

/* ===== Support Page ===== */
.support-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-heading {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 200;
  line-height: 0.95;
  color: var(--text-primary);
}

.support-subheading {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

.support-channels {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.support-channel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px;
  background: var(--text-primary);
  color: var(--text-on-card);
  border-radius: 4px;
}

.channel-icon {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 200;
  opacity: 0.3;
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 200;
}

.channel-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.7;
}

.channel-detail {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: 4px;
}

.channel-response {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
}

/* About Page */
.about-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 64px;
}

.about-intro-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

.about-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.about-section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-section-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.about-section-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 200;
  color: var(--text-primary);
}

.about-section-content {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Blog Page */
.blog-empty {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px 160px;
}

.blog-empty-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Blog Listing */
.blog-list {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 36px;
  background: var(--text-primary);
  color: var(--text-on-card);
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-card:hover {
  opacity: 0.92;
}

.blog-card-content {
  flex: 1;
  min-width: 0;
}

.blog-card-meta {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.5;
  margin-bottom: 12px;
}

.blog-card-meta-sep {
  margin: 0 6px;
}

.blog-card-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.6;
  margin-bottom: 16px;
}

.blog-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  opacity: 0.5;
}

.blog-card-arrow {
  font-size: 20px;
  opacity: 0.3;
  flex-shrink: 0;
}

/* Blog Article */
.blog-article {
  max-width: 1440px;
  margin: 0 auto;
}

.article-header {
  padding: 48px 80px 40px;
}

.article-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.article-meta-sep {
  margin: 0 6px;
}

.article-title {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 200;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 20px;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border: 1px solid var(--divider);
  border-radius: 2px;
  color: var(--text-secondary);
}

.article-divider {
  max-width: 1440px;
  margin: 0 auto;
  height: 1px;
  background: var(--divider);
  margin-left: 80px;
  margin-right: 80px;
}

/* Article Body Typography */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 80px 80px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-body h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

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

.article-body strong {
  font-weight: 600;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

.article-body pre {
  background: var(--text-primary);
  color: var(--text-on-card);
  padding: 20px 24px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: inherit;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.article-body th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.article-body .article-figure {
  margin: 32px 0;
}

.article-body .article-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--divider);
}

.article-body .article-figure figcaption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-top: 10px;
  font-style: italic;
}

.article-body .math-block {
  text-align: center;
  margin: 20px 0;
  overflow-x: auto;
}

.article-body .references {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

.article-body .article-footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  color: var(--text-tertiary);
}

.article-body sup {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Contact Page */
.contact-channels {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 32px;
  background: var(--text-primary);
  color: var(--text-on-card);
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-card:hover {
  opacity: 0.9;
}

.contact-icon {
  opacity: 0.4;
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 200;
}

.contact-detail {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* System Status */
.system-status {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
}

.status-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.status-title {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 200;
  color: var(--text-primary);
}

.status-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
}

.status-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}

.status-item:first-child {
  border-top: 1px solid var(--divider);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.operational {
  background: #34C759;
}

.status-dot.issue {
  background: #FF9500;
}

.status-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
}

.status-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

.support-faq {
  padding-top: 80px;
}

/* ===== Legal & Support Responsive ===== */
@media (max-width: 1024px) {
  .legal-hero {
    padding: 36px 40px 48px;
  }

  .legal-heading,
  .support-heading {
    font-size: 44px;
  }

  .legal-section {
    padding: 48px 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-section-header {
    position: static;
  }

  .legal-divider {
    margin-left: 40px;
    margin-right: 40px;
  }

  .support-hero {
    padding: 36px 40px 48px;
  }

  .support-channels {
    padding: 0 40px 60px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-intro {
    padding: 0 40px 48px;
  }

  .about-section {
    padding: 48px 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-empty {
    padding: 60px 40px 120px;
  }

  .blog-list {
    padding: 0 40px 60px;
  }

  .article-header {
    padding: 36px 40px 32px;
  }

  .article-title {
    font-size: 36px;
  }

  .article-divider {
    margin-left: 40px;
    margin-right: 40px;
  }

  .article-body {
    padding: 36px 40px 60px;
  }

  .contact-channels {
    padding: 0 40px 60px;
    grid-template-columns: 1fr;
  }

  .system-status {
    padding: 60px 40px;
  }

  .support-faq {
    padding-top: 60px;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 24px 20px 36px;
  }

  .legal-heading,
  .support-heading {
    font-size: 32px;
  }

  .legal-intro,
  .support-subheading {
    font-size: 15px;
  }

  .legal-section {
    padding: 32px 20px;
    gap: 24px;
  }

  .legal-section-title {
    font-size: 20px;
  }

  .legal-divider {
    margin-left: 20px;
    margin-right: 20px;
  }

  .support-hero {
    padding: 24px 20px 36px;
  }

  .support-channels {
    padding: 0 20px 40px;
  }

  .support-channel {
    padding: 28px 24px;
  }

  .about-intro {
    padding: 0 20px 36px;
  }

  .about-section {
    padding: 32px 20px;
    gap: 24px;
  }

  .about-section-title {
    font-size: 20px;
  }

  .blog-empty {
    padding: 40px 20px 80px;
  }

  .blog-list {
    padding: 0 20px 40px;
  }

  .blog-card {
    padding: 28px 24px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-card-excerpt {
    font-size: 13px;
  }

  .blog-card-arrow {
    display: none;
  }

  .article-header {
    padding: 24px 20px 24px;
  }

  .article-title {
    font-size: 26px;
  }

  .article-excerpt {
    font-size: 15px;
  }

  .article-divider {
    margin-left: 20px;
    margin-right: 20px;
  }

  .article-body {
    padding: 28px 20px 40px;
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .article-body h3 {
    font-size: 17px;
    margin-top: 32px;
  }

  .article-body table {
    font-size: 12px;
  }

  .article-body th,
  .article-body td {
    padding: 8px 10px;
  }

  .contact-channels {
    padding: 0 20px 40px;
  }

  .contact-card {
    padding: 28px 24px;
  }

  .system-status {
    padding: 40px 20px;
  }

  .support-faq {
    padding-top: 40px;
  }
}
