/* China Town — Imperial Red + Gold */

:root {
  --c-bg: #1b0508;
  --c-bg-2: #270a10;
  --c-panel: #320d14;
  --c-surface: rgba(255, 255, 255, .035);
  --c-surface-2: rgba(246, 196, 83, .06);
  --c-line: rgba(246, 196, 83, .16);
  --c-line-soft: rgba(246, 196, 83, .09);
  --gold: #f6c453;
  --gold-deep: #d99b34;
  --jade: #4cae8f;
  --crimson: #d62839;
  --crimson-deep: #a51422;
  --cream: #f3e9da;
  --muted: #cbb89c;
  --c-grad-gold: linear-gradient(135deg, #f6c453 0%, #e9a13d 55%, #d4862a 100%);
  --c-grad-red: linear-gradient(135deg, #d62839 0%, #a51422 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* fonts */
@font-face {
  font-family: 'Marcellus';
  src: url('/assets/fonts/marcellus-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--c-bg);
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(214, 40, 57, .22), transparent 60%),
    radial-gradient(700px 500px at 5% 8%, rgba(246, 196, 83, .08), transparent 55%);
  background-attachment: fixed;
}
main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .2px;
  color: var(--cream);
  overflow-wrap: break-word;
  word-break: break-word;
}
p { overflow-wrap: break-word; word-break: break-word; }
a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 820px) { .container { padding-inline: 20px; } }
@media (max-width: 430px) { .container { padding-inline: 15px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 30px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.btn--primary {
  color: #2a0a05;
  background: var(--c-grad-gold);
  box-shadow: 0 14px 30px rgba(217, 155, 52, .34);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(217, 155, 52, .5); }
.btn--ghost {
  color: var(--cream);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.btn--ghost:hover { background: var(--c-surface-2); border-color: var(--gold); transform: translateY(-3px); }
.btn--lg { padding: 19px 40px; font-size: 18px; }
.btn--block { width: 100%; }

/* section rhythm */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.6vw, 52px); }
.section-kicker {
  display: inline-block;
  font-family: 'Marcellus', serif;
  font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-lead { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(27, 5, 8, .78);
  border-bottom: 1px solid var(--c-line-soft);
  overflow: visible;
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; color: var(--gold); flex-shrink: 0; }
.brand__name {
  font-family: 'Marcellus', serif; font-size: 23px; letter-spacing: .5px; color: var(--cream);
}
.brand__name b { color: var(--gold); font-weight: 400; }
.brand:hover .brand__mark { filter: drop-shadow(0 0 10px rgba(246, 196, 83, .55)); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.nav-cta) {
  position: relative;
  font-weight: 500; font-size: 15.5px; color: var(--cream);
  padding: 6px 2px;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.nav a:not(.nav-cta):hover,
.nav a.is-active:not(.nav-cta) {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(246, 196, 83, .55);
}
.nav-cta {
  color: #2a0a05 !important;
  background: var(--c-grad-gold);
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 22px rgba(217, 155, 52, .3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(217, 155, 52, .46); }

.burger {
  display: none; width: 46px; height: 46px; position: relative; z-index: 110; flex-shrink: 0;
  border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 70px)); z-index: 100;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px 28px;
    background: linear-gradient(165deg, #240910 0%, #160407 100%);
    border-top: 1px solid var(--c-line); box-shadow: var(--shadow);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a:not(.nav-cta) { width: 100%; padding: 16px 4px; font-size: 20px; border-bottom: 1px solid var(--c-line-soft); }
  .nav-cta { margin-top: 16px; text-align: center; padding: 15px; font-size: 17px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex; align-items: flex-end;
  padding-block: 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/img/hero/hero-bg.avif');
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease-soft) infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 4, 7, .55) 0%, rgba(20, 4, 7, .25) 35%, rgba(20, 4, 7, .82) 100%),
    radial-gradient(80% 60% at 50% 110%, rgba(165, 20, 34, .5), transparent 70%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; text-align: center; }
.hero__title {
  font-size: clamp(40px, 8vw, 92px);
  line-height: 1.04;
  letter-spacing: .5px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
  animation: heroRise .9s var(--ease) both;
}
.hero__title b { color: var(--gold); font-weight: 400; }
.hero__sub {
  max-width: 720px; margin: 22px auto 0;
  font-size: clamp(17px, 2.3vw, 22px); color: #ecdcc6;
  animation: heroRise .9s var(--ease) .15s both;
}
.hero__cta { margin-top: 38px; animation: heroRise .9s var(--ease) .3s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(246, 196, 83, .55); border-radius: 16px;
}
.hero__scroll::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: var(--gold); transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ============ Why Choose (features) ============ */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative; padding: 34px 30px;
  background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.feature::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(246, 196, 83, .5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.feature:hover { transform: translateY(-8px); background: var(--c-surface-2); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(246, 196, 83, .28), rgba(214, 40, 57, .18));
  border: 1px solid var(--c-line);
}
.feature__icon svg { width: 30px; height: 30px; color: var(--gold); }
.feature__title { font-size: 22px; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: 16px; }

/* ============ Business model ============ */
.model { background: var(--c-bg-2); border-block: 1px solid var(--c-line-soft); }
.model__layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.model__media {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  background-image: url('/assets/img/sections/business-bg.avif');
  background-size: cover; background-position: center;
  border: 1px solid var(--c-line);
}
.model__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 4, 7, .7)); }
.model__badge {
  position: absolute; z-index: 2; left: 22px; bottom: 22px; right: 22px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(27, 5, 8, .72); backdrop-filter: blur(6px); border: 1px solid var(--c-line);
  font-size: 15px; color: var(--cream);
}
.model__badge b { color: var(--gold); font-weight: 400; font-family: 'Marcellus', serif; }
.model__steps { display: grid; gap: 18px; margin-top: 30px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--c-surface); border: 1px solid var(--c-line-soft);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.step:hover { border-color: var(--c-line); transform: translateX(6px); }
.step__num {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
  font-family: 'Marcellus', serif; font-size: 24px; color: var(--gold);
  background: var(--c-surface-2); border: 1px solid var(--c-line);
}
.step__num svg { width: 26px; height: 26px; color: var(--gold); }
.step__title { font-size: 20px; margin-bottom: 4px; }
.step__text { color: var(--muted); font-size: 15.5px; }

