:root {
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --blue-200: #bdd2ff;
  --blue-300: #92b2ff;
  --blue-500: #2e63f6;
  --blue-600: #0f62fe;
  --blue-700: #0047d1;
  --blue-950: #001a4d;
  --slate-50: #f6f8fb;
  --slate-100: #eef2f8;
  --slate-200: #dce3ed;
  --slate-300: #c3cedd;
  --slate-500: #6b7c96;
  --slate-700: #38465e;
  --slate-900: #131f33;
  --navy: #091a3a;
  --navy-2: #102450;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.72);
  --border: rgba(18, 40, 83, 0.12);
  --border-strong: rgba(18, 40, 83, 0.2);
  --fg-1: #0e1b2e;
  --fg-2: #38465e;
  --fg-3: #6b7c96;
  --fg-4: #93a4c0;
  --success: #15a05a;
  --success-soft: rgba(21, 160, 90, 0.12);
  --shadow-1: 0 10px 30px rgba(14, 27, 46, 0.08);
  --shadow-2: 0 18px 44px rgba(14, 27, 46, 0.12);
  --shadow-3: 0 28px 80px rgba(15, 98, 254, 0.18);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", "Anuphan", system-ui, sans-serif;
  color: var(--fg-2);
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.18), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #edf4ff 30%, #f9fbff 58%, #f5f8ff 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(15, 98, 254, 0.08);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}

.brand img {
  width: 220px;
  height: auto;
}

.topbar-menu {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
}

.topnav a {
  transition: color 180ms ease;
}

.topnav a:hover,
.footer-links a:hover {
  color: var(--blue-600);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 98, 254, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

.topbar-actions,
.hero-actions,
.music-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 98, 254, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-1);
}

.lang-btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-btn:hover {
  color: var(--fg-1);
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--blue-600), #3b82ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 98, 254, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), #3b82ff);
  color: #fff;
  box-shadow: var(--shadow-3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
}

.btn-secondary {
  border-color: rgba(15, 98, 254, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--fg-1);
  box-shadow: var(--shadow-1);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(15, 98, 254, 0.3);
}

.btn-ghost {
  border-color: rgba(15, 98, 254, 0.14);
  background: rgba(15, 98, 254, 0.06);
  color: var(--blue-700);
}

.hero {
  position: relative;
  padding: 56px 0 30px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(15, 98, 254, 0.18), transparent 32%),
    radial-gradient(circle at 80% 30%, rgba(46, 99, 246, 0.16), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 14px;
  color: var(--fg-1);
  font-size: clamp(34px, 5.1vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--blue-600);
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 98, 254, 0.16);
  box-shadow: var(--shadow-1);
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(21, 160, 90, 0.12);
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--fg-2);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-card,
.greeting-card,
.info-card,
.showcase-card,
.cta-card,
.music-panel,
.ribbon-card,
.mascot-panel {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
}

.meta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.meta-card strong {
  color: var(--fg-1);
  font-size: 18px;
}

.meta-label,
.meta-sub,
.greeting-status,
.music-status,
.panel-inline-status {
  color: var(--fg-3);
  font-size: 12px;
}

.greeting-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.greeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.greeting-card p {
  margin: 0;
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
}

.chip {
  width: fit-content;
  color: var(--fg-1);
  background: rgba(15, 98, 254, 0.1);
}

.chip-soft {
  color: var(--blue-700);
  background: rgba(15, 98, 254, 0.1);
}

.chip-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #3b82ff);
}

.hero-visual {
  position: relative;
}

.mascot-stage {
  position: relative;
  padding: 22px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 249, 255, 0.72)),
    radial-gradient(circle at top right, rgba(15, 98, 254, 0.18), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-2);
}

.mascot-image {
  width: min(100%, 540px);
  margin: 0 auto;
  border-radius: 30px;
  box-shadow: var(--shadow-2);
}

.float-pill {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 26, 58, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(9, 26, 58, 0.22);
}

.pill-a {
  top: 30px;
  left: -10px;
}

.pill-b {
  right: -12px;
  top: 104px;
}

.pill-c {
  left: 22px;
  bottom: 146px;
}

.mascot-panel {
  display: grid;
  gap: 12px;
  margin-top: -40px;
  margin-left: auto;
  width: min(320px, 92%);
  padding: 16px;
  border-radius: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-copy {
  display: grid;
  gap: 8px;
}

.panel-copy strong {
  color: var(--fg-1);
  font-size: 16px;
}

.panel-copy span {
  font-size: 14px;
  line-height: 1.65;
}

.feature-ribbon {
  padding: 12px 0 28px;
}

.ribbon-grid,
.card-grid,
.showcase-grid,
.music-grid {
  display: grid;
  gap: 18px;
}

.ribbon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ribbon-card {
  padding: 20px;
  border-radius: 24px;
}

.ribbon-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(15, 98, 254, 0.12);
  color: var(--blue-700);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

.ribbon-card h2,
.section-head h2,
.music-copy h2,
.cta-card h2 {
  margin: 14px 0 10px;
  color: var(--fg-1);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ribbon-card p,
.section-head p,
.info-card p,
.showcase-copy p,
.music-copy p,
.cta-card p,
.footer p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}

.section {
  padding: 56px 0;
}

.section-dark {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.2), transparent 28%),
    linear-gradient(180deg, var(--navy) 0%, #07152f 100%);
}

