/* ═══════════════════════════════════════════════════
   Jin Online – Homepage (Dark MMORPG Landing)
   ═══════════════════════════════════════════════════ */

/* ── Reset page-home overrides ── */
.page-home {
  padding: 0;
  gap: 0;
  background: #060a14;
  color: #dce6f5;
}

.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(60, 140, 255, 0.15), transparent 52%),
    radial-gradient(circle at 82% 16%, rgba(80, 160, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 88%, rgba(40, 120, 200, 0.1), transparent 62%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

.page-home::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle, rgba(100, 220, 255, 0.5) 1px, transparent 2px),
    radial-gradient(circle, rgba(80, 180, 255, 0.35) 1px, transparent 2px);
  background-size: 180px 180px, 260px 260px;
  animation: driftParticles 20s linear infinite;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

/* ═══════════════════════════════
   HERO – Full viewport
   ═══════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  background: url("images/background.jpg") center/cover no-repeat;
}

.hero__overlay {
  display: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(100, 220, 255, 0.5) 1px, transparent 2px),
    radial-gradient(circle, rgba(80, 180, 255, 0.35) 1px, transparent 2px);
  background-size: 180px 180px, 260px 260px;
  animation: driftParticles 20s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes driftParticles {
  from { background-position: 0 0, 40px 60px; }
  to { background-position: -200px -300px, -160px -240px; }
}

/* ── Floating Nav ── */
.hero__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  transition: padding 300ms ease;
}

.hero-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-radius: 16px;
  background: rgba(6, 10, 20, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 200, 255, 0.1);
  transition: all 300ms ease;
}

.hero-nav.is-scrolled {
  background: rgba(6, 10, 20, 0.88);
  border-color: rgba(100, 200, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
}

.hero-nav__brand { flex-shrink: 0; }
.hero-nav__brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.hero-nav__links a {
  display: block;
  padding: 6px 10px;
  color: rgba(220, 235, 255, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: color 200ms, background 200ms;
}

.hero-nav__links a:hover,
.hero-nav__links a.is-active {
  color: #fff;
  background: rgba(100, 200, 255, 0.12);
}

.hero-nav__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.hero-nav__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 200ms, transform 200ms;
}

.hero-nav__social a:hover {
  background: rgba(100, 200, 255, 0.15);
  transform: translateY(-1px);
}

.hero-nav__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.8;
}

.bg-sound-btn {
  background: transparent;
  border: 1px solid rgba(100,200,255,0.2);
  border-radius: 6px;
  color: rgba(180,210,255,0.35);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 9px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.bg-sound-btn.is-on {
  border-color: rgba(58,180,242,0.45);
  color: rgba(58,180,242,0.85);
}
.bg-sound-btn:hover {
  border-color: rgba(58,180,242,0.4);
  color: rgba(180,210,255,0.75);
}

/* ── Hero content ── */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__logo {
  width: min(420px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(60, 180, 255, 0.35));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 8px 40px rgba(60, 180, 255, 0.35)); }
  50% { filter: drop-shadow(0 8px 60px rgba(60, 180, 255, 0.55)); }
}

.hero__tagline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(180, 220, 255, 0.8);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* ── Hero Buttons ── */
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.hero-btn--primary {
  background: linear-gradient(135deg, #3ab4f2, #1a8fe0);
  color: #fff;
  border: 1px solid rgba(80, 200, 255, 0.5);
  box-shadow:
    0 4px 20px rgba(58, 180, 242, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(58, 180, 242, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(80, 200, 255, 0.3), transparent, rgba(80, 200, 255, 0.3));
  animation: btnGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-btn--ghost {
  background: transparent;
  color: rgba(200, 230, 255, 0.9);
  border: 1px solid rgba(200, 230, 255, 0.3);
}

.hero-btn--ghost:hover {
  background: rgba(200, 230, 255, 0.08);
  border-color: rgba(200, 230, 255, 0.5);
  transform: translateY(-2px);
}

/* ── Server Status Badge ── */
.hero__status {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 200, 255, 0.15);
  animation: heroFadeIn 1.2s ease-out 0.6s both;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7), 0 0 16px rgba(34, 197, 94, 0.3);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-count {
  font-size: 0.75rem;
  color: rgba(200, 220, 255, 0.65);
}

.status-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 14px;
  border-left: 1px solid rgba(200, 230, 255, 0.15);
}

.status-time__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(200, 220, 255, 0.5);
}