/* ============ Reviews carousel ============ */
.reviews__viewport { position: relative; overflow: hidden; border-radius: var(--radius); }
.reviews__track { display: flex; transition: transform .6s var(--ease); }
.review {
  flex: 0 0 100%; min-width: 0;
  padding: clamp(30px, 5vw, 56px);
  background: var(--c-surface); border: 1px solid var(--c-line-soft);
}
.review__quote { width: 46px; height: 46px; color: var(--gold); opacity: .6; margin-bottom: 14px; }
.review__stars { display: flex; gap: 4px; margin-bottom: 18px; }
.review__stars svg { width: 22px; height: 22px; color: var(--gold); }
.review__text { font-size: clamp(18px, 2.4vw, 24px); font-family: 'Marcellus', serif; line-height: 1.5; color: var(--cream); }
.review__person { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.review__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.review__name { font-family: 'Marcellus', serif; font-size: 19px; }
.review__role { color: var(--muted); font-size: 14px; }
.reviews__nav { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.reviews__btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--gold); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.reviews__btn:hover { background: var(--c-surface-2); transform: translateY(-3px); border-color: var(--gold); }
.reviews__btn svg { width: 22px; height: 22px; }
.reviews__dots { display: flex; gap: 9px; justify-content: center; margin-top: 18px; }
.reviews__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); border: 0; cursor: pointer; transition: background .3s, transform .3s; }
.reviews__dot.is-active { background: var(--gold); transform: scale(1.3); }

