/* =========================================================
   海乐美 · Hailemei — Stylesheet
   Theme: deep ocean night + cyan foam + soft sunlight
   Inspired by indie studio patterns:
   - Supergiant / Team Cherry: hero + games + news + about
   - GitHub landing templates: responsive game cards, dark palette
   ========================================================= */

:root {
  --bg:        #031525;
  --bg-2:      #041a2e;
  --surface:   #0a2744;
  --surface-2: #0d3358;
  --line:      rgba(103, 232, 249, 0.14);

  --cyan:      #22d3ee;
  --cyan-2:    #67e8f9;
  --teal:      #14b8a6;
  --blue:      #38bdf8;
  --deep:      #0369a1;
  --sun:       #fde68a;
  --sun-2:     #fcd34d;
  --foam:      #a5f3fc;

  --text:      #e0f2fe;
  --muted:     #8bb8d0;
  --faint:     #5a849c;

  --maxw: 1160px;
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Outfit", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-logo: "ZCOOL KuaiLe", "Outfit", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Ambient ocean depths */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 12% 0%, rgba(34,211,238,.12), transparent 58%),
    radial-gradient(48% 42% at 95% 18%, rgba(56,189,248,.10), transparent 55%),
    radial-gradient(70% 55% at 50% 105%, rgba(20,184,166,.09), transparent 60%),
    radial-gradient(30% 30% at 70% 60%, rgba(253,230,138,.04), transparent 50%),
    var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

a { color: inherit; text-decoration: none; }
.grad {
  background: linear-gradient(105deg, var(--cyan) 0%, var(--foam) 42%, var(--sun) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  color: #031525;
  background: linear-gradient(105deg, var(--cyan), var(--foam));
  box-shadow: 0 8px 30px -8px rgba(34,211,238,.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -10px rgba(34,211,238,.7); }
.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--cyan); transform: translateY(-3px); }

/* ===================== Nav ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(3,21,37,.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--text);
  flex-shrink: 0;
}
.brand__mark {
  display: grid; place-items: center;
  color: var(--cyan-2);
  filter: drop-shadow(0 0 12px rgba(34,211,238,.45));
}
.brand__en {
  display: block;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.nav__links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: .45em .85em;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(34,211,238,.08); }

.nav__cta { margin-left: 8px; font-size: .9rem; padding: .65em 1.15em; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34,211,238,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; margin-left: auto;
}
.nav__burger span {
  display: block; height: 2px; width: 18px; margin-inline: auto;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 110px 0 140px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .85;
}
.hero__glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,211,238,.18) 0%, rgba(14,116,144,.08) 40%, transparent 68%);
  pointer-events: none;
  filter: blur(4px);
}
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
  overflow: hidden;
}
.wave {
  position: absolute; left: 0; bottom: 0;
  width: 200%; height: 100%;
  fill: var(--bg-2);
}
.wave--1 { opacity: .35; animation: waveMove 14s linear infinite; fill: rgba(8,145,178,.25); }
.wave--2 { opacity: .45; animation: waveMove 10s linear infinite reverse; bottom: -8px; fill: rgba(6,78,110,.45); }
.wave--3 { opacity: .9; animation: waveMove 18s linear infinite; bottom: -16px; fill: var(--bg-2); }
@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 2rem;
}
.hero__sub strong { color: var(--foam); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.75rem; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--cyan-2);
  letter-spacing: -.02em;
}
.stat__label { font-size: .85rem; color: var(--faint); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 48px;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .35; }
}

/* ===================== Marquee ===================== */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(10,39,68,.55);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .16em;
  color: var(--muted);
  animation: marquee 32s linear infinite;
}
.marquee .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  opacity: .7;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== Sections ===================== */
.section { padding: 100px 0; }
.section__kicker {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section__desc {
  color: var(--muted);
  max-width: 36em;
  margin-bottom: .5rem;
}
.section__head { margin-bottom: 2.75rem; }

/* ===================== About ===================== */
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__art {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  display: grid; place-items: center;
}
.about__orb {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(253,230,138,.35), transparent 35%),
    radial-gradient(circle at 60% 60%, rgba(34,211,238,.35), transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(20,184,166,.4), transparent 55%),
    linear-gradient(160deg, #0c4a6e, #164e63 50%, #083344);
  box-shadow:
    0 0 60px rgba(34,211,238,.25),
    inset 0 -20px 40px rgba(3,21,37,.4);
  animation: orbFloat 8s ease-in-out infinite;
}
.about__ring {
  position: absolute; inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(103,232,249,.25);
  animation: spinSlow 40s linear infinite;
}
.about__emblem {
  position: relative;
  width: 88px; height: 88px;
  color: var(--foam);
  filter: drop-shadow(0 0 18px rgba(34,211,238,.5));
  z-index: 1;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.about__text p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.about__points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 12px;
}
.about__points li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(10,39,68,.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .95rem;
  color: var(--text);
}
.about__points svg {
  width: 22px; height: 22px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ===================== Games ===================== */
.games { background: linear-gradient(180deg, transparent, rgba(8,47,73,.35) 40%, transparent); }
.games__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 20px 50px -20px rgba(3,105,161,.55);
}
.game-card--featured { grid-row: span 1; }
.game-card__visual {
  position: relative;
  height: 160px;
  display: grid; place-items: center;
  overflow: hidden;
}
.game-card--featured .game-card__visual { height: 200px; }
.game-card__visual--a {
  background:
    radial-gradient(circle at 70% 30%, rgba(253,230,138,.25), transparent 40%),
    linear-gradient(145deg, #0c4a6e, #155e75 40%, #0e7490);
}
.game-card__visual--b {
  background:
    radial-gradient(circle at 30% 70%, rgba(103,232,249,.3), transparent 45%),
    linear-gradient(145deg, #164e63, #0f766e 50%, #115e59);
}
.game-card__visual--c {
  background:
    radial-gradient(circle at 60% 40%, rgba(56,189,248,.25), transparent 40%),
    linear-gradient(145deg, #1e3a5f, #1e40af 45%, #0e7490);
}
.game-card__shine {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.game-card:hover .game-card__shine { transform: translateX(100%); }
.game-card__glyph { font-size: 3rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); z-index: 1; }
.game-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.game-card__status {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3em .7em;
  border-radius: 999px;
  background: rgba(34,211,238,.15);
  color: var(--cyan-2);
  border: 1px solid rgba(34,211,238,.25);
}
.game-card__status--soon {
  background: rgba(253,230,138,.1);
  color: var(--sun);
  border-color: rgba(253,230,138,.22);
}
.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.game-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.game-card__tags span {
  font-size: .75rem;
  padding: .25em .65em;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--faint);
  border: 1px solid var(--line);
}

/* ===================== Values ===================== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value {
  padding: 28px 24px;
  background: rgba(10,39,68,.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease);
}
.value:hover {
  border-color: rgba(34,211,238,.3);
  transform: translateY(-4px);
}
.value__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(20,184,166,.12));
  color: var(--cyan-2);
  margin-bottom: 1.1rem;
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .55rem;
}
.value p { color: var(--muted); font-size: .95rem; }

/* ===================== News ===================== */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), border-color .25s;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.28);
}
.news-card__tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .25em .65em;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  color: var(--blue);
}
.news-card time { font-size: .82rem; color: var(--faint); }
.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.4;
}
.news-card p { color: var(--muted); font-size: .92rem; }

