/* Homepage hierarchy: overview and live demo first, detailed features on demand. */
.hero { min-height: 0; padding: 104px 0 48px; }
.hero > .container { position: relative; z-index: 1; }
.hero .logo { width: 76px; max-width: none; margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.1; letter-spacing: -.8px; margin-bottom: 20px; }
.hero .subtitle { max-width: 680px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-actions .btn { width: auto; max-width: 100%; min-height: 52px; margin: 0; padding: 14px 24px; border-radius: 14px; font-size: 16px; line-height: 1.4; }
.hero-modules { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 900px; margin: 24px auto 0; }
.hero-modules a { padding: 7px 12px; border: 1px solid #93c5fd33; border-radius: 999px; background: #ffffff06; color: #bfdbfe; font-size: 12px; text-decoration: none; }
.hero-modules a:hover { background: #2563eb26; }
.hero .scroll-indicator { margin-top: 24px; font-size: 13px; }
.section { padding-top: 76px; padding-bottom: 76px; }
.section-title { margin-top: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15; }
.section-subtitle { margin-bottom: 32px; font-size: 16px; line-height: 1.65; }
#capabilities { padding-top: 40px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.module-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border: 1px solid #93c5fd26; border-radius: 18px; background: #ffffff05; text-align: left; scroll-margin-top: 24px; }
.module-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #2563eb26; color: #93c5fd; }
.module-icon svg { width: 26px; height: 26px; fill: currentColor; }
.module-card h3 { margin: 0; color: #fff; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.module-card p { margin: 0; color: #cbd5e1; font-size: 15px; line-height: 1.65; }
.module-card > a { align-self: flex-start; margin-top: auto; padding-top: 4px; color: #93c5fd; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
#interactive-demo { border-top: 1px solid #93c5fd1a; border-bottom: 1px solid #93c5fd1a; background: #0b1630; }
#interactive-demo .demo-copy > p { color: #cbd5e1; }
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 32px; text-align: left; }
.feature-group { min-width: 0; border: 1px solid #93c5fd26; border-radius: 16px; background: #ffffff05; scroll-margin-top: 24px; }
.feature-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; line-height: 1.4; }
.feature-group > summary::-webkit-details-marker { display: none; }
.feature-group > summary::after { flex: none; content: '+'; color: #93c5fd; font-size: 24px; font-weight: 400; }
.feature-group[open] > summary::after { content: '−'; }
.feature-group-body { padding: 0 22px 20px; }
.feature-group-body article + article { margin-top: 20px; padding-top: 18px; border-top: 1px solid #93c5fd1a; }
.feature-group-body h3 { margin: 0 0 8px; color: #dbeafe; font-size: 16px; font-weight: 600; line-height: 1.45; }
.feature-group-body p { margin: 0; color: #cbd5e1; font-size: 14px; line-height: 1.7; }
.gallery-hint { display: none; }
.section.light .section-subtitle, .section.light .gallery-hint { color: #475569; }
.hero-modules a:focus-visible, .module-card a:focus-visible, .feature-group > summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; border-radius: 8px; }
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .section { padding: 56px 12px; }
  .hero { padding: 98px 0 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 380px; }
  .hero .logo { width: 68px; margin-bottom: 20px; }
  .screens { display: flex; gap: 20px; margin-top: 24px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .screens .screen { flex: 0 0 min(78vw, 290px); min-width: 0; scroll-snap-align: center; }
  .gallery-hint { display: block; margin: 16px 0 0; color: #94a3b8; font-size: 13px; }
  .feature-groups { grid-template-columns: minmax(0, 1fr); }
  .features { margin-top: 30px; }
}
@media (max-width: 540px) {
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .module-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px 14px; padding: 18px; }
  .module-card .module-icon { grid-row: 1 / 3; }
  .module-card h3 { align-self: center; font-size: 18px; }
  .module-card p, .module-card > a { grid-column: 2; font-size: 14px; }
  .module-card p { line-height: 1.55; }
  .hero-modules a { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-indicator { animation: none; }
  .btn { transition: none; }
}
