:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --base: #0B0D12;
  --panel: #101827;
  --raised: #1A2435;
  --hover: #263044;
  --text: #F6F0E4;
  --muted: #BAB6AD;
  --line: #3A3A3A;
  --control-line: #827C70;
  --accent: #D4A84F;
  --highlight: #F3CD79;
  --hold: #2E2517;
  color: var(--text);
  background: var(--base);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .66; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--panel); color: var(--highlight); }

.top { border-bottom: 1px solid var(--line); background: var(--base); }
.top nav { display: flex; align-items: center; min-height: 72px; gap: 2.3rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--highlight); font-size: 1.32rem; font-weight: 760; letter-spacing: -.045em; }
.wordmark img { border-radius: 8px; }
.site-links, .header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-actions { margin-left: auto; }
.site-links > a, #category-toggle, #catalog-fallback { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .55rem; font-weight: 650; font-size: .94rem; }
.site-links > a:hover, #category-toggle:hover, #catalog-fallback:hover { color: var(--accent); }
#category-toggle { gap: .6rem; color: inherit; border: 0; background: transparent; border-radius: 6px; }
.chevron { width: .48rem; height: .48rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
#category-toggle[aria-expanded="true"] .chevron { transform: translateY(2px) rotate(225deg); }
.category-menu { position: relative; }
.category-options { position: absolute; top: calc(100% + .25rem); left: 0; z-index: 3; width: max-content; max-width: calc(100vw - 2rem); margin: 0; padding: .4rem; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 28px #0006; }
.category-options a { display: block; padding: .72rem .8rem; min-height: 44px; border-radius: 6px; font-size: .94rem; }
.category-options a:hover, .category-options a[aria-current="true"] { background: var(--hover); color: var(--highlight); }
.language-toggle { flex: none; min-height: 44px; padding: .35rem .7rem; border: 1px solid var(--control-line); border-radius: 8px; color: inherit; background: var(--panel); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.language-toggle:hover { background: var(--hover); }
.language-toggle [lang] { color: var(--muted); }
.language-toggle[data-current="vi"] [lang="vi"], .language-toggle[data-current="en"] [lang="en"] { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }

.intro {
  margin-top: clamp(1.25rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4.9vw, 4rem);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px #D4A84F4D;
  background:
    radial-gradient(ellipse 90% 105% at 106% 136%, transparent 69%, #D4A84F30 69.6%, transparent 71%, transparent 76%, #D4A84F20 76.5%, transparent 78%),
    radial-gradient(ellipse at 100% 100%, #D4A84F1F, transparent 66%),
    linear-gradient(125deg, var(--base), var(--panel) 70%);
}
.platform { margin: 0 0 1.1rem; color: var(--muted); font-size: .83rem; font-weight: 700; letter-spacing: .045em; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.65rem, 5.1vw, 4.75rem); letter-spacing: -.06em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.04em; line-height: 1.16; }
h3 { font-size: 1.17rem; letter-spacing: -.025em; line-height: 1.25; }
.intro h1 { color: var(--highlight); }
.hero-description { max-width: 38ch; color: var(--text); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.6; margin: 1.15rem 0 1.55rem; }
.hero-preview { margin: 0; min-width: 0; padding: .65rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 26px #0005; }
.hero-preview img { display: block; width: 100%; height: auto; border-radius: 7px; }
.hero-preview figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; padding: .65rem .25rem .15rem; color: var(--muted); font-size: .79rem; }
.hero-preview figcaption span:first-child { color: var(--text); font-weight: 650; }

#catalog { margin-top: clamp(2.6rem, 6vw, 4.6rem); scroll-margin-top: 1.25rem; }
.catalog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.1rem 1.6rem; margin-bottom: 1.4rem; }
.catalog-heading p, .help p, .site-status { color: var(--muted); line-height: 1.55; }
.catalog-heading p { margin: .55rem 0 0; }
.filters { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(11rem, .8fr); gap: .7rem; max-width: 100%; }
.filter { display: grid; gap: .35rem; }
.filter label { font-weight: 650; font-size: .83rem; }
input, select { min-width: 0; width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--control-line); border-radius: 8px; color: inherit; background: var(--panel); }
input::placeholder { color: var(--muted); opacity: 1; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); scroll-margin: 1rem; }
.product:hover, .product:focus-within { border-color: var(--control-line); }
.product:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-preview-link { display: block; padding: 1rem 1rem 0; background: linear-gradient(var(--raised), var(--panel)); }
.product-preview-link:focus-visible { outline-offset: -5px; }
.preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: var(--base); }
.info { display: flex; flex: 1; flex-direction: column; padding: 1.05rem 1.15rem 1.2rem; }
.category-label { align-self: start; margin-bottom: .65rem; border-radius: 6px; padding: .22rem .54rem; background: var(--raised); color: var(--highlight); font-size: .76rem; font-weight: 650; }
.product-title-link:hover { color: var(--accent); text-decoration: underline; }
.info > p { margin: .5rem 0 1rem; color: var(--muted); line-height: 1.52; font-size: .93rem; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem; margin-top: auto; padding: .85rem 0; border-top: 1px solid var(--line); }
.prices strong { color: var(--highlight); font-size: 1.13rem; }
.prices span { color: var(--muted); font-size: .85rem; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.button, .actions button, .modal button:not(.close, .language-toggle) { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .55rem .65rem; border-radius: 8px; border: 1px solid var(--control-line); background: var(--raised); color: var(--text); font-size: .87rem; font-weight: 650; text-align: center; line-height: 1.25; }
.button:hover, .actions button:hover:not(:disabled), .modal button:hover:not(:disabled, .primary, .close) { background: var(--hover); }
.button.primary, .modal button.primary { background: var(--accent); border-color: var(--accent); color: var(--base); }
.button.primary:hover, .modal button.primary:hover:not(:disabled) { background: var(--highlight); border-color: var(--highlight); }
.button.detail { background: var(--panel); }
.button.detail:hover { background: var(--hover); }
.info > .hold-notice { margin-top: auto; padding: .6rem .65rem; border-radius: 7px; color: var(--highlight); background: var(--hold); font-size: .84rem; font-weight: 650; }
.no-results { padding: 1rem; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; color: var(--muted); }
.site-status:empty { display: none; }
.site-status { margin: 0 0 1rem; }

.help { display: grid; grid-template-columns: .85fr 1.4fr; gap: 2rem; margin-block: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(1.25rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.help-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.help-options > div { padding: 1rem 1.1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.help p { margin: .6rem 0; font-size: .93rem; }
.text-button { color: var(--accent); background: none; border: 0; min-height: 44px; padding: .35rem 0; text-align: left; font-weight: 650; font-size: .9rem; }
.text-button:hover:not(:disabled), footer a:hover { text-decoration: underline; }
footer.shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; color: var(--muted); border-top: 1px solid var(--line); padding-block: 1.35rem 2rem; font-size: .9rem; }

dialog { width: min(480px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--control-line); border-radius: 16px; background: var(--panel); color: inherit; }
dialog::backdrop { background: #0B0D12CC; }
.modal { padding: 1.35rem; }
.modal h2 { font-size: 1.55rem; }
.modal-tools { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-bottom: .75rem; }
.close { color: inherit; border: 1px solid var(--control-line); border-radius: 8px; background: var(--raised); width: 44px; height: 44px; font-size: 1.4rem; }
.close:hover { background: var(--hover); }
.modal form, #key-panel { display: grid; gap: .65rem; margin-top: 1rem; }
.modal small, dt, #checkout-status { color: var(--muted); }
#qr { display: block; height: auto; width: min(100%, 235px); background: white; border-radius: .45rem; margin: 1rem auto; }
dl { display: grid; gap: .5rem; }
dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
#order-chooser, #new-order { margin-top: .75rem; }
#order-chooser { grid-template-columns: 1fr; }
#checkout-status { line-height: 1.5; margin-bottom: 0; }

.hold-page { margin-block: clamp(1.5rem, 5vw, 4rem); }
.hold-page h1 { color: var(--highlight); }
.hold-page p { color: var(--muted); line-height: 1.55; }
.hold-page a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

@media (prefers-reduced-motion: no-preference) {
  .site-links a, #category-toggle, .language-toggle, .product, .button,
  .actions button, .modal button, .text-button, .product-title-link {
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
  }
}

@media (max-width: 920px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .top nav { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding-block: .65rem .25rem; }
  .site-links { grid-row: 2; grid-column: 1 / -1; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .intro { grid-template-columns: 1fr; border-radius: 17px; }
  .hero-preview { max-width: 28rem; }
  .filters { width: 100%; }
  .catalog { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .filters, .help-options { grid-template-columns: 1fr; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-color: #253041;
  background: #090f1aed;
  backdrop-filter: blur(16px);
}
.site-header nav { gap: clamp(.65rem, 2.7vw, 2.5rem); }
.wordmark span { margin-left: -.35rem; color: #eee9dd; font-weight: 450; font-size: .93rem; letter-spacing: 0; }
.site-links { gap: clamp(.1rem, 1.1vw, 1rem); }
.site-links [aria-current="page"] { color: var(--highlight); }
.skip-link:focus { position: fixed; z-index: 12; }
#main:focus { outline: none; }
#main:focus-visible > section:first-child h1 { text-decoration: underline 2px var(--accent); text-underline-offset: .16em; }
html { scroll-padding-top: 6rem; }

.home-page {
  --base: #080d17;
  --panel: #101927;
  --raised: #172336;
  --text: #f3f5fa;
  --muted: #b3bfd1;
  --line: #2a374b;
  --accent: #ecc272;
  --highlight: #f3ce86;
  color: var(--text);
  background: var(--base);
}
.home-page .shell { width: min(1320px, calc(100% - clamp(2rem, 9vw, 9rem))); }
.brand-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #314261;
  background: radial-gradient(ellipse at 76% 47%, #112944, transparent 61%), linear-gradient(115deg, #080b12 12%, #0b1729 96%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(1rem, 2.7vw, 2.7rem);
  min-height: clamp(36rem, 50vw, 46rem);
  padding-block: clamp(3.9rem, 7vw, 6rem);
}
.hero-copy { position: relative; z-index: 1; }
.section-label { margin: 0 0 .95rem; color: var(--highlight); font-size: .85rem; font-weight: 720; letter-spacing: .17em; text-transform: uppercase; }
.brand-hero h1 { font-size: clamp(2.7rem, 5.05vw, 5.3rem); line-height: 1.07; letter-spacing: -.061em; text-wrap: balance; }
:lang(vi) .brand-hero h1 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.brand-hero h1 span { display: block; }
.brand-hero h1 span + span { color: var(--highlight); }
.brand-lead { max-width: 43ch; color: var(--muted); margin: 1.25rem 0 0; font-size: clamp(1rem, 1.36vw, 1.18rem); line-height: 1.65; }
.button.hero-cta {
  min-height: 52px;
  margin-top: 1.8rem;
  padding: .7rem 1.32rem;
  border-color: #ffdc92;
  background: linear-gradient(110deg, #f5d499, #e5b25d);
  box-shadow: inset 0 1px #fff2c1, 0 8px 26px #d7a64d23;
  color: #17120a;
  font-size: 1rem;
}
.button.hero-cta:hover { background: #ffdc97; box-shadow: inset 0 1px #fff4d0, 0 12px 32px #d7a64d44; }
.light-ribbons { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ribbon-gold, .ribbon-blue { opacity: .69; }

.app-carousel { min-width: 0; }
.carousel-stage { position: relative; isolation: isolate; aspect-ratio: 1.62; touch-action: pan-y pinch-zoom; }
.screen-halo {
  position: absolute;
  z-index: -1;
  inset: 69% 0 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 54% 39%, #ffca7270, transparent 37%), radial-gradient(ellipse, #38aaff85, transparent 68%);
  filter: blur(11px);
}
.screen-halo::after {
  content: "";
  position: absolute;
  inset: 22% 9%;
  border: 1px solid #a2ceff86;
  border-radius: 50%;
  box-shadow: 0 0 18px #3caaecaa, inset 0 1px 13px #efbc6282;
}
.carousel-screen {
  position: absolute;
  z-index: 0;
  inset: 5% 17% auto;
  margin: 0;
  padding: 3px;
  border: 1px solid #69cee8;
  border-radius: clamp(5px, .7vw, 11px);
  background: #0b1523;
  box-shadow: 0 0 14px #2aaed777, 0 24px 50px #000a;
  opacity: 0;
  transform: scale(.53);
  pointer-events: none;
}
.carousel-screen img { display: block; width: 100%; height: auto; aspect-ratio: 1.61; object-fit: contain; border-radius: inherit; background: #0b1523; }
.carousel-screen[data-position="left"] { z-index: 1; opacity: .79; transform: perspective(740px) translate(-37%, 6%) rotateY(34deg) scale(.70); }
.carousel-screen[data-position="right"] { z-index: 1; opacity: .79; transform: perspective(740px) translate(37%, 6%) rotateY(-34deg) scale(.70); }
.carousel-screen[data-position="active"] {
  z-index: 2;
  opacity: 1;
  transform: none;
  border-color: #f7cb7e;
  box-shadow: 0 0 0 1px #edb56c4a, 0 0 23px #f5b64e53, 0 28px 50px #020813b0;
}
.carousel-meta { display: grid; justify-items: center; gap: .12rem; margin-top: -.25rem; }
.carousel-meta p { margin: 0; color: #d8e2ef; font-size: .93rem; letter-spacing: .025em; }
.carousel-controls, .carousel-pagination { display: flex; align-items: center; justify-content: center; }
.carousel-controls { position: relative; gap: .32rem; padding-top: .25rem; }
.carousel-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #415574; border-radius: 50%; background: #0b1728; color: #eef4ff; }
.carousel-controls button:hover { border-color: var(--highlight); color: var(--highlight); }
.carousel-pagination button { width: 27px; border-color: transparent; background: transparent; }
.carousel-pagination button:hover { border-color: transparent; }
.carousel-pagination button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a1b5d2; }
.carousel-pagination button[aria-current="true"]::after { width: 15px; border-radius: 4px; background: var(--highlight); }
.carousel-arrow { width: 9px; height: 9px; border-right: 1.5px solid; border-top: 1.5px solid; transform: translateX(-2px) rotate(45deg); }
.carousel-arrow.previous { transform: translateX(2px) rotate(-135deg); }
.play-symbol { width: 9px; height: 12px; border-inline: 2px solid currentColor; }
[data-carousel-play][data-paused="true"] .play-symbol { width: 0; height: 0; margin-left: 2px; border-block: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }

.home-section { margin-block: clamp(4rem, 8vw, 7.8rem); }
.home-section h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); text-wrap: balance; }
.section-intro > p:not(.section-label, .site-status) { max-width: 56ch; color: var(--muted); line-height: 1.65; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); margin-top: 1.8rem; }
.industry-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
  padding: clamp(.9rem, 1.7vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(143deg, #15243a, #101927 71%);
}
.industry-card:hover, .industry-card:focus-visible { border-color: #d8a966; box-shadow: inset 0 1px #e9b96790, 0 15px 32px #0005; }
.industry-card h3 { font-size: 1.19rem; }
.industry-card p { margin: 0; color: var(--muted); line-height: 1.52; }
.industry-art { width: 100%; height: 76px; margin-bottom: .45rem; color: #f4cd86; border-bottom: 1px solid #54698854; }
.industry-art svg { width: 100%; height: 100%; }
.industry-art .diagram-grid { stroke: #5bbbe2; opacity: .36; }
.industry-link { margin-top: auto; padding-top: .45rem; color: var(--highlight); text-decoration: underline; text-underline-offset: .24em; }

.metrics-strip { background: #101a2b; border-block: 1px solid #30415b; }
.catalog-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: clamp(1.4rem, 3.2vw, 2.75rem); text-align: center; }
.metric { display: grid; justify-items: center; align-content: start; gap: .4rem; padding: .4rem .65rem; }
.metric + .metric { border-left: 1px solid #354760; }
.metric strong { color: var(--highlight); font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { font-weight: 650; }
.metric small { color: var(--muted); font-size: .875rem; }
.studio-panel { display: grid; grid-template-columns: .88fr 1fr; gap: clamp(1.7rem, 6vw, 6rem); align-items: center; }
.studio-art {
  display: grid;
  place-items: center;
  min-height: clamp(11rem, 24vw, 19rem);
  border: 1px solid #394761;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 115%, #b48c3c66, transparent 61%),
    repeating-radial-gradient(ellipse at 50% 100%, #6bc9ff26 0 1px, transparent 1px 24px),
    linear-gradient(145deg, #0c1423, #11243b);
}
.studio-art img { border-radius: 18px; box-shadow: 0 0 42px #f8cc7950; }
.support-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.support-section .help-options { grid-template-columns: 1fr; gap: .65rem; margin-top: 1.15rem; }
.support-section .help-options p { margin: .35rem 0 0; color: var(--muted); line-height: 1.5; }
.support-section .help-options .text-button { color: var(--highlight); }
.support-section .site-status { margin-top: .8rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; min-height: 54px; cursor: pointer; padding: .5rem .4rem; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--highlight); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--highlight); }
.faq details p { margin: 0; padding: 0 1.6rem 1.15rem .4rem; color: var(--muted); line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; padding-block: 2.4rem 2rem; }
.footer-grid p, .footer-base { color: var(--muted); line-height: 1.5; }
.footer-grid nav { display: grid; align-content: start; gap: .65rem; }
.footer-grid h2 { margin-bottom: .3rem; font-size: 1rem; letter-spacing: normal; }
.footer-grid nav a { width: fit-content; color: var(--muted); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1rem 1.6rem; border-top: 1px solid var(--line); font-size: .9rem; }
.products-intro { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.75rem, 4vw, 3.5rem); }
.products-page #catalog { margin-top: 0; }
.products-page .category-label, .products-page .filter label, .products-page .info > p { font-size: .94rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .ribbon-blue { animation: drift-blue 13s ease-in-out infinite alternate; }
  .ribbon-gold { animation: drift-gold 11s ease-in-out infinite alternate; }
  .carousel-screen { transition: transform .65s cubic-bezier(.22,.65,.25,1), opacity .5s ease, border-color .5s ease; }
  .industry-card, .hero-cta { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .industry-card:hover, .hero-cta:hover { transform: translateY(-4px); }
  .will-reveal { opacity: 0; transform: translateY(16px); transition: transform .55s ease, opacity .55s ease; }
  .will-reveal.is-revealed, .will-reveal:focus-within { opacity: 1; transform: none; }
}
@keyframes drift-blue { to { transform: translateY(-27px); opacity: .43; } }
@keyframes drift-gold { to { transform: translateY(21px); opacity: .44; } }
@media (max-width: 1000px) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; min-height: auto; padding-block: 3.15rem 2.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .brand-lead { margin-inline: auto; }
  .brand-hero h1 { font-size: clamp(2.2rem, 8.1vw, 4.5rem); }
  :lang(vi) .brand-hero h1 { font-size: clamp(1.9rem, 7.25vw, 3.6rem); }
  .app-carousel { width: min(100%, 580px); margin-inline: auto; }
  .studio-panel, .support-section { grid-template-columns: minmax(0, 1fr); }
  .studio-art { order: 1; }
}
@media (max-width: 680px) {
  .site-header .shell { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding-top: .35rem; }
  .site-header .site-links { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .site-links > a, #category-toggle, #catalog-fallback { padding-inline: .2rem; font-size: .86rem; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  html { scroll-padding-top: 7rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div { grid-column: 1 / -1; }
  .catalog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 0; }
  .metric:nth-of-type(3) { border-left: 0; }
  .industry-card p { font-size: .94rem; }
  .industry-card h3 { font-size: 1.07rem; }
  .industry-art { height: 61px; }
}

.site-links { flex-wrap: wrap; min-width: 0; }
.site-header .site-links > *, .filters > *, .product .info { min-width: 0; }
.filters input, .filters select { max-width: 100%; }
.product .info { overflow-wrap: anywhere; }

@media (max-width: 440px) {
  .site-header nav { min-width: 0; }
  .site-header .site-links { position: relative; justify-content: flex-start; gap: .1rem; }
  .category-menu { position: static; }
  .category-options { max-width: 100%; }
  .site-links > a, #category-toggle, #catalog-fallback { font-size: .78rem; }
  .filters { grid-template-columns: minmax(0, 1fr); }
}

.carousel-enlarge {
  position: absolute;
  z-index: 3;
  inset: 5% 17% auto;
  aspect-ratio: 1.61;
  display: grid;
  place-items: end;
  padding: .5rem;
  border: 0;
  border-radius: clamp(5px, .7vw, 11px);
  background: transparent;
  color: var(--highlight);
}
.enlarge-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #0b1728;
}
.enlarge-symbol::after { content: "⤢"; font-size: 1.17rem; }

@media (max-width: 780px) {
  .app-carousel { width: 100vw; justify-self: center; }
  .carousel-stage { aspect-ratio: 1.54; }
  .carousel-screen, .carousel-enlarge { inset: 1% 3% auto; }
  .carousel-screen img { aspect-ratio: auto; }
  .carousel-enlarge { aspect-ratio: var(--slide-ratio, 1.61); }
  .carousel-screen[data-position="left"] { transform: translate(-24%, 27%) scale(.57); }
  .carousel-screen[data-position="right"] { transform: translate(24%, 27%) scale(.57); }
}

html:has(.screenshot-viewer[open]) { overflow: hidden; }
.screenshot-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080b12;
  color: var(--text);
  overflow: hidden;
}
.screenshot-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.screenshot-viewer::backdrop { background: #080b12; }
.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: max(.5rem, env(safe-area-inset-top)) max(.65rem, env(safe-area-inset-right))
           .5rem max(.65rem, env(safe-area-inset-left));
  background: #0b1728;
}
.viewer-toolbar h2 { flex: 1 1 8rem; font-size: 1rem; }
.viewer-toolbar button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  color: var(--highlight);
  background: var(--panel);
  font-size: 1.3rem;
}
.viewer-image-area {
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.viewer-image-area img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
