/* ANCEL Support — shared styles */
:root {
  --orange: #ff6a1a;
  --orange-dark: #e85a0c;
  --black: #0b0b0b;
  --ink: #111;
  --text: #333;
  --muted: #8a8a8a;
  --card: #f6f6f6;
  --line: #e6e6e6;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.container { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar { background: #161616; color: #d0d0d0; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 12px; }
.topbar a:hover { color: #fff; }
.topbar-center { color: #fff; text-align: center; }
.topbar-center span + span::before { content: "|"; margin: 0 8px; opacity: .6; }
.topbar-right span + span::before { content: "·"; margin: 0 6px; }

/* ---------- Header ---------- */
.header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 32px; }
.logo img { height: 24px; width: auto; }
.nav { flex: 1; max-width: 940px; }
.nav ul { display: flex; justify-content: space-between; align-items: center; }
.nav a { font-size: 14px; font-weight: 600; padding: 10px 0; display: inline-block; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--orange); }
.nav .upper { text-transform: uppercase; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero: support home ---------- */
.hero-support {
  position: relative;
  min-height: clamp(280px, 33.3vw, 480px);
  display: flex; align-items: center; justify-content: center;
  background: #111 url("../img/hero-support.webp") center / cover no-repeat;
  color: #fff; text-align: center;
}
.hero-support::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.hero-support .container { position: relative; }
.hero-support h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.search { position: relative; max-width: 480px; margin: 18px auto 0; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 0; outline: 0;
  padding: 0 48px 0 22px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.search input:focus { box-shadow: 0 0 0 3px rgba(255, 106, 26, .55); }
.search svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #888; pointer-events: none; }

/* ---------- Hero: product ---------- */
.hero-product {
  position: relative;
  min-height: clamp(320px, 32vw, 460px);
  display: flex; align-items: center;
  background: #0a0a0a url("../img/hero-ba101.webp") center / cover no-repeat;
  color: #fff;
}
.hero-product::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%); }
.hero-product .container { position: relative; padding-top: 32px; padding-bottom: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; font-size: 13px; color: #e8e8e8; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .7; }
.breadcrumb a:hover { color: var(--orange); }
.hero-product h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1.05; margin: 14px 0 16px; text-transform: uppercase; letter-spacing: .005em; }
.hero-product .sub { font-size: clamp(14px, 1.4vw, 17px); color: #f1f1f1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 18px; font-size: 13px; }
.hero-product .btn { margin-top: 20px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-tight { padding-top: 0; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }
.section-sub { text-align: center; color: #666; margin-top: 12px; font-size: 15px; }

/* pills */
.pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pill {
  min-height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #f1f1f1; color: var(--ink); border: 1px solid transparent; transition: background .2s, color .2s;
}
.pill:hover { background: #e4e4e4; }
.pill.active { background: var(--black); color: #fff; }
.pills-outline .pill { background: #fff; border-color: #dcdcdc; }
.pills-outline .pill.active { background: var(--black); border-color: var(--black); }

/* product chooser */
.chooser { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.series-title { font-size: 13px; color: #555; padding-left: 12px; border-left: 2px solid var(--orange); line-height: 1.2; margin-bottom: 18px; }
.series-list button { display: block; width: 100%; text-align: left; padding: 6px 14px; font-size: 13px; color: #555; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.series-list button:hover, .series-list button.active { color: var(--orange); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 22px 16px 26px;
  transition: transform .25s, box-shadow .25s;
}
.product-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.product-card .pic { width: min(160px, 70%); aspect-ratio: 1 / .82; margin-top: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
a.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
a.product-card:hover img { transform: scale(1.06); }
a.product-card::after { content: "Watch Tutorials ›"; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--orange); }
.product-card.soon { cursor: default; }
.product-card.soon::after { content: "Coming soon"; margin-top: 12px; font-size: 12px; color: #aaa; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 56px 16px; background: var(--card); border-radius: var(--radius); font-size: 14px; }

/* info cards (services / downloads) */
.cards { display: grid; gap: 20px; margin-top: 28px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 132px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.info-card:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.info-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.info-card p { font-size: 12px; color: var(--muted); margin-top: 8px; max-width: 260px; line-height: 1.45; }
.more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--orange); }
.more::after { content: "›"; margin-left: 6px; display: inline-block; transition: transform .2s; }
a:hover > .more::after, a.more:hover::after { transform: translateX(3px); }
.view-all { display: block; text-align: center; margin-top: 28px; font-size: 13px; }

/* ---------- Product page tabs ---------- */
.tabs { display: flex; justify-content: center; gap: clamp(20px, 4vw, 44px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 0; font-size: 15px; color: #999; white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 2px; margin-left: -11px; background: var(--orange); border-radius: 2px; }
.tabs-wrap { padding-top: clamp(28px, 4vw, 44px); }
.tabs-wrap .pills { margin-top: 18px; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; margin-top: 28px; }
.video-card { display: block; text-align: left; width: 100%; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #111 url("../img/thumb-ba101.webp") center / cover no-repeat;
  container-type: inline-size;
}
.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 65%); transition: background .25s; }
.thumb-title, .thumb-model { position: absolute; left: 4.5%; font-family: var(--display); color: #fff; line-height: 1.12; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.thumb-title { top: 8%; max-width: 50%; font-size: 7.2cqw; }
.thumb-title em { font-style: normal; color: var(--orange); display: block; }
.thumb-model { bottom: 7%; font-size: 7.6cqw; text-transform: uppercase; }
.duration { position: absolute; right: 4%; bottom: 6%; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.play::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-card:hover .play, .video-card:focus-visible .play { opacity: 1; transform: scale(1); }
.video-card:hover .thumb::before { background: rgba(0,0,0,.45); }
.video-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 12px; transition: color .2s; }
.video-card:hover h3 { color: var(--orange); }
.video-card p { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.load-more { display: flex; justify-content: center; margin-top: 44px; }

.placeholder { margin-top: 28px; background: var(--card); border-radius: var(--radius); padding: 56px 20px; text-align: center; }
.placeholder h3 { font-size: 18px; color: var(--ink); }
.placeholder p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* CTA */
.cta { background: var(--card); padding: clamp(36px, 5vw, 56px) 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); }
.cta p { color: #666; font-size: 14px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #bdbdbd; font-size: 13px; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1.2fr auto; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--orange); }
.copyright { margin-top: 36px; padding-top: 28px; border-top: 1px solid #2a2a2a; font-size: 12px; color: #8a8a8a; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.82); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(960px, 100%); }
.modal-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 10px; padding-right: 48px; }
.modal-close { position: absolute; right: -6px; top: -14px; width: 44px; height: 44px; color: #fff; font-size: 28px; line-height: 1; }
.modal-close:hover { color: var(--orange); }
.modal-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal-stage iframe, .modal-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #fff; background: rgba(0,0,0,.6) url("../img/thumb-ba101.webp") center / cover; background-blend-mode: darken; }
.modal-soon strong { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 5vw, 40px); letter-spacing: .02em; text-transform: uppercase; }
.modal-soon span { font-size: 14px; color: #ddd; margin-top: 8px; max-width: 420px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar-left { display: none; }
  .topbar .container { justify-content: space-between; }
  .burger { display: block; }
  .header .container { min-height: 56px; }
  .nav {
    position: absolute; left: 0; top: 100%; width: 100%; height: calc(100vh - var(--nav-top, 86px)); height: calc(100dvh - var(--nav-top, 86px)); max-width: none; flex: none;
    background: var(--black); padding: 8px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav li { border-bottom: 1px solid #222; }
  .nav a { display: block; padding: 16px 0; font-size: 16px; }

  .chooser { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .series-title { display: none; }
  .series-list { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .series-list::-webkit-scrollbar { display: none; }
  .series-list button { width: auto; flex: none; min-height: 36px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 999px; font-size: 12px; }
  .series-list button.active { border-color: var(--orange); }

  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .play { opacity: 1; transform: none; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255,106,26,.92); }
  .play::after { border-width: 7px 0 7px 12px; }
}

@media (max-width: 600px) {
  .topbar { font-size: 11px; }
  .topbar-right { display: none; }
  .topbar .container { justify-content: center; }
  .pills { gap: 8px; }
  .pills-scroll { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .pills-scroll::-webkit-scrollbar { display: none; }
  .pills-scroll .pill { flex: none; }
  .pill { min-height: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 16px 10px 18px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-4 { grid-template-columns: 1fr; gap: 12px; }
  .cards { gap: 12px; }
  .info-card { min-height: 0; padding: 26px 18px; }
  .tabs { justify-content: flex-start; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .hero-product { background-position: 72% center; min-height: 340px; align-items: flex-end; }
  .hero-product::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.85) 100%); }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .footer { padding-top: 40px; }
  .footer-grid { gap: 28px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
