/* ═══════════════════════════════════════════
   Pirate King Online — Crimson Seas Theme
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f12;
  --bg2:       #111620;
  --bg3:       #151c2a;
  --surface:   #18202e;
  --surface2:  #1f2b3d;
  --surface3:  #263347;

  --red:       #c0392b;
  --red-lt:    #e74c3c;
  --red-dk:    #922b21;
  --gold:      #d4a520;
  --gold-lt:   #f0c040;
  --gold-dk:   #a07c10;
  --teal:      #16a085;

  --text:      #dde4e8;
  --text-mute: #7a8fa0;
  --text-dim:  #4a5f72;
  --white:     #ffffff;

  --border:    rgba(255,255,255,0.07);
  --border-r:  rgba(192,57,43,0.25);
  --border-g:  rgba(212,165,32,0.25);

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 56px rgba(0,0,0,0.7);
  --glow-r:    0 0 30px rgba(192,57,43,0.25);
  --glow-g:    0 0 30px rgba(212,165,32,0.2);

  --trans: 0.25s ease;
  --font:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-lt); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg2); }

/* ─── Typography ─── */
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.1; color: var(--white); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--white); margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-lt); margin-bottom: 14px; }

/* ─── Section Tag ─── */
.stag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.12);
  color: var(--red-lt);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stag-gold {
  background: rgba(212,165,32,0.12);
  color: var(--gold);
  border-color: rgba(212,165,32,0.3);
}

/* ─── Section Header ─── */
.section-hd { text-align: center; margin-bottom: 60px; }
.section-hd p { color: var(--text-mute); max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }

/* ─── Buttons ─── */
.btn-red, .btn-gold, .btn-ghost, .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--trans); white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
}
.btn-red, .btn-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dk) 100%);
  color: var(--white); border-color: var(--red);
  box-shadow: 0 4px 20px rgba(192,57,43,0.35);
}
.btn-red:hover, .btn-cta:hover {
  background: linear-gradient(135deg, var(--red-lt) 0%, var(--red) 100%);
  color: var(--white);
  box-shadow: 0 6px 28px rgba(231,76,60,0.5);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%);
  color: #0d0f12; border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212,165,32,0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
  color: #0d0f12;
  box-shadow: 0 6px 28px rgba(240,192,64,0.45);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--white); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 20px 52px; font-size: 1.15rem; border-radius: var(--radius); }

.sec-cta { text-align: center; margin-top: 52px; }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,15,18,0.93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.site-header.scrolled {
  border-color: var(--border-r);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  color: var(--text-mute); font-size: 0.88rem; font-weight: 600;
  padding: 8px 14px; border-radius: 6px; transition: all var(--trans);
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--red-lt); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ─── Lang ─── */
.lang-switcher { position: relative; }
.lang-toggle {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-mute); padding: 7px 12px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; transition: all var(--trans);
}
.lang-toggle:hover, .lang-switcher.open .lang-toggle { border-color: var(--red); color: var(--red-lt); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-width: 160px;
  box-shadow: var(--shadow); overflow: hidden; z-index: 100;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block; padding: 11px 16px; color: var(--text);
  font-size: 0.88rem; font-weight: 500; transition: background var(--trans);
}
.lang-dropdown a:hover, .lang-dropdown a.active { background: rgba(192,57,43,0.12); color: var(--red-lt); }

/* ─── Hamburger ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--trans); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 72px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/img/main-bg.webp') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(13,15,18,0.97) 0%,
    rgba(13,15,18,0.88) 45%,
    rgba(13,15,18,0.55) 100%
  );
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 48px;
  align-items: center;
}

/* Hero Left */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: 20px; padding: 6px 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-lt); margin-bottom: 24px;
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--red-lt); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

h1 { margin-bottom: 12px; }
.h1-aka {
  display: block; font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500; color: var(--text-mute); margin-top: 10px;
}
.h1-aka strong { color: var(--gold); font-weight: 600; }

