/* AUDZAP public-site redesign candidate. Keeps the existing account/store APIs. */
:root {
  --shell: min(1140px, calc(100vw - 40px));
  --ease: cubic-bezier(.22,.76,.24,1);
}
html { scroll-padding-top: 90px; }
body { background: #0b1228; color: #f6f9ff; font-family: "Anuphan", "Noto Sans Thai", system-ui, sans-serif; }
body::before { display: none; }
h1, h2, h3, .brand b, .button, .desktop-nav a { font-family: "Anuphan", "Noto Sans Thai", system-ui, sans-serif; letter-spacing: -.025em; }
p { color: #bfd0e7; }

.site-header, .site-header.is-scrolled {
  border-bottom: 1px solid rgba(164,188,247,.14);
  background: rgba(8,15,36,.92);
  box-shadow: 0 8px 26px rgba(0,0,0,.13);
  backdrop-filter: blur(16px);
}
.nav-shell { height: 72px; gap: 18px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand b { font-size: 1.1rem; }
.brand small { margin-top: 4px; font-size: .57rem; letter-spacing: .1em; color: #94c8ff; }
.desktop-nav { padding: 3px; gap: 2px; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.desktop-nav a { min-height: 42px; display: grid; place-items: center; padding: 8px 13px; color: #c9d8f1; font-size: .88rem; }
.desktop-nav a:hover { background: rgba(143,181,255,.13); }
.desktop-nav a[aria-current="page"] { color: #fff; background: #2756b4; box-shadow: none; }
.account-trigger { min-height: 42px; }
.menu-toggle { box-shadow: none; }
.mobile-nav { top: 66px; border-color: rgba(171,195,255,.2); background: #111e3c; box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.mobile-nav a { color: #e7efff; }
.mobile-nav a[aria-current="page"] { background: #2756b4; }

.hero-home, .hero-page { min-height: 0; padding: 128px 0 68px; background: radial-gradient(circle at 85% 19%,rgba(49,105,200,.22),transparent 33%),linear-gradient(145deg,#0b1834,#101c3d 60%,#102644); }
.hero-home {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 112px 0 76px;
  background: linear-gradient(90deg,rgba(6,11,31,.78) 0%,rgba(6,11,31,.48) 39%,rgba(6,11,31,.06) 75%),linear-gradient(0deg,rgba(6,11,31,.4),transparent 40%),url("assets/visuals/nebula-hero-v1.webp") center center / cover no-repeat;
}
.hero-home .hero-grid { min-height: 0; display: block; }
.hero-page .hero-grid { min-height: 0; }
.hero-sky, .hero-sky::after, .hero-page::before, .hero-fade { display: none; }
.hero-grid { grid-template-columns: minmax(0,1fr) minmax(300px,.94fr); gap: clamp(24px,5vw,64px); }
.hero-copy { max-width: 620px; }
.eyebrow { margin-bottom: 14px; color: #89dff4; font: 800 .78rem "Anuphan",sans-serif; letter-spacing: .035em; }
.eyebrow::before { width: 20px; margin-right: 8px; background: #59c9e6; }
.hero h1, .hero-page h1 { max-width: 670px; font-size: clamp(2.45rem,4.9vw,4.9rem); line-height: 1.13; letter-spacing: -.04em; }
.hero h1 span { color: #77dcff; background: none; -webkit-text-fill-color: currentColor; }
.hero-lead { margin-top: 18px; max-width: 590px; color: #d1def0; font-size: clamp(1rem,1.3vw,1.1rem); line-height: 1.8; text-shadow: none; }
.hero-actions { margin-top: 25px; gap: 10px; }
.button { min-height: 48px; border-radius: 12px; box-shadow: none; }
.button-primary { color: #082138; background: #7be0f2; box-shadow: none; }
.button-primary:hover:not(:disabled) { background: #a0ecf8; box-shadow: 0 10px 24px rgba(93,215,239,.15); }
.button-secondary { color: #e9f2ff; background: rgba(255,255,255,.06); border-color: rgba(176,210,255,.28); }
.button-secondary:hover:not(:disabled) { background: rgba(255,255,255,.13); }
.hero-home .hero-visual-main { display: none; }
.hero-visual-main { min-height: 0; display: grid; place-items: center; pointer-events: auto; }
.hero-home .hero-visual-main img { aspect-ratio: 16/10; object-fit: cover; border: 1px solid rgba(150,211,255,.26); border-radius: 26px; box-shadow: 0 25px 70px rgba(0,5,23,.42); filter: none; }
.hero-visual-main::before, .hero-visual-main::after, .visual-halo { display: none; }
.hero-visual-topic { min-height: 0; }
.hero-visual-topic img { max-width: 350px; filter: drop-shadow(0 22px 28px rgba(0,0,15,.34)); }
.hero-trust { margin-top: 18px; }

.server-address { display: grid; grid-template-columns: 1fr auto; gap: 1px 15px; align-items: center; max-width: 455px; margin-top: 22px; padding: 15px 17px; border: 1px solid rgba(131,219,245,.4); border-radius: 16px; background: rgba(8,30,58,.82); box-shadow: 0 14px 32px rgba(0,0,0,.15); }
.server-address span { grid-column: 1/-1; color: #8bddf5; font-size: .78rem; font-weight: 800; }
.server-address strong { min-width: 0; overflow-wrap: anywhere; color: #fff; font: 800 clamp(1rem,2vw,1.34rem) "Chakra Petch","Anuphan",sans-serif; letter-spacing: .01em; }
.server-address button { min-height: 39px; padding: 6px 13px; border: 0; border-radius: 9px; background: #f3cc71; color: #17233c; font-size: .8rem; font-weight: 900; cursor: pointer; }
.server-address button:hover { background: #ffe19d; }
.server-address small { grid-column: 1/-1; margin-top: 4px; color: #acc6df; font-size: .76rem; }

.section { padding: 72px 0; }
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.8rem,3.5vw,3rem); line-height: 1.2; }
.section-head > p:last-child { margin-top: 10px; font-size: .99rem; line-height: 1.72; }
.feature-card, .status-panel, .race-card, .timeline-item, .safety-banner, .notice, .link-demo, .product-card, .empty-state {
  border: 1px solid rgba(161,192,240,.19); border-radius: 19px; background: #172543; box-shadow: 0 12px 30px rgba(0,5,23,.13);
}
.feature-card { min-height: 0; padding: 24px; }
.feature-card::after { display: none; }
.feature-icon { width: 43px; height: 43px; margin-bottom: 20px; border-radius: 11px; background: #24426b; color: #8bddf5; box-shadow: none; }
.feature-card h3 { font-size: 1.18rem; }
.feature-card p { line-height: 1.72; }
.feature-card .kicker { color: #86d9f2; }
.story-section { background: #111f3e; }
.story-grid { gap: 48px; }
.story-copy h2 { font-size: clamp(2rem,3.7vw,3.5rem); line-height: 1.18; }
.story-copy > p:not(.eyebrow) { color: #c3d4ec; line-height: 1.8; }
.journey-step { border-color: rgba(161,192,240,.18); background: #1a2b4d; }
.tint-section { background: #0e1a36; }
.status-panel { gap: 14px; }
.status-panel > div { padding: 20px; }
.status-panel .text-link { display: inline-block; margin-top: 12px; }
.text-link { color: #91e8f9; }
.site-footer { border-top: 1px solid rgba(161,192,240,.16); background: #081327; }
.account-modal-card h2 { font-size: clamp(1.65rem,3.5vw,2.25rem); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(240px,.75fr); }
}
@media (max-width: 760px) {
  :root { --shell: min(calc(100% - 30px),680px); }
  .hero-home, .hero-page { padding: 100px 0 48px; }
  .hero-home { min-height: 660px; background-image: linear-gradient(90deg,rgba(6,11,31,.86),rgba(6,11,31,.54)),linear-gradient(0deg,rgba(6,11,31,.62),transparent 55%),url("assets/visuals/nebula-hero-v1.webp"); background-position: 62% center; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-visual-main { min-height: 0; }
  .hero-visual-main img { max-height: 330px; }
  .hero-visual-topic { order: initial; min-height: 0; }
  .hero-visual-topic img { max-width: min(68vw,270px); }
  .hero h1, .hero-page h1 { font-size: clamp(2.25rem,9vw,3.4rem); }
  .section { padding: 52px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .story-grid { grid-template-columns: 1fr; gap: 26px; }
  .server-address { max-width: 100%; }
}
@media (max-width: 440px) {
  .server-address { grid-template-columns: 1fr; }
  .server-address button { margin-top: 8px; }
  .hero-actions .button { width: 100%; }
  .account-trigger [data-account-label] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
