/* ===== Happy Star / Linkjoy — Official Site ===== */
:root {
  --bg: #0B0F1A;
  --bg-2: #0F1626;
  --surface: #131C30;
  --surface-2: #1A2540;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --gold: #FFC93C;
  --gold-2: #FFB627;
  --pink: #FF5E7E;
  --grad: linear-gradient(135deg, #FFC93C 0%, #FF5E7E 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 201, 60, 0.16) 0%, rgba(255, 94, 126, 0.16) 100%);
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0B0F1A; }

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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }

.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .name .b1 { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.brand .name .b2 { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #0B0F1A;
  padding: 12px 22px;
  font-size: 14px;
  box-shadow: 0 12px 30px -10px rgba(255, 94, 126, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255, 94, 126, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 20px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: rgba(255, 201, 60, 0.6); color: var(--gold); }

main { padding-top: 68px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero .glow .g1, .hero .glow .g2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.hero .glow .g1 {
  width: 460px; height: 460px;
  background: rgba(255, 201, 60, 0.22);
  top: -120px; left: 6%;
}
.hero .glow .g2 {
  width: 460px; height: 460px;
  background: rgba(255, 94, 126, 0.2);
  bottom: -160px; right: 4%;
}

.hero .grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 201, 60, 0.1);
  border: 1px solid rgba(255, 201, 60, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 520px;
}

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.play-badge:hover { transform: translateY(-2px); border-color: var(--gold); }
.play-badge .pico { width: 28px; height: 28px; flex: 0 0 auto; }
.play-badge .ptxt { display: flex; flex-direction: column; line-height: 1.1; }
.play-badge .ptxt .s { font-size: 10px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); }
.play-badge .ptxt .b { font-size: 16px; font-weight: 700; }

.hero .platforms { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* phone mockup */
.hero .visual { display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  width: 300px;
  height: 612px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a2540, #0c1120);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), inset 0 0 0 8px #05080f;
  padding: 14px;
  overflow: hidden;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2a1f3d 0%, #120a22 55%, #0b0716 100%);
}
.phone .notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #05080f;
  border-radius: 14px;
  z-index: 5;
}
.phone .live-tag {
  position: absolute; top: 46px; left: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 60, 90, 0.92);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  padding: 5px 9px; border-radius: 999px;
}
.phone .live-tag .ld { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.phone .viewers {
  position: absolute; top: 46px; right: 16px; z-index: 4;
  font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.4); padding: 5px 9px; border-radius: 999px;
}
.phone .avatar {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px rgba(255, 94, 126, 0.55);
}
.phone .avatar span { font-size: 34px; }
.phone .uname { position: absolute; bottom: 72px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; }
.phone .uname small { display: block; font-weight: 500; color: rgba(255,255,255,0.6); font-size: 10px; }
.phone .gifts {
  position: absolute; bottom: 20px; left: 14px; right: 14px;
  display: flex; gap: 8px; justify-content: center;
}
.phone .gifts .gb {
  flex: 1; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.phone .gifts .gb.hi { background: var(--grad-soft); border-color: rgba(255,201,60,0.4); }

/* ===== Section base ===== */
section.block { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-head h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 17px; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 201, 60, 0.4); }
.card .ico {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ===== Steps / About strip ===== */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 12px 0; }
.stat .num { font-size: clamp(30px, 4vw, 40px); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ===== CTA band ===== */
.cta-band { padding: 80px 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 201, 60, 0.25);
}
.cta-card .glowstar { position: absolute; top: -40px; right: -30px; opacity: 0.18; width: 220px; height: 220px; }
.cta-card h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-card p { margin: 0 auto 28px; color: var(--text-muted); max-width: 520px; }
.cta-card .play-badge { background: #0B0F1A; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.site-footer .top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  align-items: flex-start;
}
.site-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .fbrand .mark { width: 30px; height: 30px; }
.site-footer .fbrand .nm { font-weight: 800; font-size: 17px; }
.site-footer .fcompany { color: var(--text-muted); font-size: 14px; max-width: 340px; }
.site-footer .fcompany strong { color: var(--text); font-weight: 700; }

.site-footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .flinks a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.site-footer .flinks a:hover { color: var(--gold); }

.site-footer .faddr { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.site-footer .faddr .lab { color: var(--text); font-weight: 700; display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

.site-footer .bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 13px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .visual { order: -1; }
  .phone { width: 270px; height: 550px; }
  .features { grid-template-columns: 1fr; }
  .about .grid { grid-template-columns: 1fr; gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 64px 0 48px; }
  section.block { padding: 64px 0; }
  .cta-card { padding: 40px 22px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand .name .b2 { display: none; }
  .play-badge { padding: 9px 14px; }
  .play-badge .ptxt .b { font-size: 14px; }
}