.hero-desc {
  font-size: 1.07rem; color: var(--text-mute);
  margin: 20px 0 36px; max-width: 520px; line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hstat {
  flex: 1; padding: 16px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.hstat:last-child { border-right: none; }
.hstat-n {
  display: block; font-size: 1.7rem; font-weight: 800;
  color: var(--gold-lt); line-height: 1; margin-bottom: 4px;
}
.hstat-l { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero Right — Class Showcase */
.hero-classes { position: relative; }
.hero-class-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 16px;
}
.hctab {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-mute); border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; transition: all var(--trans);
  cursor: pointer;
}
.hctab:hover { border-color: var(--red); color: var(--white); }
.hctab.active { background: var(--red); border-color: var(--red); color: var(--white); }

.hero-class-img {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 3/4; max-height: 420px;
  background: var(--surface); border: 1px solid var(--border-r);
  box-shadow: var(--glow-r);
}
.hero-class-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: opacity 0.3s ease;
}
.hero-class-label {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(13,15,18,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border-r); border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.hcl-name { font-weight: 800; font-size: 1.1rem; color: var(--white); }
.hcl-role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); padding: 3px 10px;
  border: 1px solid rgba(212,165,32,0.3); border-radius: 20px;
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); animation: bounce 1.6s infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border-r);
  border-bottom: 1px solid var(--border-r);
  padding: 20px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 32px; border-right: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; color: var(--text-mute);
}
.trust-item:last-child { border-right: none; }
.trust-item strong { color: var(--white); }
.trust-ico { font-size: 1.1rem; }

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-text p { color: var(--text-mute); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.about-text strong { color: var(--text); }
.about-text em { color: var(--gold); font-style: normal; font-weight: 600; }

.history-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px;
}
.hchip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-mute);
  transition: all var(--trans);
}
.hchip:hover { border-color: var(--red); color: var(--text); }
.hchip-year { color: var(--red-lt); font-weight: 800; }

.about-img { position: relative; }
.about-img img {
  border-radius: var(--radius); width: 100%;
  object-fit: cover; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-img-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--red); color: var(--white);
  border-radius: var(--radius-sm); padding: 14px 20px;
  text-align: center; box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,0.15);
}
.aib-num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.aib-txt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }

/* ═══ GAME MODES ═══ */
.modes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.mode-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px 28px;
  text-align: center; transition: all var(--trans); position: relative; overflow: hidden;
}
.mode-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-dk), var(--red-lt));
  transform: scaleX(0); transition: transform var(--trans);
  transform-origin: left;
}
.mode-card:hover::before { transform: scaleX(1); }
.mode-card:hover {
  background: var(--surface2); border-color: var(--border-r);
  transform: translateY(-6px); box-shadow: var(--shadow), var(--glow-r);
}
.mode-ico { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.mode-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.mode-card p { color: var(--text-mute); font-size: 0.9rem; line-height: 1.6; }
.mode-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.mode-tag {
  background: rgba(192,57,43,0.1); color: var(--red-lt);
  border: 1px solid rgba(192,57,43,0.2); border-radius: 20px;
  padding: 2px 10px; font-size: 0.72rem; font-weight: 600;
}

/* ═══ CLASSES (tabbed) ═══ */
.class-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.ctab {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-mute); border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 0.88rem; font-weight: 700;
  transition: all var(--trans); cursor: pointer;
}
.ctab:hover { border-color: var(--red); color: var(--white); }
.ctab.active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: var(--glow-r); }

/* All panels visible by default (for search crawlers without JS).
   JS adds .js-tabs to #classes, which then hides inactive panels. */
.js-tabs .class-panel { display: none; }
.js-tabs .class-panel.active { display: block; }

.class-detail {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-r);
  border-radius: var(--radius); overflow: hidden;
}
.cd-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg3); }
.cd-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cd-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,15,18,0.9) 100%);
}
.cd-body { padding: 40px 40px 40px 0; }
.cd-role {
  display: inline-block;
  background: rgba(192,57,43,0.15); color: var(--red-lt);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 20px; padding: 4px 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.cd-body h3 { font-size: 2rem; margin-bottom: 14px; }
.cd-body > p { color: var(--text-mute); margin-bottom: 24px; line-height: 1.75; font-size: 1.02rem; }
.cd-stats { display: flex; gap: 16px; margin-bottom: 28px; }
.cds {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; flex: 1;
}
.cds-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.cds-bar { height: 4px; background: var(--bg3); border-radius: 2px; margin-bottom: 4px; overflow: hidden; }
.cds-fill { height: 100%; background: linear-gradient(90deg, var(--red-dk), var(--red-lt)); border-radius: 2px; }
.cds-val { font-size: 0.78rem; font-weight: 700; color: var(--red-lt); }

/* ═══ FEATURES (alternating) ═══ */
.feat-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-bottom: 80px;
}
.feat-block:last-child { margin-bottom: 0; }
.feat-block.reverse .feat-text { order: 2; }
.feat-block.reverse .feat-vis  { order: 1; }

.feat-text .stag { margin-bottom: 14px; }
.feat-text p { color: var(--text-mute); margin-bottom: 16px; line-height: 1.75; }
.feat-text strong { color: var(--text); }
.feat-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-mute); font-size: 0.95rem;
}
.feat-list li::before {
  content: ''; width: 6px; height: 6px; min-width: 6px;
  background: var(--red); border-radius: 50%; margin-top: 8px;
}

.feat-vis {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-r); box-shadow: var(--shadow-lg);
}
.feat-vis img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
.feat-vis-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--red); color: var(--white);
  border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}