.section-dark .section-head h2,
.section-dark .section-head p,
.section-dark .showcase-copy h3,
.section-dark .showcase-copy p {
  color: #edf4ff;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-bottom: 24px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 18px;
  border-radius: 20px;
}

.info-card h3,
.showcase-copy h3 {
  margin: 0 0 10px;
  color: var(--fg-1);
  font-size: 18px;
}

.info-card a {
  color: var(--blue-700);
  font-weight: 700;
}

.showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-card {
  overflow: hidden;
  border-radius: 28px;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 1.15 / 0.9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.showcase-copy {
  padding: 18px;
}

.music-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.music-copy {
  display: grid;
  gap: 14px;
}

.music-status {
  color: var(--fg-3);
}

.music-visual {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.wave {
  width: min(440px, 100%);
  min-height: 200px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(15, 98, 254, 0.12);
  background:
    radial-gradient(circle at top, rgba(15, 98, 254, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 247, 255, 0.7));
}

.bar {
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(180deg, #85b4ff 0%, var(--blue-600) 100%);
  box-shadow: 0 14px 30px rgba(15, 98, 254, 0.2);
  transform-origin: bottom center;
}

.music-panel {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 22px;
}

.music-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(18, 40, 83, 0.1);
}

.music-line:last-child {
  border-bottom: 0;
}

.music-line span {
  color: var(--fg-3);
}

.music-line strong {
  color: var(--fg-1);
}

.cta-section {
  padding-top: 8px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.12), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.82);
}

.footer {
  padding: 34px 0 46px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 40, 83, 0.12);
}

.footer-logo {
  width: 188px;
  margin-bottom: 10px;
}

.footer-links,
.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.music-on .bar {
  animation: wave 1.4s ease-in-out infinite;
}

body.music-on .bar:nth-child(2n) {
  animation-duration: 1.1s;
}

body.music-on .bar:nth-child(3n) {
  animation-duration: 1.8s;
}

body.music-on .bar:nth-child(4n) {
  animation-duration: 0.95s;
}

body.music-on .bar:nth-child(2) {
  animation-delay: 0.18s;
}

body.music-on .bar:nth-child(3) {
  animation-delay: 0.3s;
}

body.music-on .bar:nth-child(4) {
  animation-delay: 0.12s;
}

body.music-on .bar:nth-child(5) {
  animation-delay: 0.26s;
}

body.music-on .bar:nth-child(6) {
  animation-delay: 0.08s;
}

body.music-on .bar:nth-child(7) {
  animation-delay: 0.32s;
}

body.music-on .bar:nth-child(8) {
  animation-delay: 0.16s;
}

body.music-on .bar:nth-child(9) {
  animation-delay: 0.24s;
}

body.music-on .bar:nth-child(10) {
  animation-delay: 0.04s;
}

body.music-on .bar:nth-child(11) {
  animation-delay: 0.28s;
}

body.music-on .bar:nth-child(12) {
  animation-delay: 0.2s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.28);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .topbar-inner,
  .footer-inner,
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-inner {
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(15, 98, 254, 0.08);
  }

  .topbar-inner.is-menu-open .topbar-menu {
    display: flex;
  }

  .hero-grid,
  .music-grid {
    grid-template-columns: 1fr;
  }

  .topnav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topnav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 98, 254, 0.05);
    border: 1px solid rgba(15, 98, 254, 0.08);
  }

  .topbar-actions {
    width: 100%;
  }

  .hero-meta,
  .ribbon-grid,
  .card-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 28px;
  }

  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .hero-lead,
  .ribbon-card p,
  .section-head p,
  .info-card p,
  .showcase-copy p,
  .music-copy p,
  .cta-card p,
  .footer p {
    font-size: 14px;
  }

  .ribbon-card h2,
  .section-head h2,
  .music-copy h2,
  .cta-card h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .topbar-actions,
  .hero-actions,
  .music-actions,
  .cta-actions,
  .lang-switch,
  .footer-links,
  .footer-meta {
    width: 100%;
  }

  .lang-switch {
    justify-content: center;
  }

  .topbar-actions .btn,
  .hero-actions .btn,
  .music-actions .btn,
  .cta-actions .btn {
    flex: 1 1 220px;
  }

  .menu-toggle {
    width: auto;
  }

  .hero-meta,
  .ribbon-grid,
  .card-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .greeting-header,
  .music-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-pill {
    position: static;
    display: inline-flex;
    margin: 0 10px 10px 0;
  }

  .mascot-stage {
    padding: 16px;
  }

  .mascot-panel {
    width: 100%;
    margin-top: 18px;
  }

  .wave {
    min-height: 180px;
  }
}