.status-time__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(200, 230, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(200, 230, 255, 0.3);
}

.hero__scroll span::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: rgba(200, 230, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ═══════════════════════════════
   SECTIONS – Shared
   ═══════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 48px;
}

.section__header--center {
  text-align: center;
}

.section__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #3ab4f2;
  margin-bottom: 12px;
}

.section__title {
  margin: 0;
  font-family: "Fraunces", "Palatino Linotype", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.section__sub {
  margin: 10px 0 0;
  color: rgba(200, 220, 255, 0.6);
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════
   NEWS
   ═══════════════════════════════ */
.section--news {
  background: linear-gradient(180deg, #060a14 0%, #0a1020 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: rgba(12, 20, 40, 0.7);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 200, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.news-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.news-card__img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.news-card--featured .news-card__img {
  width: 340px;
  min-height: 200px;
  aspect-ratio: auto;
}

.news-card--featured .news-card__img img {
  object-fit: contain;
}

.news-card:hover .news-card__img img {
  transform: scale(1.05);
}

.news-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card__badge--event { background: rgba(139, 92, 246, 0.85); color: #fff; }
.news-card__badge--update { background: rgba(59, 130, 246, 0.85); color: #fff; }
.news-card__badge--promo { background: rgba(34, 197, 94, 0.85); color: #fff; }
.news-card__badge--maint { background: rgba(245, 158, 11, 0.85); color: #fff; }

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card__body h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: #fff;
}

.news-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(200, 220, 255, 0.6);
  line-height: 1.5;
  flex: 1;
}

.news-card__body time {
  font-size: 0.72rem;
  color: rgba(200, 220, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════
   CLASS SHOWCASE
   ═══════════════════════════════ */
.section--classes {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(30, 60, 120, 0.25), transparent 70%),
    linear-gradient(180deg, #0a1020 0%, #060a14 100%);
}

.class-showcase__arena {
  position: relative;
  background: rgba(8, 14, 30, 0.6);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  min-height: 900px;
}

.class-showcase__arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(60, 140, 255, 0.08), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(100, 200, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.class-showcase__arena .allclass {
  height: 860px;
}

/* Class tooltip override for dark theme */
.page-home .class-tooltip {
  background: rgba(6, 10, 20, 0.95);
  border-color: rgba(60, 180, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(60, 180, 255, 0.1);
}

/* ═══════════════════════════════
   FEATURES
   ═══════════════════════════════ */
.section--features {
  background: linear-gradient(180deg, #060a14 0%, #0a1228 100%);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: rgba(12, 20, 40, 0.6);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 200, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(58, 180, 242, 0.1);
  border: 1px solid rgba(58, 180, 242, 0.2);
  margin-bottom: 16px;
}

.feat-card__icon svg {
  width: 26px;
  height: 26px;
  color: #3ab4f2;
}

.feat-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: #fff;
}

.feat-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(200, 220, 255, 0.55);
  line-height: 1.55;
}

/* ═══════════════════════════════
   CTA BANNER
   ═══════════════════════════════ */
.section--cta {
  padding: 0;
  background: transparent;
}

.cta-banner {
  position: relative;
  padding: 80px 32px;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: url("images/background_backup/background4.jpg") center/cover no-repeat;
  filter: brightness(0.3) blur(2px);
}

.cta-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 10, 20, 0.8) 0%,
    rgba(6, 10, 20, 0.4) 50%,
    rgba(6, 10, 20, 0.8) 100%);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner__content h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  color: #fff;
}

.cta-banner__content p {
  margin: 0 0 28px;
  color: rgba(200, 220, 255, 0.7);
  font-size: 1.05rem;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ═══════════════════════════════
   SIDEBAR QUICK LINKS
   ═══════════════════════════════ */
.side-quick {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  display: grid;
  gap: 10px;
  z-index: 50;
  justify-items: center;
}

.side-quick__btn {
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.side-quick__btn img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.side-quick__btn img[alt="Top up"] {
  width: 130px;
  height: 130px;
}

.side-quick__btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.home-footer {
  position: relative;
  z-index: 1;
  background: #040810;
  border-top: 1px solid rgba(100, 200, 255, 0.08);
}

.home-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.home-footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.home-footer__brand p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(200, 220, 255, 0.45);
}

.home-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-footer__links h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200, 220, 255, 0.5);
}

.home-footer__links a {
  color: rgba(200, 220, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 200ms;
}

.home-footer__links a:hover {
  color: #3ab4f2;
}

.home-footer__bottom {
  border-top: 1px solid rgba(100, 200, 255, 0.06);
  padding: 18px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(200, 220, 255, 0.3);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1024px) {
  .hero-nav__brand { display: none; }

  .hero-nav__links {
    gap: 2px;
  }

  .hero-nav__links a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card--featured {
    grid-column: 1 / -1;
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .side-quick__btn img {
    width: 80px;
    height: 80px;
  }

  .side-quick__btn img[alt="Top up"] {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .hero__header {
    padding: 10px 16px;
  }

  .hero-nav {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .hero-nav__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-nav__social {
    display: none;
  }

  .hero__logo {
    width: min(320px, 80vw);
  }

  .hero__tagline {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
  }

  .hero__status {
    bottom: 80px;
    padding: 8px 16px;
    gap: 10px;
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 20px;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    flex-direction: column;
  }

  .news-card--featured .news-card__img {
    width: 100%;
    min-height: 160px;
    max-height: 200px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner__content h2 {
    font-size: 1.6rem;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .home-footer__links {
    align-items: center;
  }

  .side-quick,
  .ad-left {
    display: none;
  }

  .class-showcase__arena {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-nav__links a {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .hero__status {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 14px;
    width: calc(100% - 40px);
  }

  .status-time {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(200, 230, 255, 0.1);
    padding-top: 6px;
    width: 100%;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE – Homepage specifics
   ═══════════════════════════════════════════════════ */

/* ── Tablet class showcase scaling ── */
@media (max-width: 1024px) {
  .class-showcase__arena {
    min-height: 560px;
    padding: 20px;
  }

  .class-showcase__arena .allclass {
    height: 520px;
    transform: scale(0.58);
    transform-origin: top center;
  }

  .class-logo {
    width: 320px;
  }
}

/* ── Mobile class showcase ── */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__content {
    padding: 0 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .section__sub {
    font-size: 0.88rem;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .class-showcase__arena {
    min-height: 380px;
    padding: 16px;
  }

  .class-showcase__arena .allclass {
    height: 380px;
    transform: scale(0.4);
    transform-origin: top center;
  }

  .class-logo {
    width: 240px;
  }

  .class-video iframe {
    height: 200px;
  }

  .news-card--featured .news-card__img {
    width: 100%;
    max-height: 200px;
    aspect-ratio: 16/9;
  }

  .cta-banner {
    padding: 48px 20px;
  }

  .cta-banner__content h2 {
    font-size: 1.4rem;
  }

  .home-footer__inner {
    padding: 32px 20px;
  }
}

/* ── Small phone ── */
@media (max-width: 480px) {
  .hero__logo {
    width: min(280px, 75vw);
  }

  .hero__tagline {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .hero-btn {
    padding: 12px 28px;
    font-size: 0.88rem;
  }

  .hero__status {
    bottom: 60px;
    font-size: 0.8rem;
  }

  .hero__scroll {
    bottom: 16px;
  }

  .section {
    padding: 36px 12px;
  }

  .section__title {
    font-size: 1.3rem;
  }

  .class-showcase__arena {
    min-height: 300px;
    padding: 12px;
  }

  .class-showcase__arena .allclass {
    height: 300px;
    transform: scale(0.3);
    transform-origin: top center;
  }

  .class-logo {
    width: 180px;
  }

  .news-card__body {
    padding: 14px;
  }

  .news-card__body h3 {
    font-size: 0.92rem;
  }

  .feat-card {
    padding: 22px 16px;
  }

  .feat-card h3 {
    font-size: 0.95rem;
  }

  .home-footer__inner {
    padding: 28px 16px;
  }
}

/* ── Very small phone ── */
@media (max-width: 360px) {
  .hero__logo {
    width: min(240px, 80vw);
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .class-showcase__arena {
    min-height: 250px;
  }

  .class-showcase__arena .allclass {
    height: 250px;
    transform: scale(0.25);
  }
}
