@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #060b14;
  --bg-mid: #0c1628;
  --bg-soft: #122038;
  --accent: #7dd3fc;
  --accent-strong: #0284c7;
  --accent-glow: rgba(125, 211, 252, 0.35);
  --rose: #fda4af;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --card: rgba(255, 255, 255, 0.06);
  --card-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --success: #86efac;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(2, 132, 199, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(125, 211, 252, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(253, 164, 175, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 40%, var(--bg-soft) 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #bae6fd;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(6, 11, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 211, 252, 0.25);
  outline: none;
}

.lang-chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: rgba(12, 22, 40, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 200;
}

.lang-menu li {
  margin: 0;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(125, 211, 252, 0.12);
  color: var(--text);
}

html[data-lang="zh-Hans"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-lang="zh-Hant"] body {
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
}

html[data-lang="ja"] body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(2, 132, 199, 0.15));
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 24px var(--accent-glow);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

nav a.active {
  color: var(--text);
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.hero {
  padding: 88px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.25);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 .gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 32px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.4);
}

.button.primary:hover {
  box-shadow: 0 12px 40px rgba(2, 132, 199, 0.55);
  color: white;
}

.button.secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--card-hover);
  color: var(--text);
}

.phone-mock {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.phone-frame {
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1220 0%, #142a3a 100%);
  min-height: 520px;
  padding: 20px 16px;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: -20px auto 16px;
}

.phone-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.phone-item.active {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}

.phone-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(125, 211, 252, 0.15);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.phone-item-text {
  flex: 1;
  min-width: 0;
}

.phone-item-text strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.phone-item-text span {
  color: var(--muted);
  font-size: 0.75rem;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  z-index: -1;
  filter: blur(40px);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

section {
  padding: 32px 0 72px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

.grid-2,
.grid-3,
.modes {
  display: grid;
  gap: 20px;
}

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

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

.modes {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.card.adult {
  border-color: rgba(253, 164, 175, 0.2);
}

.card.adult .icon {
  background: rgba(253, 164, 175, 0.12);
  border-color: rgba(253, 164, 175, 0.2);
}

.card.adult:hover {
  border-color: rgba(253, 164, 175, 0.35);
}

.feature-band {
  padding: 56px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.feature-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.history-preview {
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
}

.history-preview h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.history-row:last-child {
  margin-bottom: 0;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.history-row time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.content-page {
  padding: 56px 0 80px;
}

.content-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.content-page .meta {
  color: var(--muted);
  margin-bottom: 32px;
}

.content-page h2 {
  margin-top: 36px;
  font-size: 1.3rem;
  font-weight: 700;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page ul {
  padding-left: 1.3rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-weight: 600;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .phone-mock {
    order: -1;
    max-width: 300px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .site-header .wrap,
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    right: auto;
    left: 0;
  }
}

/* Multilingual visibility helpers */
html[lang="en"] .lang-zh-Hant, html[lang="en"] .lang-zh-Hans, html[lang="en"] .lang-ja { display: none !important; }
html[lang="zh-Hant"] .lang-en, html[lang="zh-Hant"] .lang-zh-Hans, html[lang="zh-Hant"] .lang-ja { display: none !important; }
html[lang="zh-Hans"] .lang-en, html[lang="zh-Hans"] .lang-zh-Hant, html[lang="zh-Hans"] .lang-ja { display: none !important; }
html[lang="ja"] .lang-en, html[lang="ja"] .lang-zh-Hant, html[lang="ja"] .lang-zh-Hans { display: none !important; }

/* Contest-specific styles */
.contest-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.contest-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.contest-poster {
  max-width: min(100%, 680px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 32px auto;
  display: block;
}
.contest-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contest-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contest-callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
}
.contest-prize-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #060b14;
  font-weight: 800;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
}
.template-box-wrapper {
  position: relative;
}
.template-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin: 12px 0 24px;
  max-height: 320px;
  overflow-y: auto;
  color: #e2e8f0;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-strong);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}
.copy-btn:hover {
  background: var(--accent);
  color: #060b14;
}
.contest-sidebar .card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.bullet-list {
  padding-left: 20px;
  margin: 12px 0;
}
.bullet-list li {
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .contest-grid {
    grid-template-columns: 1fr;
  }
}