/* ============ Demo game ============ */
.demo__frame {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-line); background: #0d0204; box-shadow: var(--shadow);
}
.demo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.demo__frame::before {
  content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px;
  border-radius: 50%; border: 3px solid rgba(246, 196, 83, .25); border-top-color: var(--gold);
  animation: demoSpin 1s linear infinite;
}
.demo__frame::after {
  content: 'Loading the China Town slot…'; position: absolute; z-index: 1; left: 0; right: 0; top: calc(50% + 44px);
  text-align: center; font-family: 'Marcellus', serif; font-size: 15px; color: var(--muted); letter-spacing: .5px;
}
.demo__frame.is-loaded::before, .demo__frame.is-loaded::after { display: none; }
@keyframes demoSpin { to { transform: rotate(360deg); } }
.demo__desc { margin-top: 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.demo__desc p { color: var(--muted); }
.demo__facts { display: grid; gap: 12px; }
.demo__fact { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius-sm); }
.demo__fact svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.demo__fact b { font-family: 'Marcellus', serif; font-weight: 400; color: var(--cream); }

/* ============ Join Community ============ */
.community { position: relative; overflow: hidden; }
.community__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/img/sections/community-bg.avif');
  background-size: cover; background-position: center;
}
.community__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(20, 4, 7, .92) 0%, rgba(20, 4, 7, .72) 55%, rgba(165, 20, 34, .55) 100%); }
.community__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.community__title { font-size: clamp(30px, 4.6vw, 50px); }
.community__text { margin-top: 18px; color: #ecdcc6; font-size: 18px; }
.community__cta { margin-top: 30px; }
.rg-card {
  padding: 28px; border-radius: var(--radius);
  background: rgba(27, 5, 8, .6); backdrop-filter: blur(8px); border: 1px solid var(--c-line);
}
.rg-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rg-card__head svg { width: 30px; height: 30px; color: var(--gold); }
.rg-card__head h3 { font-size: 22px; }
.rg-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.rg-card__age {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--c-grad-red); color: #fff; font-weight: 600; font-size: 14px;
}

/* ============ Footer (lantern-street layout) ============ */
.site-footer { position: relative; background: #140406; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--crimson) 50%, var(--gold) 82%, transparent);
  opacity: .7;
}
.site-footer::after {
  content: ''; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 760px; max-width: 120%; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214, 40, 57, .28), transparent 70%);
}

/* top band */
.ftr-hero { position: relative; z-index: 1; text-align: center; padding-top: 64px; }
.ftr-hero__mark { width: 62px; height: 62px; margin: 0 auto 14px; color: var(--gold); filter: drop-shadow(0 0 18px rgba(246, 196, 83, .4)); }
.ftr-hero__name { font-family: 'Marcellus', serif; font-size: clamp(30px, 5vw, 44px); letter-spacing: 1px; }
.ftr-hero__name b { color: var(--gold); font-weight: 400; }
.ftr-hero__tag { margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.ftr-hero__social { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.ftr-hero__social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--cream);
  transition: color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.ftr-hero__social a:hover { color: #2a0a05; background: var(--c-grad-gold); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(217, 155, 52, .4); }
.ftr-hero__social svg { width: 21px; height: 21px; }

/* inline nav lane */
.ftr-lane {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; align-items: center;
  margin-top: 40px; padding-block: 26px; border-block: 1px solid var(--c-line-soft);
}
.ftr-lane a { color: var(--cream); font-size: 15.5px; position: relative; transition: color .25s var(--ease), text-shadow .25s var(--ease); }
.ftr-lane a:hover { color: var(--gold); text-shadow: 0 0 14px rgba(246, 196, 83, .5); }
.ftr-lane a:not(:last-child)::after { content: '◆'; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); font-size: 7px; color: var(--gold); opacity: .5; }
.ftr-lane__break { flex-basis: 100%; height: 0; }

/* support strip */
.ftr-support { position: relative; z-index: 1; padding-top: 46px; text-align: center; }
.ftr-support__title { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 8px; }
.ftr-support__note { color: var(--muted); font-size: 15.5px; margin-bottom: 30px; }
.ftr-support__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rg-badge {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; border-radius: 16px;
  background: var(--c-surface); border: 1px solid var(--c-line-soft);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.rg-badge:hover { border-color: var(--gold); transform: translateY(-5px); background: var(--c-surface-2); }
.rg-badge img { width: 100%; max-width: 210px; height: auto; }

/* info ribbon */
.ftr-ribbon {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center;
  margin-top: 46px; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(214, 40, 57, .14), rgba(246, 196, 83, .06));
  border: 1px solid var(--c-line-soft);
}
.ftr-ribbon span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.ftr-ribbon svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.ftr-ribbon a:hover { color: var(--gold); }

/* disclaimer note */
.ftr-note {
  position: relative; z-index: 1;
  display: flex; gap: 16px; align-items: center; justify-content: center; text-align: left;
  margin-top: 30px; padding: 20px 24px; border-radius: 16px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--c-line-soft);
}
.ftr-note__age {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-grad-red); color: #fff; font-family: 'Marcellus', serif; font-size: 19px; font-weight: 700;
}
.ftr-note p { color: var(--muted); font-size: 14.5px; }

