/* Document layouts and section presentation. */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 12, 22, .96);
  transition: padding-block var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(16px);
    background: rgba(8, 12, 22, .85);
  }
  .site-header.is-compact .header-inner { padding-block: 10px; }
  .site-header.is-compact {
    border-bottom-color: rgba(79, 182, 240, .18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .36);
  }
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; transition: padding-block var(--motion-fast) var(--motion-ease); }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; min-width: 0; }
.wordmark strong { display: block; font-size: 1.5rem; letter-spacing: -.04em; }
.wordmark small { display: block; color: var(--text-muted); }
.brand-symbol { color: var(--accent-blue); width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border-highlight); border-radius: 14px; box-shadow: 0 0 24px rgba(79,182,240,.12); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-size: .875rem; transition: color var(--motion-fast), background var(--motion-fast); }
.site-header nav a:last-child { color: var(--accent-blue); }
.site-header nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, .05); }

/* Global motion control button */
.global-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-highlight);
  background: rgba(16, 22, 36, 0.85);
  color: var(--accent-blue);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  transition: all var(--motion-fast) var(--motion-ease);
}
.global-motion-toggle:hover {
  color: #fff;
  border-color: var(--accent-blue);
  background: rgba(79, 182, 240, 0.15);
  box-shadow: 0 0 16px rgba(79, 182, 240, 0.2);
}
.global-motion-toggle:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}
.global-motion-toggle[aria-pressed="true"] {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(242, 144, 61, 0.12);
}
@media (max-width: 767px) {
  .global-motion-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 90;
    background: rgba(14, 20, 36, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

/* Scroll progress bar */
.scroll-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
.scroll-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4fb6f0, #88d6f7, #37c977);
  transform-origin: left;
  transform: scaleX(var(--scroll-pct, 0));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress-fill {
    animation: grow-progress linear;
    animation-timeline: scroll();
  }
  @keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-track { display: none !important; }
}

/* Background living routes decorative layer */
.bg-routes-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-routes-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bg-route-line {
  opacity: 0.95;
}
.bg-dot-glow {
  filter: blur(3px);
}

.hero-section { padding-top: clamp(40px,6vw,88px); }
.hero-layout { display: grid; gap: 40px; align-items: center; }
.hero-copy h1 { margin-block: 20px 24px; letter-spacing: -.045em; }
.hero-copy h1 span { color: #88d6f7; }
.hero-copy h1 > .hero-phrase { color: inherit; }
.hero-copy h1 .hero-phrase { display: inline-block; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(79, 182, 240, .08);
  border: 1px solid rgba(79, 182, 240, .2);
  margin-bottom: 16px;
}
.lead { color: var(--text-secondary); font-size: var(--font-size-lead); max-width: 65ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-footnote { margin-top: 24px; color: var(--text-muted); font-size: .875rem; }
.section-intro { max-width: 820px; margin-bottom: 36px; }
.section-intro h2 { margin-block: 16px 20px; letter-spacing: -.035em; }
.section--tinted { background: linear-gradient(120deg,rgba(79,182,240,.025),transparent 65%), var(--bg-app); border-block: 1px solid #202832; }
.card-grid, .solution-steps { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.card h3 { margin-block: 18px 12px; }
.card > h3:first-child { margin-top: 0; }
.card p { color: var(--text-secondary); }
.card-index { display: inline-flex; color: var(--accent-blue); font-size: .875rem; border: 1px solid var(--border-highlight); border-radius: 10px; padding: 6px 12px; margin-bottom: 12px; }
.solution-steps-wrapper { position: relative; }
.solution-connector { display: none; }
@media (min-width: 1024px) {
  .solution-connector {
    display: block;
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
    z-index: 1;
  }
  .solution-connector-svg {
    width: 100%;
    height: 100%;
    animation-play-state: inherit;
  }
  .solution-connector-path {
    stroke-dasharray: 600 600;
    stroke-dashoffset: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .js-motion .solution-connector:not(.is-revealed):not(.is-revealing) .solution-connector-path {
      stroke-dashoffset: 600;
    }
    .js-motion .solution-connector.is-revealing .solution-connector-path {
      animation: solution-connector-draw var(--reveal-duration, 900ms) cubic-bezier(.2, .7, .2, 1) both;
      animation-play-state: inherit;
    }
  }
  .solution-connector.is-revealed .solution-connector-path {
    stroke-dashoffset: 0;
  }
  [data-global-motion="paused"] .solution-connector-path {
    animation-play-state: paused !important;
  }
}
@keyframes solution-connector-draw {
  from { stroke-dashoffset: 600; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .solution-connector-path { stroke-dashoffset: 0 !important; animation: none !important; }
}
.solution-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.solution-steps .card { position: relative; }
.step-number { display: block; color: var(--accent-blue); font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.step-future { margin-top: 16px; }
.privacy-card { background: linear-gradient(140deg,rgba(79,182,240,.06),transparent),var(--surface-card); }
.section-note { margin-top: 24px; color: var(--text-muted); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; margin-top: 24px; font-weight: 600; text-decoration: none; }
.web-benefits { padding-left: 20px; margin-block: 0 32px; color: var(--text-secondary); }
.web-benefits li + li { margin-top: 8px; }
.scene-panel { padding: 20px; border: 1px solid var(--border-highlight); border-radius: var(--radius-device); background: linear-gradient(145deg,rgba(79,182,240,.06),transparent 55%),var(--bg-app); box-shadow: var(--shadow-float); min-width: 0; }
.scene-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; font-weight: 600; margin-bottom: 20px; }
.hero-scene .hero-map { display: block; width: 100%; height: auto; aspect-ratio: 56 / 39; }
.hero-scene .stop-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; padding: 0; margin: 16px 0; gap: 6px 12px; color: var(--text-muted); font-size: .875rem; }
.hero-scene .member-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 16px 0; font-size: .875rem; }
.hero-scene .member-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--accent-green); }
.hero-scene .member-dot--lan { background: var(--accent-orange); }
.hero-scene .member-dot--an { background: var(--accent-yellow); }
.hero-scene .demo-alerts { display: grid; gap: 8px; }
.hero-scene .demo-alert { padding: 9px 12px; font-size: .875rem; border: 1px solid var(--accent-orange); border-left-width: 3px; border-radius: 10px; background: var(--surface-glass); }
.hero-scene [data-demo-alert="separated"] { border-color: var(--accent-red); }
.hero-scene [data-demo-alert="stale"] { border-color: var(--accent-yellow); }
.hero-scene .demo-alert span { margin-right: 6px; }
.hero-scene .scene-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.hero-scene .scene-footer .simulation-caption { margin: 0; }
.hero-scene [data-motion-toggle] { font-size: .875rem; }
.web-scene { padding: clamp(16px,3vw,32px); background: radial-gradient(ellipse at 50% 60%,rgba(79,182,240,.07),transparent 65%), var(--bg-page); border: 1px solid var(--border-subtle); border-radius: 28px; }
.web-scene .device-pair { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 28px; }
.web-scene .phone-mockup { width: 100%; max-width: 330px; justify-self: center; padding: 16px; border: 3px solid #596879; border-radius: 28px; background: var(--bg-app); box-shadow: var(--shadow-float); }
.web-scene .phone-speaker { width: 64px; height: 6px; margin: 0 auto 18px; background: var(--border-highlight); border-radius: 999px; }
.web-scene .browser-mockup { min-width: 0; border: 1px solid var(--border-highlight); border-radius: 20px; background: var(--bg-app); box-shadow: var(--shadow-float); }
.web-scene .browser-chrome { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); font-size: .875rem; }
.web-scene .browser-chrome > span:first-child { color: var(--accent-blue); font-size: 14px; letter-spacing: 2px; }
.web-scene .browser-content { padding: 20px; }
.web-scene .browser-columns { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.web-scene .device-title { font-weight: 600; margin-bottom: 16px; }
.web-scene .device-label { color: var(--text-muted); font-size: .875rem; margin-block: 16px 10px; }
.web-scene .web-map { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; border-radius: 14px; }
.web-scene .device-members { list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.web-scene .device-members li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 8px; border-bottom: 1px solid var(--border-subtle); }
.web-scene .device-members span { color: var(--text-muted); }
.web-scene .chat-message { padding: 12px 16px; border: 1px solid #35546a; border-radius: 14px 14px 14px 4px; background: #132331; font-size: .875rem; }
.web-scene .chat-message strong { display: block; color: #88d6f7; margin-bottom: 4px; }

/* Web idea cards & Opportunity use-case cards */
.web-ideas-grid, .opportunity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.web-ideas-grid { margin-top: 36px; }
.web-ideas-grid .card > .status-badge { margin-bottom: 14px; }
@media (min-width: 768px) {
  .web-ideas-grid, .opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Contact CTA panel */
.contact-section { padding-top: 24px; }
.contact-panel {
  padding: clamp(28px, 6vw, 68px);
  background: radial-gradient(circle at 100% 0%, rgba(79, 182, 240, .18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(55, 201, 119, .08), transparent 50%),
    linear-gradient(145deg, #182330, #10141b);
  border: 1px solid rgba(79, 182, 240, .28);
  box-shadow: inset 0 1px 0 rgba(242, 244, 247, .1), 0 32px 80px rgba(0, 0, 0, .45), 0 0 48px rgba(79, 182, 240, .08);
  border-radius: var(--radius-lg);
}
.contact-panel h2 { letter-spacing: -.035em; margin-bottom: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 32px; }
.contact-placeholders { display: grid; gap: 8px; }
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 32px 48px; }
.footer-inner { display: grid; gap: 16px; color: var(--text-muted); font-size: .875rem; }
.footer-inner .placeholder { font-size: inherit; }
.footer-inner .text-link { margin-top: 0; justify-self: start; }

@media (max-width: 767px) {
  .hero-copy h1 { font-size: clamp(1.9rem, 7vw, 2.7rem); }
  .site-header { position: static; }
  .header-inner { align-items: flex-start; }
  .site-header nav { width: 100%; gap: 4px 16px; }
  .actions, .contact-actions { flex-direction: column; }
  .actions .button, .contact-actions .button { width: 100%; }
}
@media (min-width: 768px) {
  .card-grid, .solution-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .web-scene .browser-columns { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-layout { grid-template-columns: minmax(0,45fr) minmax(0,55fr); gap: 40px; }
  .hero-copy h1 { font-size: clamp(2.45rem,3.6vw,3.15rem); }
  .card-grid, .solution-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .feature-card--wide { grid-column: span 2; }
  .privacy-card { grid-column: span 1; }
  .web-scene .device-pair { grid-template-columns: minmax(0,1fr) minmax(0,2.2fr); gap: 40px; }
}

/* Subtle section alternating rhythm and soft per-section ambient color glows */
.section { position: relative; }
#hero {
  background-image: radial-gradient(ellipse at 85% 15%, rgba(79, 182, 240, 0.08), transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(55, 201, 119, 0.05), transparent 55%);
}
#problem {
  background-image: radial-gradient(ellipse at 18% 25%, rgba(99, 102, 241, 0.07), transparent 60%),
    radial-gradient(ellipse at 85% 75%, rgba(79, 182, 240, 0.04), transparent 50%);
}
#solution {
  background-image: radial-gradient(ellipse at 80% 20%, rgba(55, 201, 119, 0.06), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(79, 182, 240, 0.05), transparent 55%);
}
#product {
  background-image: radial-gradient(ellipse at 50% 15%, rgba(79, 182, 240, 0.08), transparent 65%),
    radial-gradient(ellipse at 85% 85%, rgba(55, 201, 119, 0.04), transparent 50%);
}
#web {
  background-image: radial-gradient(ellipse at 25% 30%, rgba(139, 92, 246, 0.06), transparent 60%),
    radial-gradient(ellipse at 80% 65%, rgba(79, 182, 240, 0.05), transparent 55%);
}
#opportunity {
  background-image: radial-gradient(ellipse at 75% 20%, rgba(240, 185, 61, 0.06), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(242, 144, 61, 0.04), transparent 50%);
}
#contact {
  background-image: radial-gradient(ellipse at 50% 20%, rgba(79, 182, 240, 0.08), transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(55, 201, 119, 0.05), transparent 55%);
}

.section--tinted {
  border-block: 1px solid rgba(79, 182, 240, .14);
}
.section-intro .eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 12px; }
.section-intro .eyebrow::before {
  content: ''; width: 28px; height: 1px; flex: 0 0 28px; background: var(--accent-blue);
}
.card-grid .card, .solution-steps .card, .web-ideas-grid .card, .opportunity-grid .card {
  background: linear-gradient(145deg, rgba(79,182,240,.06), transparent 65%),
    linear-gradient(170deg, #18202d, #111722);
  box-shadow: inset 0 1px 0 rgba(242,244,247,.06), 0 12px 32px rgba(0,0,0,.18);
  border-color: #2b394a;
}
@media (min-width: 1440px) {
  .container { max-width: 1200px; }
  .hero-layout { gap: 48px; }
}
