@font-face {
  font-family: "Anuphan";
  src: url("assets/fonts/Anuphan-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@layer reset, base, layout, components, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --navy-950: #031927;
    --navy-900: #06263a;
    --navy-800: #0a3850;
    --blue-700: #087fc7;
    --blue-600: #079de2;
    --cyan-500: #1fcdf4;
    --cyan-200: #b9f3ff;
    --green-500: #36db9a;
    --green-300: #82efc4;
    --sky-100: #eaf9ff;
    --sky-50: #f7fcff;
    --white: #fff;
    --ink: #09283a;
    --muted: #537184;
    --line: rgba(8, 103, 151, .15);
    --shadow: 0 30px 80px rgba(4, 77, 116, .15);
    --shadow-soft: 0 16px 44px rgba(4, 77, 116, .09);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shell: min(1180px, calc(100vw - 40px));
    --ease: cubic-bezier(.2,.75,.25,1);
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--sky-50);
    color: var(--ink);
    font-family: "Noto Sans Thai", "Leelawadee UI", "Tahoma", system-ui, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  ::selection { background: var(--cyan-200); color: var(--navy-950); }
  :focus-visible { outline: 3px solid var(--green-500); outline-offset: 4px; }

  h1, h2, h3 {
    color: var(--navy-950);
    font-family: "Bai Jamjuree", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
    letter-spacing: -.035em;
    line-height: 1.1;
  }

  h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
  h3 { font-size: 1.2rem; }
  p { color: var(--muted); }
  .icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

@layer layout {
  .shell { width: var(--shell); margin-inline: auto; }
  .skip-link { position: fixed; left: 20px; top: -80px; z-index: 999; padding: 10px 16px; border-radius: 12px; background: var(--navy-950); color: #fff; transition: top .2s ease; }
  .skip-link:focus { top: 18px; }

  .site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .site-header.is-scrolled { background: rgba(247, 252, 255, .84); border-color: var(--line); box-shadow: 0 8px 30px rgba(3, 39, 60, .08); backdrop-filter: blur(18px); }
  .nav-shell { width: var(--shell); height: 78px; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; gap: 28px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
  .brand img { filter: drop-shadow(0 8px 14px rgba(0, 142, 208, .2)); }
  .brand span { display: grid; line-height: 1; }
  .brand b { font-size: 1.13rem; letter-spacing: -.025em; }
  .brand small { margin-top: 5px; color: var(--blue-700); font-size: .61rem; font-weight: 800; letter-spacing: .16em; }

  .desktop-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,.52); border-radius: 999px; background: rgba(255,255,255,.46); box-shadow: 0 5px 18px rgba(9, 78, 111, .06); backdrop-filter: blur(14px); }
  .desktop-nav a { position: relative; padding: 8px 13px; border-radius: 999px; color: #33566b; font-size: .89rem; font-weight: 700; transition: .2s ease; }
  .desktop-nav a:hover { color: var(--blue-700); background: rgba(255,255,255,.64); }
  .desktop-nav a[aria-current="page"] { color: var(--white); background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); box-shadow: 0 8px 22px rgba(0, 135, 203, .25); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .nav-status { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--navy-800); white-space: nowrap; }
  .nav-status i, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 5px rgba(54, 219, 154, .15); }
  .menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-soft); cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy-900); transition: .2s ease; }
  .mobile-nav { display: none; }

  .hero { position: relative; isolation: isolate; overflow: hidden; }
  .hero-home { min-height: 820px; padding: 126px 0 86px; background: #dff6ff; }
  .hero-page { min-height: 620px; padding: 140px 0 80px; background:
    radial-gradient(circle at 78% 36%, rgba(31,205,244,.22), transparent 25%),
    radial-gradient(circle at 8% 50%, rgba(54,219,154,.16), transparent 28%),
    linear-gradient(145deg, #e8faff 0%, #f8fdff 48%, #e8fff7 100%); }
  .hero-sky { position: absolute; inset: 0; z-index: -2; background: url("assets/visuals/nebula-hero-v1.webp") 60% 50% / cover no-repeat; }
  .hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(235,249,255,.98) 0%, rgba(225,247,255,.91) 29%, rgba(228,248,255,.35) 54%, rgba(217,245,255,.03) 78%); }
  .hero-fade { position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, var(--sky-50)); pointer-events: none; }
  .hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); align-items: center; gap: 44px; }
  .hero-home .hero-grid { min-height: 610px; }
  .hero-copy { position: relative; z-index: 4; max-width: 650px; }
  .eyebrow { margin-bottom: 18px; color: var(--blue-700); font-size: .74rem; font-weight: 900; letter-spacing: .18em; }
  .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 11px; vertical-align: middle; background: linear-gradient(90deg, var(--blue-600), var(--green-500)); }
  .hero h1 { max-width: 780px; font-size: clamp(3.2rem, 6.9vw, 6.5rem); text-wrap: balance; }
  .hero-page h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
  .hero h1 span { color: transparent; background: linear-gradient(102deg, var(--blue-700) 5%, var(--cyan-500) 48%, #12ae7a 95%); background-clip: text; -webkit-background-clip: text; }
  .hero-lead { max-width: 620px; margin-top: 24px; color: #385f74; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.8; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .hero-trust { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; }
  .hero-trust span { display: inline-flex; align-items: center; gap: 7px; color: #355e72; font-size: .82rem; font-weight: 700; }
  .hero-trust .icon { color: var(--blue-700); }
  .hero-visual { position: relative; min-width: 0; transform-style: preserve-3d; }
  .hero-visual img { position: relative; z-index: 2; width: 100%; object-fit: contain; transition: transform .24s ease-out; }
  .hero-visual-main { min-height: 520px; opacity: 0; pointer-events: none; }
  .hero-visual-main img { opacity: 0; }
  .hero-visual-topic { display: grid; place-items: center; min-height: 390px; }
  .hero-visual-topic img { width: min(100%, 480px); filter: drop-shadow(0 35px 50px rgba(5, 98, 142, .18)); }
  .visual-halo { position: absolute; z-index: 0; inset: 11% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(31,205,244,.28), rgba(54,219,154,.09) 48%, transparent 68%); filter: blur(8px); }
  .float-chip { position: absolute; z-index: 3; padding: 8px 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,255,255,.68); box-shadow: var(--shadow-soft); color: var(--navy-800); font-size: .68rem; font-weight: 900; letter-spacing: .12em; backdrop-filter: blur(12px); }
  .chip-one { right: 8%; top: 15%; }
  .chip-two { right: 2%; bottom: 20%; }

  .section { padding: 105px 0; }
  .section + .section { border-top: 1px solid rgba(11, 124, 177, .06); }
  .section-head { max-width: 750px; margin-bottom: 44px; }
  .section-head > p:last-child { max-width: 650px; margin-top: 18px; font-size: 1.02rem; }
  .tint-section { background:
    linear-gradient(125deg, rgba(223,247,255,.7), rgba(237,255,249,.72)),
    radial-gradient(circle at 20% 10%, rgba(31,205,244,.16), transparent 30%); }
  .story-section { background: var(--navy-950); }
  .story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
  .story-copy h2 { color: white; }
  .story-copy > p:not(.eyebrow) { margin: 22px 0; color: #a8c8d8; }
  .story-copy .eyebrow { color: var(--cyan-500); }
}

@layer components {
  .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease; }
  .button:hover:not(:disabled) { transform: translateY(-2px); }
  .button-primary { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 58%, #0bb7c9); box-shadow: 0 14px 30px rgba(0, 129, 196, .26); }
  .button-primary:hover:not(:disabled) { box-shadow: 0 18px 40px rgba(0, 129, 196, .32); }
  .button-secondary { border-color: var(--line); background: rgba(255,255,255,.68); color: var(--navy-800); backdrop-filter: blur(10px); }
  .button:disabled { cursor: not-allowed; opacity: .62; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-500); font-weight: 800; }
  .text-link .icon { transition: transform .2s ease; }
  .text-link:hover .icon { transform: translateX(4px); }

  .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feature-card { position: relative; min-height: 290px; padding: 30px; overflow: hidden; border: 1px solid rgba(12, 120, 170, .13); border-radius: var(--radius-lg); background: rgba(255,255,255,.84); box-shadow: var(--shadow-soft); }
  .feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -48px; bottom: -55px; border: 1px solid rgba(31,205,244,.18); border-radius: 50%; box-shadow: 0 0 0 26px rgba(31,205,244,.04), 0 0 0 52px rgba(54,219,154,.035); }
  .feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 36px; border-radius: 15px; background: linear-gradient(145deg, #ddf8ff, #e5fff5); color: var(--blue-700); box-shadow: inset 0 0 0 1px rgba(31,205,244,.2); }
  .feature-icon .icon { width: 23px; height: 23px; }
  .kicker { color: var(--blue-700); font-size: .68rem; font-weight: 900; letter-spacing: .16em; }
  .feature-card h3 { margin: 8px 0 12px; font-size: 1.35rem; }
  .feature-card > p:not(.kicker) { font-size: .94rem; }
  .feature-meta { display: inline-block; margin-top: 20px; color: var(--blue-700); font-size: .78rem; font-weight: 800; }

  .journey { position: relative; display: grid; gap: 14px; }
  .journey::before { content: ""; position: absolute; left: 32px; top: 38px; bottom: 38px; width: 1px; background: linear-gradient(var(--cyan-500), var(--green-500)); opacity: .4; }
  .journey-step { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 8px 20px; align-items: center; padding: 22px; border: 1px solid rgba(131,231,255,.13); border-radius: 20px; background: rgba(255,255,255,.045); }
  .journey-step b { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(101,226,255,.28); border-radius: 50%; background: var(--navy-900); color: var(--cyan-500); font-size: .78rem; }
  .journey-step span { color: white; font-weight: 800; }
  .journey-step p { color: #86aebf; font-size: .88rem; }

  .status-panel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.72); box-shadow: var(--shadow-soft); }
  .status-panel > div { position: relative; padding: 28px; }
  .status-panel > div + div { border-left: 1px solid var(--line); }
  .status-panel .status-dot { display: inline-block; margin: 0 10px 1px 0; }
  .status-panel .icon { display: inline-block; margin: 0 9px -4px 0; color: var(--blue-700); }
  .status-panel p { margin-top: 7px; font-size: .9rem; }

  .race-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .race-card { --tone: var(--blue-600); display: grid; grid-template-columns: 82px 1fr; gap: 22px; align-items: center; min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-soft); }
  .race-orb { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 25px 25px 34px 34px; background: radial-gradient(circle at 35% 25%, white, var(--tone) 35%, var(--navy-900) 100%); box-shadow: inset -8px -11px 14px rgba(3,25,39,.23), 0 15px 26px color-mix(in srgb, var(--tone), transparent 73%); transform: rotate(-4deg); }
  .race-orb span { color: white; font-size: .75rem; font-weight: 900; text-shadow: 0 1px 6px rgba(0,0,0,.3); transform: rotate(4deg); }
  .race-card h3 { margin: 7px 0 8px; }
  .race-card p:last-child { font-size: .9rem; }
  .tone-cyan { --tone: #19c7ea; } .tone-green { --tone: #29cf91; } .tone-violet { --tone: #8b65e8; }
  .tone-rose { --tone: #ef6f9b; } .tone-gold { --tone: #f0bd53; } .tone-sky { --tone: #3ba5ec; }

  .steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
  .steps li { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps li > b { color: var(--blue-600); font-size: 2rem; font-weight: 400; letter-spacing: -.05em; }
  .steps h3 { margin-bottom: 8px; font-size: 1.35rem; }
  .link-demo { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: stretch; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-soft); }
  .link-demo > div { display: grid; align-content: center; padding: 13px 16px; border-radius: 14px; background: var(--sky-100); }
  .link-demo span { color: var(--muted); font-size: .74rem; }
  .link-demo strong, .code-box b { color: var(--navy-900); letter-spacing: .08em; }

  .timeline { position: relative; display: grid; gap: 16px; padding-left: 42px; }
  .timeline::before { content: ""; position: absolute; left: 11px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--blue-600), var(--green-500)); }
  .timeline-item { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-soft); }
  .timeline-item::before { content: ""; position: absolute; left: -38px; top: 34px; width: 14px; height: 14px; border: 3px solid var(--sky-50); border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 4px rgba(7,157,226,.15); }
  .timeline-item h3 { margin: 10px 0 8px; font-size: 1.32rem; }
  .timeline-tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 900; }
  .timeline-tag.ready { background: #dff9ef; color: #087a54; }
  .timeline-tag.test { background: #dff5ff; color: #0879b0; }
  .timeline-tag.plan { background: #eef0f5; color: #5b6876; }

  .rule-list { display: grid; }
  .rule-row { display: grid; grid-template-columns: 85px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
  .rule-row:last-child { border-bottom: 1px solid var(--line); }
  .rule-row > b { color: var(--blue-600); font-size: 1.7rem; font-weight: 500; }
  .rule-row h3 { margin-bottom: 7px; }
  .safety-banner, .notice { display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; border: 1px solid rgba(13,153,208,.22); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: var(--shadow-soft); }
  .safety-banner > .icon, .notice > .icon { flex: 0 0 auto; width: 28px; height: 28px; color: var(--blue-700); }
  .safety-banner p, .notice p { margin-top: 5px; }
  .alert-section { padding: 40px 0 0; }
  .notice { border-color: rgba(54,219,154,.35); background: #f3fffa; }

  .purchase-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .flow-step { position: relative; min-height: 220px; padding: 24px; border-radius: 20px; background: var(--navy-950); overflow: hidden; }
  .flow-step::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 100px; height: 100px; border: 1px solid rgba(95,223,255,.16); border-radius: 50%; box-shadow: 0 0 0 18px rgba(95,223,255,.04); }
  .flow-step > b { color: var(--green-300); font-size: .76rem; letter-spacing: .14em; }
  .flow-step h3 { margin: 34px 0 10px; color: white; }
  .flow-step p { color: #95b7c8; font-size: .87rem; }
  .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .product-card { display: flex; flex-direction: column; min-height: 390px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-soft); }
  .product-card > span { color: var(--blue-700); font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
  .product-gem { width: 80px; height: 80px; margin: 28px auto; clip-path: polygon(50% 0, 88% 22%, 100% 63%, 72% 100%, 28% 100%, 0 63%, 12% 22%); background: linear-gradient(145deg, #d8fbff 8%, var(--cyan-500) 40%, var(--blue-700) 78%, var(--navy-900)); box-shadow: inset 12px 10px 18px rgba(255,255,255,.48); filter: drop-shadow(0 15px 16px rgba(7,157,226,.24)); }
  .product-card h3 { min-height: 2.5em; }
  .product-card strong { margin-top: 12px; color: var(--navy-900); font-size: 1.12rem; }
  .product-card p { margin: 10px 0 20px; font-size: .85rem; }
  .product-card button { margin-top: auto; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky-100); color: var(--muted); font-weight: 800; }

  .empty-state { display: grid; justify-items: center; padding: 70px 24px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.78); text-align: center; box-shadow: var(--shadow-soft); }
  .empty-state .feature-icon { margin-bottom: 18px; }
  .empty-state p { margin: 10px 0 22px; }

  .site-footer { padding: 72px 0 24px; background: var(--navy-950); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr 1fr; gap: 54px; }
  .brand-footer b { color: white; }
  .footer-grid > div:first-child > p { max-width: 380px; margin-top: 18px; color: #83a7b8; font-size: .88rem; }
  .footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 10px; }
  .footer-grid > div > b { color: white; }
  .footer-grid a:not(.brand) { color: #88a9ba; font-size: .86rem; transition: color .2s ease; }
  .footer-grid a:not(.brand):hover { color: var(--cyan-500); }
  .footer-state { padding: 20px; border: 1px solid rgba(122,229,255,.12); border-radius: 18px; background: rgba(255,255,255,.04); }
  .footer-state .status-dot { display: inline-block; margin-right: 8px; }
  .footer-state p { color: #7398aa; font-size: .8rem; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #618697; font-size: .74rem; }
}

@layer motion {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero-copy.reveal { transition-delay: .08s; }
  .hero-visual.reveal { transition-delay: .16s; }
  .hero-visual-topic img { animation: drift 7s ease-in-out infinite; }
  .visual-halo { animation: breathe 5s ease-in-out infinite; }
  @keyframes drift { 0%,100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
  @keyframes breathe { 0%,100% { opacity: .66; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
}

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: absolute; top: 70px; right: 20px; width: min(330px, calc(100vw - 40px)); display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { padding: 12px 14px; border-radius: 12px; color: var(--navy-800); font-weight: 750; }
  .mobile-nav a[aria-current="page"] { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-page .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .story-grid { gap: 42px; }
  .product-grid, .purchase-flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr .7fr .7fr; }
  .footer-state { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(calc(100% - 28px), 680px); --radius-xl: 24px; }
  .nav-shell { height: 68px; }
  .nav-status { display: none; }
  .hero-home, .hero-page { min-height: 0; padding: 112px 0 72px; }
  .hero-grid, .hero-page .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-home .hero-grid { min-height: 650px; align-items: start; }
  .hero-sky { background-position: 67% 55%; }
  .hero-sky::after { background: linear-gradient(180deg, rgba(235,249,255,.99) 0%, rgba(230,249,255,.94) 38%, rgba(223,247,255,.32) 75%, rgba(223,247,255,.12)); }
  .hero h1, .hero-page h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-visual-main { display: none; }
  .hero-visual-topic { min-height: 300px; order: -1; margin-top: -25px; }
  .hero-visual-topic img { width: min(88%, 370px); }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 32px; }
  .card-grid, .status-panel, .race-grid, .link-demo, .footer-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .status-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .story-grid { gap: 48px; }
  .race-card { grid-template-columns: 66px 1fr; gap: 16px; }
  .race-orb { width: 62px; height: 62px; border-radius: 21px 21px 28px 28px; }
  .steps li, .rule-row { grid-template-columns: 58px 1fr; gap: 16px; }
  .link-demo { padding: 16px; }
  .purchase-flow, .product-grid { grid-template-columns: 1fr; }
  .flow-step { min-height: 190px; }
  .product-card { min-height: 340px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* Storefront v2: category-first navigation, product details, web inventory. */
.store-category-heading { margin: 38px 0 20px; }
.store-category-heading > span { color: #67e5ff; font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.store-category-heading h3 { margin: 8px 0 4px; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.store-category-heading p { margin: 0; color: #aebbd8; }
.category-showcase button.is-active { border-color: #67e5ff; box-shadow: 0 0 0 2px rgba(89,224,255,.2), 0 18px 50px rgba(61,91,255,.18); transform: translateY(-3px); }
.product-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.product-modal[hidden] { display: none; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,22,.82); backdrop-filter: blur(12px); }
.product-modal-card { position: relative; z-index: 1; width: min(980px,100%); max-height: min(88vh,900px); overflow: auto; border: 1px solid rgba(115,145,255,.38); border-radius: 28px; padding: clamp(24px,4vw,48px); background: linear-gradient(145deg,#121943 0%,#0b0e2a 72%); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.pool-reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 26px 0; }
.pool-reward-grid article { display: grid; grid-template-columns: 1fr; align-content: start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid rgba(115,145,255,.22); border-radius: 18px; background: rgba(14,21,59,.72); }
.pool-reward-grid img { width: 100%; height: 154px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 24px rgba(0,0,20,.5)); }
.pool-reward-grid div { display: grid; gap: 3px; }
.pool-reward-grid span,.pool-reward-grid small { color: #aebbd8; }
.pool-policy { padding: 18px; border-radius: 16px; border: 1px solid rgba(86,223,255,.35); background: rgba(53,111,155,.13); }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; }
.inventory-card { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; min-height: 150px; padding: 18px; border: 1px solid rgba(115,145,255,.28); border-radius: 20px; background: linear-gradient(145deg,rgba(22,31,82,.9),rgba(10,13,42,.92)); }
.inventory-card img { width: 104px; height: 104px; object-fit: contain; image-rendering: pixelated; }
.inventory-card h3 { margin: 0 0 6px; }
.inventory-card p { color: #aebbd8; }
.inventory-card .button { width: 100%; margin-top: 10px; }
.redeem-form { max-width: 760px; padding: clamp(24px,4vw,42px); border: 1px solid rgba(115,145,255,.28); border-radius: 24px; background: rgba(17,24,66,.82); }
.redeem-form > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 10px; }
.redeem-form input { min-height: 54px; border: 1px solid rgba(115,145,255,.32); border-radius: 14px; padding: 0 16px; background: #090d2d; color: white; font: inherit; text-transform: uppercase; }
@media (max-width: 680px) { .redeem-form > div { grid-template-columns: 1fr; } .inventory-card { grid-template-columns: 82px 1fr; } .inventory-card img { width:82px;height:82px; } }

/* Account, wallet and commerce shell */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.account-widget { position: relative; z-index: 50; }
.account-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px 5px 6px;
  border: 1px solid rgba(132,164,255,.22); border-radius: 999px; background: rgba(7,11,37,.62);
  color: #e9f3ff; font: 700 .78rem "Anuphan", sans-serif; cursor: pointer;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: rgba(100,224,255,.5); background: rgba(30,43,93,.88); }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#2e8eff,#a94ee8); box-shadow: 0 0 22px rgba(88,178,255,.35); }
.account-avatar .icon { width: 16px; height: 16px; }
.account-trigger strong { color: #f4d87d; font: 800 .73rem "Chakra Petch", sans-serif; }
.account-trigger strong::after { content: " Z"; color: #6fe4ff; }
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 270px; padding: 10px;
  border: 1px solid rgba(133,164,255,.25); border-radius: 18px;
  background: rgba(8,12,39,.97); box-shadow: 0 24px 65px rgba(0,0,20,.55); backdrop-filter: blur(20px);
}
.account-dropdown[hidden] { display: none; }
.account-dropdown-head { display: grid; gap: 2px; padding: 10px 12px 13px; border-bottom: 1px solid rgba(132,164,255,.14); }
.account-dropdown-head b { color: #fff; }
.account-dropdown-head span { color: #f0d37b; font-size: .78rem; }
.account-dropdown a, .account-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px;
  background: transparent; color: #bfccea; font: 650 .82rem "Anuphan", sans-serif; text-align: left; text-decoration: none; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: rgba(102,132,255,.13); color: #fff; }
.account-dropdown .icon { width: 17px; height: 17px; color: #68ddff; }

.account-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.account-modal[hidden] { display: none; }
.account-modal-backdrop { position: absolute; inset: 0; background: rgba(2,4,18,.78); backdrop-filter: blur(10px); }
.account-modal-card {
  position: relative; z-index: 1; width: min(560px,100%); padding: 34px;
  border: 1px solid rgba(112,205,255,.28); border-radius: 28px;
  background: radial-gradient(circle at 80% 0,rgba(115,61,225,.25),transparent 45%),linear-gradient(145deg,#12194a,#090d2c);
  box-shadow: 0 36px 100px rgba(0,0,20,.7),0 0 70px rgba(72,137,255,.14);
}
.account-modal-card h2 { margin: 6px 0 10px; font-size: clamp(1.7rem,4vw,2.5rem); }
.account-modal-card > p:not(.eyebrow) { color: #aebcdb; line-height: 1.7; }
.account-modal-card code { color: #70e2ff; }
.modal-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }
.modal-close .icon { width: 18px; }
.account-modal-card form label { display: block; margin-bottom: 8px; color: #92a5ca; font-size: .8rem; font-weight: 700; }
.account-modal-card form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.account-modal-card input { min-width: 0; padding: 14px 16px; border: 1px solid rgba(132,164,255,.27); border-radius: 13px; background: rgba(4,8,29,.72); color: #fff; font: 800 1.05rem "Chakra Petch",sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.modal-status { margin-bottom: 0; font-size: .78rem; }
.modal-open { overflow: hidden; }

.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.category-showcase { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.category-showcase button { display: grid; grid-template-rows: 150px auto; gap: 12px; min-width: 0; padding: 14px; border: 1px solid rgba(132,164,255,.18); border-radius: 20px; background: linear-gradient(145deg,rgba(22,30,73,.85),rgba(9,13,42,.9)); color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.category-showcase button:hover { transform: translateY(-4px); border-color: rgba(100,222,255,.45); box-shadow: 0 20px 45px rgba(0,0,25,.28); }
.category-showcase img { width: 100%; height: 150px; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(0,0,18,.45)); }
.category-showcase span { display: grid; gap: 3px; }
.category-showcase b { font: 800 .9rem "Chakra Petch",sans-serif; }
.category-showcase small { color: #91a2c2; line-height: 1.45; }
.product-card[hidden] { display: none !important; }
[data-store-catalog][hidden], .cart-panel[hidden], .store-category-heading[hidden] { display: none !important; }
.pool-order-preview { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 14px; border: 1px solid rgba(134,155,255,.18); border-radius: 14px; background: rgba(7,12,38,.55); }
.pool-order-preview button { width: 38px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(72,112,196,.1); color: #8795b4; }
.pool-order-preview span { margin-left: 6px; color: #93a6ca; font-size: .82rem; }
.category-tabs button { padding: 11px 17px; border: 1px solid rgba(132,164,255,.22); border-radius: 999px; background: rgba(23,32,76,.65); color: #aebbd8; font: 700 .8rem "Anuphan",sans-serif; cursor: pointer; }
.category-tabs button:hover, .category-tabs button.is-active { border-color: rgba(103,221,255,.5); background: linear-gradient(135deg,#367fff,#9751df); color: #fff; box-shadow: 0 10px 28px rgba(70,108,255,.22); }

.account-dashboard { display: grid; gap: 24px; padding: 28px; border: 1px solid rgba(134,155,255,.2); border-radius: 26px; background: linear-gradient(145deg,rgba(20,28,69,.94),rgba(8,12,39,.94)); }
.account-identity { display: flex; align-items: center; gap: 18px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 70px; height: 70px; border-radius: 22px; background: linear-gradient(135deg,#25c5ff,#784ff4); color: #fff; font: 800 2rem "Chakra Petch",sans-serif; box-shadow: 0 15px 45px rgba(44,157,255,.27); }
.account-identity p, .account-identity h3 { margin: 0; }
.account-identity p { color: #77dcff; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.account-identity h3 { font-size: 1.6rem; }
.account-identity code { color: #8295bc; font-size: .75rem; }
.account-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.account-metrics > div { padding: 18px; border: 1px solid rgba(134,155,255,.14); border-radius: 17px; background: rgba(5,9,32,.47); }
.account-metrics span { display: block; color: #899bbf; font-size: .76rem; }
.account-metrics b { display: block; margin-top: 5px; color: #f3d779; font-size: 1.55rem; }
.account-settings { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid rgba(134,155,255,.13); color: #a8b7d5; font-size: .82rem; }
.account-settings label { display: flex; align-items: center; gap: 8px; }
.account-settings input { width: 18px; height: 18px; accent-color: #687cff; }
.account-settings p { width: 100%; margin: 0; color: #6fe4ff; }
.account-empty { text-align: center; padding: 35px; }
.account-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.account-tool-grid a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 13px; min-height: 128px; padding: 22px; border: 1px solid rgba(134,155,255,.18); border-radius: 20px; background: rgba(14,20,55,.72); color: #fff; text-decoration: none; }
.account-tool-grid a:hover { transform: translateY(-3px); border-color: rgba(104,222,255,.45); }
.account-tool-grid .icon { grid-row: 1/3; width: 30px; height: 30px; color: #65dfff; }
.account-tool-grid span { color: #91a2c3; font-size: .8rem; }

.topup-page { display: grid; gap: 22px; }
.topup-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.topup-presets button { display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(134,155,255,.2); border-radius: 17px; background: rgba(17,24,63,.8); color: #fff; text-align: left; cursor: pointer; }
.topup-presets button:hover, .topup-presets button.is-active { border-color: #62dcff; background: linear-gradient(145deg,rgba(45,111,217,.55),rgba(100,55,188,.55)); box-shadow: 0 12px 35px rgba(45,108,240,.2); }
.topup-presets b { font: 800 1.3rem "Chakra Petch",sans-serif; }
.topup-presets span { color: #a9b8d6; font-size: .76rem; }
.topup-page > form { display: grid; gap: 14px; padding: 26px; border: 1px solid rgba(134,155,255,.2); border-radius: 22px; background: rgba(13,19,53,.8); }
.topup-page form > label { color: #a9b8d4; font-size: .83rem; font-weight: 700; }
.topup-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid rgba(132,164,255,.24); border-radius: 14px; background: rgba(4,8,29,.7); }
.topup-input span { color: #f2d57a; font: 800 1.2rem "Chakra Petch",sans-serif; }
.topup-input input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: #fff; font: 800 1.1rem "Chakra Petch",sans-serif; }
.topup-quote { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(42,70,142,.2); color: #aabada; }
.topup-quote span { margin-right: 12px; }
.topup-quote b { color: #6fe4ff; }
.topup-quote strong { margin-left: auto; color: #f3d779; }

.hero-home .hero-visual-main::before, .hero-home .hero-visual-main::after { content: ""; position: absolute; pointer-events: none; z-index: 3; border-radius: 50%; filter: blur(18px); mix-blend-mode: screen; }
.hero-home .hero-visual-main::before { width: 28%; aspect-ratio: 1; right: 29%; top: 30%; background: radial-gradient(circle,rgba(103,238,255,.75),rgba(73,113,255,.16) 45%,transparent 70%); animation: heroPulse 4.8s ease-in-out infinite; }
.hero-home .hero-visual-main::after { width: 20%; aspect-ratio: 1; right: 4%; top: 8%; background: radial-gradient(circle,rgba(185,103,255,.45),transparent 68%); animation: heroPulse 6.2s ease-in-out infinite reverse; }
.hero-visual img { transform: translate3d(var(--mx,0),var(--my,0),0); transition: transform .25s ease-out,filter .35s ease; }
.hero-home .hero-visual img { filter: saturate(1.06) contrast(1.04) drop-shadow(0 0 26px rgba(76,174,255,.16)); }
@keyframes heroPulse { 0%,100% { opacity:.45; transform:scale(.88); } 50% { opacity:.95; transform:scale(1.14); } }

@media (prefers-reduced-motion: reduce) { .hero-home .hero-visual-main::before,.hero-home .hero-visual-main::after { animation: none; } }
@media (max-width: 900px) {
  .account-trigger [data-account-label], .account-trigger strong { display: none; }
  .account-trigger { padding-right: 6px; }
  .account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-tool-grid { grid-template-columns: 1fr; }
  .topup-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .account-modal-card { padding: 28px 20px 22px; }
  .account-modal-card form > div { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: 1fr; }
  .account-identity { align-items: flex-start; }
  .account-identity code { word-break: break-all; }
  .topup-presets { grid-template-columns: 1fr 1fr; }
  .topup-quote { display: grid; }
  .topup-quote strong { margin-left: 0; }
  .category-showcase { grid-template-columns: 1fr 1fr; }
  .category-showcase button { grid-template-rows: 105px auto; padding: 10px; }
  .category-showcase img { height: 105px; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-trust { gap: 10px; }
  .hero-trust span { width: 100%; }
  .race-card { align-items: start; padding: 20px; }
  .timeline { padding-left: 29px; }
  .timeline-item::before { left: -25px; }
  .timeline::before { left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* AudZap Nebula V4 — dark blue/violet galaxy theme */
:root {
  color-scheme: dark;
  --navy-950: #06081c;
  --navy-900: #0b1030;
  --navy-800: #131b45;
  --blue-700: #4d7cff;
  --blue-600: #559dff;
  --cyan-500: #48ddff;
  --cyan-200: #b7f4ff;
  --green-500: #51e4b5;
  --green-300: #91f5d1;
  --sky-100: #111735;
  --sky-50: #080b22;
  --white: #f6f8ff;
  --ink: #f3f6ff;
  --muted: #a9b7d6;
  --line: rgba(139, 157, 255, .18);
  --shadow: 0 34px 90px rgba(0, 0, 18, .48);
  --shadow-soft: 0 18px 50px rgba(0, 0, 22, .28);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(54, 111, 255, .13), transparent 26rem),
    radial-gradient(circle at 92% 34%, rgba(147, 78, 255, .11), transparent 28rem),
    #080b22;
  color: var(--ink);
  font-family: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(100,190,255,.5) 0 1px, transparent 1.5px);
  background-position: 0 0, 41px 27px;
  background-size: 83px 83px, 113px 113px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

h1, h2, h3, .brand b, .button, .desktop-nav a, .kicker, .eyebrow {
  font-family: "Chakra Petch", "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
}

h1, h2, h3 { color: #f5f7ff; }
p { color: var(--muted); }
::selection { background: #7657e8; color: #fff; }
:focus-visible { outline-color: #77e9ff; }

.site-header { border-bottom-color: rgba(255,255,255,.04); }
.site-header.is-scrolled {
  background: rgba(7, 9, 29, .82);
  border-color: rgba(125,151,255,.17);
  box-shadow: 0 10px 35px rgba(0,0,20,.34);
  backdrop-filter: blur(22px) saturate(135%);
}
.brand img {
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(120,210,255,.22), 0 9px 26px rgba(72,107,255,.32);
  filter: none;
}
.brand b { color: #f7f8ff; }
.brand small { color: #72dfff; }
.desktop-nav {
  border-color: rgba(154,174,255,.18);
  background: rgba(11,15,43,.65);
  box-shadow: 0 12px 30px rgba(0,0,25,.22);
}
.desktop-nav a { color: #c3cce5; }
.desktop-nav a:hover { color: #fff; background: rgba(119,132,230,.15); }
.desktop-nav a[aria-current="page"] {
  background: linear-gradient(135deg, #327eff, #7658e8 70%, #b75cff);
  box-shadow: 0 10px 28px rgba(78,94,255,.36);
}
.nav-status { color: #c2cee8; }
.menu-toggle { border: 1px solid var(--line); background: rgba(17,23,54,.95); }
.menu-toggle span { background: #d8e1ff; }

.hero-home { min-height: 820px; background: #080b22; }
.hero-page {
  min-height: 650px;
  background:
    radial-gradient(circle at 78% 40%, rgba(95,76,255,.24), transparent 24rem),
    radial-gradient(circle at 16% 25%, rgba(41,145,255,.14), transparent 25rem),
    linear-gradient(145deg, #090d28, #11143b 56%, #140c35);
}
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background: repeating-linear-gradient(120deg, transparent 0 70px, rgba(98,120,255,.08) 71px, transparent 72px 140px);
}
.hero-sky { background: url("assets/visuals/nebula-hero-v1.webp") 60% 50% / cover no-repeat; }
.hero-sky::after {
  background:
    radial-gradient(circle at 72% 42%, rgba(75,50,190,.05), rgba(6,8,28,.22) 48%, transparent 70%),
    linear-gradient(90deg, rgba(6,8,28,.99) 0%, rgba(8,11,35,.95) 27%, rgba(12,12,46,.56) 49%, rgba(8,10,31,.14) 78%, rgba(5,7,24,.22) 100%);
}
.hero-fade { height: 190px; background: linear-gradient(transparent, #080b22); }
.hero h1 span {
  background: linear-gradient(100deg, #58a7ff 4%, #55e7ff 44%, #9b6dff 76%, #db75ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lead { color: #bac7e4; text-shadow: 0 2px 20px rgba(0,0,18,.48); }
.hero-trust span { color: #b8c7e5; }
.hero-trust .icon { color: #6fe8ff; }
.eyebrow { color: #73dfff; }
.eyebrow::before { background: linear-gradient(90deg, #4b8fff, #9b65ff, #57e5e8); }
.hero-visual-topic { min-height: 420px; }
.hero-visual-topic img {
  width: min(100%, 455px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 28px 36px rgba(1,2,20,.58)) drop-shadow(0 0 28px rgba(90,82,255,.24));
}
.visual-halo {
  inset: 7%;
  background: radial-gradient(circle, rgba(71,219,255,.28), rgba(126,77,255,.18) 44%, transparent 70%);
  filter: blur(22px);
}

.section + .section { border-color: rgba(127,146,230,.08); }
.tint-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(55,146,255,.12), transparent 28rem),
    linear-gradient(125deg, rgba(13,19,52,.82), rgba(21,13,54,.78));
}
.story-section { background: linear-gradient(135deg, #080b22, #10143a 55%, #171038); }
.story-copy > p:not(.eyebrow) { color: #aab8d6; }

.button-primary {
  background: linear-gradient(135deg, #2f86ff, #6f5ce8 62%, #a54ed6);
  box-shadow: 0 14px 36px rgba(70,84,255,.35);
}
.button-secondary {
  border-color: rgba(143,165,255,.23);
  background: rgba(18,24,59,.72);
  color: #dce5ff;
}
.text-link { color: #65e7ff; }

.feature-card, .status-panel, .race-card, .timeline-item, .safety-banner, .notice, .link-demo, .product-card, .empty-state {
  border-color: rgba(134,155,255,.18);
  background: linear-gradient(145deg, rgba(20,27,67,.9), rgba(12,16,46,.9));
  box-shadow: 0 20px 52px rgba(0,0,23,.27), inset 0 1px rgba(255,255,255,.025);
}
.feature-card::after { border-color: rgba(88,205,255,.2); box-shadow: 0 0 0 26px rgba(90,82,255,.05), 0 0 0 52px rgba(191,86,255,.035); }
.feature-icon { background: linear-gradient(145deg, rgba(72,161,255,.22), rgba(139,83,255,.17)); color: #79e6ff; box-shadow: inset 0 0 0 1px rgba(113,191,255,.22), 0 0 24px rgba(75,103,255,.13); }
.kicker, .feature-meta { color: #6edfff; }

.journey::before { background: linear-gradient(#4dcfff, #8f5eff, #50e4c0); }
.journey-step { border-color: rgba(137,160,255,.16); background: rgba(255,255,255,.035); }
.journey-step b { border-color: rgba(108,222,255,.32); background: #0d1232; color: #6ce7ff; }
.journey-step p { color: #94a7ca; }
.status-panel > div + div { border-color: var(--line); }

.race-grid { gap: 22px; }
.race-card {
  grid-template-columns: 156px 1fr;
  gap: 24px;
  min-height: 360px;
  padding: 20px;
  align-items: start;
  overflow: hidden;
}
.race-emblem-wrap { position: relative; }
.race-emblem {
  width: 156px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(159,181,255,.22);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(0,0,22,.42), 0 0 28px color-mix(in srgb, var(--tone), transparent 78%);
}
.race-emblem-wrap > span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(5,8,26,.72);
  color: #fff;
  font: 700 .65rem "Chakra Petch", sans-serif;
  backdrop-filter: blur(8px);
}
.race-content h3 { margin: 7px 0 8px; }
.race-stats { margin-bottom: 10px; color: #85e6ff !important; font-size: .78rem !important; font-weight: 700; }
.race-skills { display: grid; gap: 6px; margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.race-skills li { position: relative; padding-left: 15px; color: #aebbd8; font-size: .78rem; line-height: 1.52; }
.race-skills li::before { content: "✦"; position: absolute; left: 0; color: var(--tone); }
.tone-void { --tone: #a45cff; }
.tone-frost { --tone: #62dfff; }
.tone-aqua { --tone: #48cfff; }

.steps li, .rule-row { border-color: var(--line); }
.steps li > b, .rule-row > b { color: #6fcbff; }
.link-demo > div { background: rgba(7,12,38,.68); }
.link-demo strong, .code-box b { color: #f3f6ff; }
.timeline::before { background: linear-gradient(#4f97ff, #9360f3); }
.timeline-item::before { border-color: #080b22; background: #745cff; }
.timeline-tag.ready { background: rgba(52,211,153,.14); color: #7ff0c8; }
.timeline-tag.test { background: rgba(65,181,255,.15); color: #83d9ff; }
.timeline-tag.plan { background: rgba(160,174,216,.12); color: #bac5df; }
.notice { background: rgba(17,28,56,.86); }

.flow-step { background: linear-gradient(145deg, #0d1338, #15103d); border: 1px solid rgba(137,154,255,.13); }
.flow-step > b { color: #6ce7ff; }
.flow-step p { color: #96a7c9; }
.product-card { min-height: 500px; }
.product-card > span { color: #70ddff; }
.product-art {
  width: 100%;
  aspect-ratio: 1.28;
  margin: 18px 0 22px;
  border: 0;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(1,2,20,.48));
}
.product-card strong { color: #f0f4ff; }
.product-card button { border-color: var(--line); background: rgba(72,112,196,.1); color: #8795b4; }
.catalog-only { position: relative; }
.catalog-only .catalog-subtitle { margin-bottom: 8px; color: #b8c7e6; font-size: .86rem; }
.catalog-only .catalog-price { margin: 2px 0 10px; color: #f2d67e; font-size: 1.05rem; }
.catalog-state {
  margin-top: auto;
  padding: 11px 13px;
  border: 1px solid rgba(134,155,255,.18);
  border-radius: 12px;
  background: rgba(7,12,38,.6);
  color: #9cadd0;
  font-size: .76rem;
  line-height: 1.45;
}
.catalog-state.state-server_verified { border-color: rgba(72,221,255,.25); color: #72dcf7; }
.catalog-state.state-asset_check_required { border-color: rgba(255,194,96,.25); color: #f1c578; }
.pixel-product-art { image-rendering: pixelated; image-rendering: crisp-edges; }
.product-gem { display: none; }

.site-footer { background: #050716; border-top: 1px solid rgba(127,147,230,.1); }
.footer-grid > div:first-child > p, .footer-grid a:not(.brand) { color: #8495b9; }
.footer-state { border-color: rgba(131,157,255,.14); background: rgba(255,255,255,.025); }

@media (max-width: 1040px) {
  .mobile-nav { border-color: var(--line); background: rgba(9,12,36,.98); box-shadow: var(--shadow); }
  .mobile-nav a { color: #c7d1ea; }
  .mobile-nav a[aria-current="page"] { background: linear-gradient(135deg, #2e80ff, #7657e8); }
  .race-card { grid-template-columns: 126px 1fr; }
  .race-emblem { width: 126px; }
}

@media (max-width: 760px) {
  .hero-sky { background-position: 66% 50%; }
  .hero-sky::after { background: linear-gradient(180deg, rgba(6,8,28,.98) 0%, rgba(8,11,35,.90) 40%, rgba(8,10,31,.36) 74%, rgba(8,11,34,.74)); }
  .hero-page .hero-visual-topic { order: initial; margin-top: 8px; }
  .hero-visual-topic img { width: min(86%, 360px); border-radius: 26px; }
  .race-card { grid-template-columns: 92px 1fr; min-height: 0; gap: 16px; }
  .race-emblem { width: 92px; border-radius: 18px; }
  .race-skills { grid-column: 1 / -1; }
  .product-card { min-height: 0; }
  .status-panel > div + div { border-left: 0; border-top-color: var(--line); }
}

@media (max-width: 500px) {
  .race-card { grid-template-columns: 74px 1fr; padding: 16px; }
  .race-emblem { width: 74px; border-radius: 15px; }
  .race-emblem-wrap > span { left: 6px; bottom: 6px; }
  .race-content > p:not(.kicker):not(.race-stats) { grid-column: 1 / -1; }
}

/* Live ZapCoin store ------------------------------------------------------ */
.store-link-panel,
.cart-panel,
.donor-board {
  border: 1px solid rgba(134,155,255,.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20,27,67,.92), rgba(12,16,46,.92));
  box-shadow: 0 20px 52px rgba(0,0,23,.27);
}
.store-link-panel { display: grid; gap: 16px; padding: 26px; }
.store-link-panel form > label { display: block; margin-bottom: 10px; color: #9fadd0; font-size: .82rem; font-weight: 700; }
.store-link-panel form > div { display: flex; gap: 10px; }
.store-link-panel input,
.store-link-panel textarea {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  border: 1px solid rgba(132,164,255,.25);
  border-radius: 13px;
  background: rgba(5,9,31,.72);
  color: #fff;
  font: 700 1.05rem "Chakra Petch", sans-serif;
  letter-spacing: .12em;
}
.store-link-panel [data-link-form] input { letter-spacing: .12em; text-transform: uppercase; }
.store-link-panel input[type="number"] { letter-spacing: 0; }
.store-link-panel input[type="file"] { width: 100%; font: inherit; letter-spacing: 0; }
.store-link-panel textarea { width: 100%; resize: vertical; font: 500 .85rem/1.5 monospace; letter-spacing: 0; }
.store-link-panel input:focus { outline: 2px solid #61dbff; outline-offset: 2px; }
.store-link-panel > p { margin: 0; color: #9fc2df; }
.donor-optin { display: flex; align-items: center; gap: 9px; color: #b8c8e7; font-size: .84rem; }
.donor-optin input { flex: none; width: 18px; height: 18px; accent-color: #6a7fff; }

.product-card button:not([disabled]) { border-color: rgba(88,222,255,.36); background: linear-gradient(135deg, #2f86ff, #7658e8); color: #fff; cursor: pointer; }
.product-card button:not([disabled]):hover { filter: brightness(1.12); }
.product-card.is-product-locked { border-color: rgba(135,151,202,.2); }
.product-card.is-product-locked .product-art { opacity: .72; }
.product-card.is-product-locked button:disabled { cursor: not-allowed; opacity: .7; }
.cart-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 24px 26px; }
.cart-copy { flex: 1; min-width: 0; }
.cart-panel span { color: #6fe4ff; font: 800 .68rem "Chakra Petch", sans-serif; letter-spacing: .14em; }
.cart-panel h3 { margin: 5px 0; }
.cart-panel p { margin: 0; }
.cart-panel small { display: block; max-width: 760px; margin-top: 10px; color: #8999bd; line-height: 1.55; }
.cart-total { margin-top: 12px !important; color: #f0d37b; font-weight: 800; }
.cart-panel button { flex: 0 0 auto; }
.cart-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(134,155,255,.12); }
.cart-row > span { color: #dce7ff; font: 700 .88rem "Anuphan", sans-serif; letter-spacing: 0; }
.cart-controls { display: flex; align-items: center; gap: 7px; }
.cart-controls button { min-width: 34px; min-height: 32px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(72,112,196,.13); color: #fff; cursor: pointer; }
.cart-controls .cart-remove { color: #ff9aa8; }
.cart-fixed-qty { color: #9fb0d5; white-space: nowrap; }
.cart-controls button:disabled { cursor: not-allowed; opacity: .42; }

.pool-reward-grid article,
.pool-reveal-grid article { min-height: 132px; }
.pool-reward-grid article img,
.pool-reveal-grid article img {
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 20px rgba(0,0,20,.48));
}
.pool-reward-grid article img { width: 100%; height: 154px; }
.pool-reveal-grid article img { width: 112px; height: 112px; flex: 0 0 112px; }
.pool-order-preview button:not(:disabled),
.pool-policy [data-pool-buy]:not(:disabled) { cursor: pointer; }
.pool-reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 12px;
  margin-top: 18px;
}
.pool-reveal-grid[hidden] { display: none; }
.wallet-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 18px; border: 1px solid rgba(93,223,255,.22); border-radius: 17px; background: rgba(6,12,40,.62); }
.wallet-summary span { color: #70ddff; font: 800 .68rem "Chakra Petch", sans-serif; letter-spacing: .14em; }
.wallet-summary strong { color: #f2d67e; font-size: 2rem; }
.wallet-summary small { margin-left: auto; color: #8fa5c9; }
.topup-form { padding-top: 16px; border-top: 1px solid rgba(134,155,255,.13); }
.topup-result { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 22px; border: 1px solid rgba(98,229,255,.24); border-radius: 18px; background: rgba(5,9,31,.72); }
.topup-result svg { display: block; max-width: 230px; height: auto; border: 10px solid white; border-radius: 14px; }
.topup-result p { margin: 7px 0 16px; }
.topup-result form { display: grid; gap: 10px; margin: 14px 0; }
.topup-result details { color: #9badd0; }
.topup-result summary { cursor: pointer; }
.history-panel { margin-top: 22px; padding: 22px; border: 1px solid rgba(134,155,255,.18); border-radius: 20px; background: rgba(10,15,44,.76); }
.history-list { display: grid; gap: 8px; }
.history-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(134,155,255,.11); }
.history-list span { color: #aebbd8; }
.history-list b { color: #f0d37b; text-align: right; }
.catalog-loading { grid-column: 1 / -1; padding: 40px; text-align: center; }
.donor-board { min-height: 100px; padding: 22px; }
.donor-board > p { margin: 0; text-align: center; }
.donor-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.donor-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); }
.donor-list b { color: #6fe4ff; font-family: "Chakra Petch", sans-serif; }
.donor-list strong { color: #f0d37b; }

@media (max-width: 760px) {
  .pool-reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pool-reward-grid img { height: 132px; }
  .store-link-panel form > div, .cart-panel { align-items: stretch; flex-direction: column; }
  .cart-panel button { width: 100%; }
  .topup-result { grid-template-columns: 1fr; }
  .topup-result svg { margin-inline: auto; }
  .cart-row, .history-list > div { grid-template-columns: 1fr; }
  .cart-controls { flex-wrap: wrap; }
  .wallet-summary small { width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
  .pool-reward-grid { grid-template-columns: 1fr; }
  .pool-reward-grid img { height: 170px; }
}
