@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --night: #0B0F19;
  --night-2: #111827;
  --indigo: #6366F1;
  --mystic: #A855F7;
  --moon: #22D3EE;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --card: rgba(30, 41, 59, 0.6);
  --border: rgba(99, 102, 241, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--night);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Ma Shan Zheng', cursive; margin: 0 0 .5em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; text-align: center; margin-bottom: .25em; position: relative; }
.section-title span { color: var(--moon); }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 9999px;
  font-weight: 700; transition: all .25s ease; cursor: pointer; border: 0;
}
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--mystic)); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,85,247,.45); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--moon); }
.btn-outline:hover { background: rgba(34,211,238,.1); border-color: var(--moon); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.glass-card { background: var(--card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 1rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; background: rgba(11,15,25,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: 'Ma Shan Zheng', cursive; font-size: 1.4rem; color: #fff; line-height: 1; }
.brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: flex; align-items: center; gap: .4rem; padding: .5rem .85rem; color: var(--text); font-size: .95rem; border-radius: .5rem; transition: .2s; position: relative; }
.main-nav li a:hover { color: var(--moon); background: rgba(99,102,241,.1); }
.main-nav li.active a { color: var(--moon); }
.main-nav li.active a::after { content:''; position:absolute; bottom:0; left:20%; width:60%; height:2px; background: var(--moon); border-radius:2px; box-shadow:0 0 8px var(--moon); }
.nav-download { padding: .55rem 1rem; font-size: .9rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }
.hamburger.open span:nth-child(1){ transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .main-nav { position: fixed; top: 70px; right: -100%; width: 70%; max-width: 280px; height: calc(100vh - 70px); flex-direction: column; align-items: stretch; padding: 1.5rem; background: rgba(11,15,25,.96); border-left: 1px solid var(--border); transition: right .3s ease; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: .5rem; }
  .main-nav li a { padding: .85rem 1rem; }
  .main-nav li.active a::after { left: 0; width: 100%; }
  .nav-download { margin-top: 1rem; justify-content: center; }
}

/* Footer */
.site-footer { background: linear-gradient(180deg, rgba(17,24,39,0), rgba(17,24,39,1)); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: .75rem; border: 1px solid var(--border); }
.footer-brand h3 { font-size: 1.6rem; color: #fff; }
.footer-brand p { color: var(--muted); }
.footer-contact h4, .footer-links h4 { font-size: 1.1rem; color: var(--moon); margin-bottom: 1rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.contact-card { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: .5rem; }
.contact-card img { width: 100%; border-radius: .5rem; margin-bottom: .35rem; }
.contact-card p { font-size: .75rem; color: var(--text); }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--muted); transition: .2s; }
.footer-links a:hover { color: var(--moon); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(99,102,241,.15); }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Floating contact bubble */
.contact-bubble { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
.bubble-toggle { width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--indigo), var(--mystic)); color: #fff; font-size: 1.4rem; box-shadow: 0 8px 24px rgba(99,102,241,.45); cursor: pointer; transition: transform .25s; }
.bubble-toggle:hover { transform: scale(1.08); }
.bubble-panel { position: absolute; right: 0; bottom: 70px; width: 260px; background: rgba(17,24,39,.95); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none; transition: .25s; }
.bubble-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.bubble-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; color: #fff; font-weight: 700; }
.bubble-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.bubble-item { display: flex; align-items: center; gap: .5rem; padding: .6rem; border-radius: .5rem; background: rgba(99,102,241,.12); color: var(--moon); margin-bottom: .5rem; transition: .2s; }
.bubble-item:hover { background: rgba(99,102,241,.22); }
.bubble-qr { text-align: center; margin-bottom: .5rem; }
.bubble-qr img { width: 100%; border-radius: .5rem; border: 1px solid var(--border); }
.bubble-qr p { font-size: .75rem; color: var(--text); margin: .25rem 0 0; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(168,85,247,.18), transparent 45%), radial-gradient(circle at 30% 80%, rgba(34,211,238,.10), transparent 40%), linear-gradient(180deg, var(--night), #0f172a); z-index: -2; }
.hero-moon { position: absolute; top: 15%; right: 10%; width: clamp(140px, 22vw, 320px); height: clamp(140px, 22vw, 320px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(34,211,238,.9), rgba(34,211,238,.2) 40%, transparent 70%); filter: blur(1px); box-shadow: 0 0 80px rgba(34,211,238,.25); z-index: -1; }
.hero-wolf { position: absolute; bottom: -5%; left: -5%; width: clamp(280px, 40vw, 520px); height: clamp(280px, 40vw, 520px); background: radial-gradient(ellipse at center, rgba(99,102,241,.15), transparent 70%); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; filter: blur(18px); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { z-index: 1; }
.hero-title { font-size: clamp(2.6rem, 6vw, 5rem); color: #fff; text-shadow: 0 0 24px rgba(99,102,241,.5); }
.hero-title .accent { color: var(--moon); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.tag { padding: .25rem .75rem; border-radius: 999px; background: rgba(99,102,241,.15); border: 1px solid var(--border); color: var(--moon); font-size: .85rem; }
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 540px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-logo-ring { position: relative; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 50%; border: 1px solid rgba(34,211,238,.3); box-shadow: 0 0 60px rgba(34,211,238,.15), inset 0 0 40px rgba(99,102,241,.1); animation: float 6s ease-in-out infinite; }
.hero-logo { width: clamp(220px, 30vw, 380px); border-radius: 1.5rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }

@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-moon { top: 8%; right: -10%; }
}

/* Intro */
.intro { background: linear-gradient(180deg, var(--night), rgba(17,24,39,.8)); }
.intro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.intro-card { padding: 1.5rem 1.25rem; text-align: center; transition: transform .3s, box-shadow .3s; }
.intro-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(99,102,241,.15); border-color: rgba(34,211,238,.45); }
.intro-icon { font-size: 2rem; color: var(--moon); margin-bottom: .75rem; }
.intro-card h3 { font-size: 1.3rem; color: #fff; }
.intro-card p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 767px) { .intro-grid { grid-template-columns: 1fr; } }

/* Features honeycomb */
.features { position: relative; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.feature-cell { position: relative; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(168,85,247,.35)); padding: 2px; aspect-ratio: 1 / 1.15; transition: transform .3s; }
.feature-cell:nth-child(even) { transform: translateY(2rem); }
.feature-cell:hover { transform: translateY(calc(2rem - 6px)) scale(1.02); z-index: 2; }
.feature-cell:nth-child(odd):hover { transform: translateY(-6px) scale(1.02); }
.feature-cell-inner { width: 100%; height: 100%; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background: var(--night-2); overflow: hidden; position: relative; }
.feature-cell img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: .3s; }
.feature-cell:hover img { opacity: 1; transform: scale(1.05); }
.feature-cell-cap { position: absolute; bottom: 18%; left: 0; width: 100%; text-align: center; font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1rem, 2vw, 1.4rem); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
@media (max-width: 767px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .feature-cell:nth-child(even) { transform: translateY(1.2rem); }
  .feature-cell:hover { transform: translateY(calc(1.2rem - 4px)) scale(1.02); }
  .feature-cell:nth-child(odd):hover { transform: translateY(-4px) scale(1.02); }
}

/* Download */
.download { background: radial-gradient(circle at 50% 0%, rgba(99,102,241,.12), transparent 55%); }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.download-card { text-align: center; padding: 1.5rem 1rem; transition: transform .3s, border-color .3s; }
.download-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.55); }
.download-card img { width: 140px; height: 140px; margin: 0 auto 1rem; border-radius: 1rem; border: 1px solid var(--border); object-fit: cover; }
.download-card h3 { font-size: 1.2rem; color: #fff; }
.download-card p { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 767px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA Banner */
.cta-banner { padding-bottom: 4rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 2.5rem; background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(168,85,247,.18)); border: 1px solid var(--border); }
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.cta-inner h2 span { color: var(--moon); }
.cta-inner p { color: var(--muted); margin: .5rem 0 0; }
@media (max-width: 767px) { .cta-inner { flex-direction: column; text-align: center; } }

/* Position-specific image sizing */

.brand-logo { width: 42px; height: 42px; object-fit: cover; }
.footer-logo { width: 64px; height: 64px; object-fit: cover; }
.hero-logo { width: clamp(220px, 30vw, 380px); height: auto; }
.feature-cell img { width: 100%; height: 100%; object-fit: cover; }
.download-card img { width: 140px; height: 140px; object-fit: cover; }
.timeline-media img { width: 100%; height: 160px; object-fit: cover; }
.article-thumb { width: 100%; height: 120px; object-fit: cover; }
.article-body img { width: 100%; max-height: 320px; object-fit: cover; }
.contact-card img { width: 100%; height: auto; }
.bubble-qr img { width: 100%; height: auto; }

/* Friendly links block */

.friendly-links.lycs { padding: 3rem 0; background: linear-gradient(180deg, #0B0F19, #111827); border-top: 1px solid rgba(99,102,241,.25); }
.friendly-links.lycs .friendly-links-inner { width: 92%; max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.lycs h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.lycs h2 i { color: #22D3EE; margin-right: .5rem; }
.friendly-links.lycs p { color: #94A3B8; margin-bottom: 1.5rem; }
.friendly-links.lycs ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.lycs li a { display: block; padding: .6rem .8rem; border-radius: .6rem; background: rgba(30,41,59,.6); border: 1px solid rgba(99,102,241,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.lycs li a:hover { background: rgba(99,102,241,.2); border-color: #22D3EE; color: #22D3EE; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.lycs ul { grid-template-columns: repeat(2, 1fr); } }