/* ═══ GALLERY ═══ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gal-item {
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg3);
  border: 1px solid var(--border); position: relative;
}
.gal-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,15,18,0.7) 100%);
  opacity: 0; transition: opacity var(--trans);
}
.gal-item:hover::after { opacity: 1; }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gal-item:hover img { transform: scale(1.07); }

/* ═══ HOW TO PLAY ═══ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; padding: 32px 24px 28px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all var(--trans);
}
.step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -14px; top: 28px;
  color: var(--red); font-size: 1.2rem; z-index: 1;
}
.step:hover { border-color: var(--border-r); background: var(--surface2); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dk));
  color: var(--white); font-size: 1.05rem; font-weight: 800;
  margin-bottom: 20px; box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}
.step h3 { color: var(--white); margin-bottom: 10px; }
.step p { color: var(--text-mute); font-size: 0.9rem; line-height: 1.6; }
.step-link {
  display: inline-block; margin-top: 14px;
  color: var(--red-lt); font-weight: 700; font-size: 0.88rem;
}
.step-link:hover { color: var(--gold); }

/* ═══ PLATFORMS ═══ */
.platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.platforms-text p { color: var(--text-mute); margin-bottom: 28px; font-size: 1rem; line-height: 1.75; }
.platforms-text strong { color: var(--text); }
.dl-wrap { display: flex; flex-direction: column; gap: 12px; }
.dl-btn {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 20px;
  color: var(--text); transition: all var(--trans); max-width: 300px;
}
.dl-btn:hover {
  border-color: var(--red); background: var(--surface2);
  color: var(--white); transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.15);
}
.dl-ico { font-size: 1.8rem; flex-shrink: 0; }
.dl-txt { display: flex; flex-direction: column; }
.dl-txt span { font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.dl-txt strong { font-size: 1rem; font-weight: 700; color: var(--white); }
.platforms-img img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ═══ FAQ ═══ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--trans);
}
.faq-item.open { border-color: var(--border-r); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: none;
  color: var(--text); font-size: 0.97rem; font-weight: 600;
  text-align: left; transition: color var(--trans);
}
.faq-q:hover { color: var(--red-lt); }
.faq-item.open .faq-q { color: var(--red-lt); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--text-dim);
  position: relative; transition: all var(--trans);
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--text-dim); transition: all var(--trans);
}
.faq-icon::before { width: 10px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 2px; height: 10px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-item.open .faq-icon { border-color: var(--red); }
.faq-item.open .faq-icon::before { background: var(--red); }
.faq-item.open .faq-icon::after  { background: var(--red); opacity: 0; transform: translate(-50%,-50%) scaleY(0); }
.faq-a { padding: 0 24px 20px; animation: slideDown 0.22s ease; }
.faq-a p { color: var(--text-mute); font-size: 0.95rem; line-height: 1.7; }
.faq-a strong { color: var(--text); }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ═══ FINAL CTA ═══ */
.final-cta {
  position: relative; padding: 100px 0; text-align: center; overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border-r);
  border-bottom: 1px solid var(--border-r);
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(192,57,43,0.12) 0%, transparent 70%);
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.final-cta > .container > div > p { color: var(--text-mute); font-size: 1.1rem; margin-bottom: 32px; }
.cta-chips {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 36px;
}
.cta-chips span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.cta-fine { margin-top: 18px; font-size: 0.8rem; color: var(--text-dim); }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { color: var(--text-mute); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-langs a { font-size: 0.82rem; color: var(--text-mute); font-weight: 500; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--red-lt); }
.footer-nav ul, .footer-dl ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-dl a { color: var(--text-mute); font-size: 0.88rem; transition: color var(--trans); }
.footer-nav a:hover, .footer-dl a:hover { color: var(--red-lt); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--text-dim); font-size: 0.78rem; text-align: center; line-height: 1.65; }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-classes { display: none; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-block { grid-template-columns: 1fr; gap: 36px; }
  .feat-block.reverse .feat-text, .feat-block.reverse .feat-vis { order: unset; }
  .class-detail { grid-template-columns: 1fr 1.4fr; }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg3); border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px 16px; font-size: 1rem; }
  .header-actions .btn-cta { display: none; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img { order: -1; }
  .about-img-badge { right: 0; bottom: 0; }
  .platforms-grid { grid-template-columns: 1fr; gap: 36px; }
  .platforms-img { order: -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .trust-inner { flex-direction: column; gap: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }
  .modes-grid { grid-template-columns: 1fr; }
  .class-detail { grid-template-columns: 1fr; }
  .cd-img { aspect-ratio: 16/9; max-height: 240px; }
  .cd-body { padding: 24px; }
  .cd-stats { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-stats { flex-direction: column; }
  .hstat { border-right: none; border-bottom: 1px solid var(--border); }
  .hstat:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .scroll-arrow { animation: none; }
}