/* ===================== Careers ===================== */
.careers__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 48px 44px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34,211,238,.15), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(253,230,138,.08), transparent 45%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
.careers__text p { color: var(--muted); margin-bottom: 1.25rem; max-width: 36em; }
.careers__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 1.75rem;
}
.careers__tags span {
  font-size: .85rem;
  padding: .4em .85em;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.careers__deco {
  width: 120px; height: 120px;
  color: var(--cyan);
  opacity: .35;
  filter: drop-shadow(0 0 24px rgba(34,211,238,.3));
}
.careers__deco svg { width: 100%; height: 100%; }

/* ===================== Footer ===================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: rgba(2,12,22,.6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer__brand > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
}
.footer__legal-name {
  margin-top: 16px !important;
  color: var(--text) !important;
  font-size: .92rem !important;
  font-weight: 600;
}
.footer__legal-name-en {
  margin-top: 4px !important;
  color: var(--faint) !important;
  font-size: .78rem !important;
  font-family: var(--font-display);
  letter-spacing: .02em;
  line-height: 1.4;
}
.footer__address {
  margin-top: 14px;
  font-style: normal;
  font-size: .85rem;
  color: var(--faint);
  line-height: 1.65;
}
.footer__duns {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer__cols h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--foam);
  margin-bottom: 14px;
}
.footer__cols a {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--cyan-2); }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--faint);
}
.footer__legal a:hover { color: var(--cyan-2); }

/* ===================== Reveal ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__art { max-width: 280px; }
  .games__grid { grid-template-columns: 1fr; }
  .values__grid, .news__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .careers__inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .careers__deco { display: none; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(4,26,46,.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    display: none;
    margin-left: 0;
    z-index: 60;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .85em 1em; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .values__grid, .news__grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 120px; }
  .hero__stats { gap: 20px 28px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