/* base bar */
.ftr-base {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-block: 28px; color: var(--muted); font-size: 14px;
}
.ftr-base b { color: var(--gold); font-weight: 400; }

/* ============ reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .hero__title, .hero__sub, .hero__cta { animation: none; }
}

/* ============ Chat widget ============ */
.chat-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-grad-red); color: #fff;
  box-shadow: 0 16px 34px rgba(165, 20, 34, .5);
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: chatBob 3.4s var(--ease-soft) infinite;
}
@keyframes chatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.chat-toggle:hover { transform: scale(1.07); box-shadow: 0 20px 42px rgba(165, 20, 34, .65); }
.chat-toggle svg { width: 30px; height: 30px; }

.chat-panel {
  position: fixed; right: 24px; bottom: 100px; z-index: 81;
  width: 360px; height: 460px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 130px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--c-line);
  background: linear-gradient(180deg, #240910, #170407);
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s linear .35s;
}
.chat-panel.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--c-grad-red); color: #fff; }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); object-fit: cover; }
.chat-head__name { font-family: 'Marcellus', serif; font-size: 17px; }
.chat-head__status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-head__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6ee7a0; box-shadow: 0 0 8px #6ee7a0; }
.chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.chat-close svg { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--c-surface-2); border: 1px solid var(--c-line-soft); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: var(--c-grad-gold); color: #2a0a05; border-bottom-right-radius: 5px; font-weight: 500; }
.chat-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 16px; background: var(--c-surface-2); border: 1px solid var(--c-line-soft); border-radius: 16px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .5; animation: typing 1.3s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line-soft); }
.chat-input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--cream); font-family: inherit; font-size: 14.5px; }
.chat-input:focus { outline: none; border-color: var(--gold); }
.chat-send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; border: 0; background: var(--c-grad-gold); color: #2a0a05; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: transform .25s var(--ease); }
.chat-send:hover { transform: scale(1.06); }
.chat-send svg { width: 20px; height: 20px; }

/* ============ Toast ============ */
.toast-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(10, 2, 3, .6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.toast-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s linear 0s; }
.toast {
  width: min(92vw, 380px); text-align: center; padding: 34px 28px;
  border-radius: 20px; border: 1px solid var(--c-line);
  background: linear-gradient(180deg, #260a11, #180407); box-shadow: var(--shadow);
  transform: scale(.9); transition: transform .35s var(--ease);
}
.toast-backdrop.is-open .toast { transform: scale(1); }
.toast__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); border: 1px solid var(--c-line); }
.toast__icon svg { width: 32px; height: 32px; color: var(--gold); }
.toast__icon--err svg { color: var(--crimson); }
.toast__title { font-size: 24px; margin-bottom: 8px; }
.toast__text { color: var(--muted); font-size: 15.5px; }

