/* Shared homepage polish for every localized index page. */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  text-align: left;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: center;
}

.hero::after {
  content: '';
  display: block;
  min-height: 360px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background:
    url('/assets/cloudmesh-hero.png') right 30px center / auto 82% no-repeat,
    url('/assets/keystrike-hero.png') left 28px top 42px / 54% auto no-repeat,
    url('/assets/photoflight-hero.png') left 64px bottom 32px / 34% auto no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 44%),
    linear-gradient(180deg, var(--surface), var(--bg-alt));
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 62px;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 13ch;
  margin: 0 0 20px;
}

.hero h1 strong {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.hero .ctas {
  justify-content: flex-start;
}

.hero .btn-primary,
.hero .btn-outline {
  border-radius: 8px;
  text-decoration: none;
  min-height: 52px;
}

.hero .btn-primary {
  background: var(--heading);
  color: var(--bg);
}

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

.section-head,
.section-header {
  max-width: 1100px;
  margin: 72px auto 24px;
  padding: 0 32px 14px;
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2,
.section-header h2 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 34px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.section-head .head-tag,
.section-header p {
  color: var(--text-muted);
}

.section-head .head-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-header {
  text-align: center;
}

.section-header p {
  max-width: 58ch;
  margin: 10px auto 0;
}

.apps-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.app-card,
.coming-card,
.trust-item,
.intent-card,
.transparency-table-wrap,
.tracking-def {
  border-radius: 8px;
}

.app-card {
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.app-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.app-card .card-img {
  aspect-ratio: 5 / 4;
  background: linear-gradient(150deg, var(--bg-alt), var(--surface));
  padding: 20px;
}

.app-card .card-img img {
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
}

.app-card .card-body {
  padding: 18px;
}

.app-card .card-cat,
.coming-card .card-cat {
  color: var(--accent);
}

.app-card h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.app-card .card-desc,
.coming-card .card-desc,
.intent-card p,
.intent-card li,
.trust-item p {
  color: var(--text-muted);
}

.app-card .card-link {
  color: var(--heading);
}

.coming-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.coming-card,
.trust-item,
.intent-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.intent-card h3,
.trust-item h3,
.coming-card h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.transparency-section,
.trust-section,
.intent-section,
.blog-section,
.faq-section {
  padding: 64px 0;
}

.transparency-table-wrap {
  overflow-x: auto;
}

.transparency-table td,
.transparency-table th {
  vertical-align: top;
}

.trust-grid,
.intent-grid {
  max-width: 1100px;
}

.blog-list li {
  gap: 16px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

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

@media (max-width: 700px) {
  .hero {
    padding: 42px 20px 24px;
  }

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

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

  .section-head,
  .section-header {
    margin-top: 48px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-head {
    display: block;
  }

  .section-head .head-tag {
    display: block;
    margin-top: 8px;
  }

  .apps-grid,
  .coming-grid,
  .intent-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .transparency-section,
  .trust-section,
  .intent-section,
  .blog-section,
  .faq-section {
    padding: 44px 0;
  }
}