/* ============ page hero (inner) ============ */
.page-hero { position: relative; padding-block: clamp(70px, 11vw, 130px) clamp(40px, 6vw, 64px); text-align: center; border-bottom: 1px solid var(--c-line-soft); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 0%, rgba(214, 40, 57, .28), transparent 65%); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(34px, 6vw, 64px); }
.page-hero__sub { max-width: 720px; margin: 18px auto 0; color: var(--muted); font-size: 18px; }

/* ============ prose / legal ============ */
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 46px; }
.prose h3 { font-size: 22px; margin-top: 30px; color: var(--gold); }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { display: grid; gap: 10px; padding-left: 4px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.prose strong { color: var(--cream); }
.prose a { color: var(--gold); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.value-card { padding: 30px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line-soft); transition: transform .4s var(--ease), border-color .4s var(--ease); }
.value-card:hover { transform: translateY(-7px); border-color: var(--c-line); }
.value-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--c-surface-2); border: 1px solid var(--c-line); }
.value-card__icon svg { width: 28px; height: 28px; color: var(--gold); }
.value-card h3 { font-size: 21px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15.5px; }

/* ============ Contact ============ */
.contact-layout { display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px; align-items: start; }
.contact-form { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line-soft); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; color: var(--cream); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-line);
  background: rgba(0,0,0,.2); color: var(--cream); font-family: inherit; font-size: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: none; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .14); }
.field input::placeholder, .field textarea::placeholder { color: rgba(203, 184, 156, .5); }

/* custom select */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-line);
  background: rgba(0,0,0,.2); color: var(--cream); font-family: inherit; font-size: 16px; text-align: left;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.cselect__trigger[aria-expanded="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .14); }
.cselect__trigger.is-placeholder { color: rgba(203, 184, 156, .5); }
.cselect__arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); transition: transform .3s var(--ease); }
.cselect__trigger[aria-expanded="true"] .cselect__arrow { transform: rotate(180deg); }
.cselect__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: #240910; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.cselect.is-open .cselect__panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear 0s; }
.cselect__option { padding: 12px 16px; cursor: pointer; font-size: 15.5px; color: var(--cream); transition: background .2s var(--ease); }
.cselect__option:hover, .cselect__option.is-active { background: var(--c-surface-2); color: var(--gold); }

.contact-aside { display: grid; gap: 16px; }
.info-card { padding: 24px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line-soft); display: flex; gap: 16px; align-items: flex-start; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.info-card:hover { border-color: var(--c-line); transform: translateY(-4px); }
.info-card__icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--c-surface-2); border: 1px solid var(--c-line); }
.info-card__icon svg { width: 24px; height: 24px; color: var(--gold); }
.info-card h3 { font-size: 18px; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: 15px; }
.info-card a:hover { color: var(--gold); }

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .model__layout, .demo__desc, .community__inner, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .model__media { min-height: 320px; }
  .ftr-support__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1220px) {
  .features__grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { min-height: auto; align-items: center; padding-block: clamp(96px, 24vw, 132px) clamp(54px, 14vw, 76px); }
  .hero__bg { animation: none; transform: none; }
  .hero__scroll { display: none; }
  .features__grid, .about-grid { grid-template-columns: 1fr; }
  .ftr-base { justify-content: center; text-align: center; }
  .ftr-note { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  .ftr-support__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .chat-toggle { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .chat-panel { right: 12px; left: 12px; bottom: 86px; width: auto; }
  .btn { width: 100%; }
  .hero__cta .btn { width: auto; }
  .reviews__btn { width: 46px; height: 46px; }
}
@media (max-width: 360px) {
  .container { padding-inline: 13px; }
  .feature, .review, .rg-card, .contact-form { padding-left: 20px; padding-right: 20px; }
}
