/* Windborne 宣传站 — 剪纸拼贴 / 粉彩气象地图风
   调色板取自 apps/wallpaper/css/style.css */
:root {
  --ink: #344653;
  --ink-soft: #58707c;
  --paper: #fff8df;
  --paper-soft: #f4efd6;
  --sea: #cfe8f3;
  --sea-deep: #a9d9dc;
  --land: #eef2d5;
  --wind: #d8ecd1;
  --warm: #f3e3a7;
  --alert: #efc1b9;
  --coast: #3a4a58;
  --gold: #d19b34;
  --gold-strong: #ffd96a;
  --danger: #a13d2d;

  --common: #8fb3d9;
  --rare: #f2c94c;
  --epic: #a88bd9;

  --ink-rgb: 52, 70, 83;
  --paper-rgb: 255, 248, 223;
  --sea-rgb: 204, 235, 240;
  --warm-rgb: 243, 227, 167;
  --white-rgb: 255, 255, 255;

  --maxw: 1180px;
  --radius: 16px;
  --shadow-sm: 0 2px 0 rgba(var(--ink-rgb), 0.1);
  --shadow-md: 0 10px 30px rgba(var(--ink-rgb), 0.12);
  --shadow-lg: 0 24px 60px rgba(var(--ink-rgb), 0.18);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(var(--warm-rgb), 0.55), transparent 60%),
    radial-gradient(1000px 800px at -10% 20%, rgba(var(--sea-rgb), 0.7), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

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

.section {
  padding: 96px 0;
  position: relative;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(var(--paper-rgb), 0.72);
  border-bottom: 1.5px solid rgba(var(--ink-rgb), 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}

.brand .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--sea), var(--wind));
  border: 1.5px solid var(--coast);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-toggle {
  border: 1.5px solid rgba(var(--ink-rgb), 0.4);
  background: rgba(var(--white-rgb), 0.6);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}

.lang-toggle:hover {
  background: var(--warm);
}

.lang-toggle:active {
  transform: scale(0.96);
}

.nav-burger {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}

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

.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  margin: 0 0 8px;
}

.hero-copy .zh-name {
  display: block;
}

.hero-copy .tagline {
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 22px;
}

.hero-copy .lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid var(--coast);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease;
}

.btn-primary {
  background: var(--gold-strong);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(var(--ink-rgb), 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(var(--ink-rgb), 0.2);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(var(--ink-rgb), 0.2);
}

.btn-ghost {
  background: rgba(var(--white-rgb), 0.55);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(var(--white-rgb), 0.9);
  transform: translateY(-2px);
}

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

.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.hero-stats .stat span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-art {
  position: relative;
}

.hero-art .frame {
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--coast);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sea), var(--wind));
  aspect-ratio: 16 / 10;
}

.hero-art .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder collage when hero art not yet generated */
.hero-collage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--white-rgb), 0.5), transparent 40%),
    linear-gradient(160deg, var(--sea) 0%, var(--wind) 60%, var(--warm) 100%);
}

.hero-collage .float {
  position: absolute;
  filter: drop-shadow(0 6px 10px rgba(var(--ink-rgb), 0.18));
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--paper);
  border: 1.5px solid var(--coast);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-3deg);
}

/* ---------- feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: rgba(var(--white-rgb), 0.6);
  border: 1.5px solid rgba(var(--ink-rgb), 0.22);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--ink-rgb), 0.4);
}

.card .ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(150deg, var(--sea), var(--wind));
  border: 1.5px solid rgba(var(--ink-rgb), 0.3);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- visitors gallery ---------- */
.showcase-banner {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--coast);
  box-shadow: var(--shadow-md);
  margin-bottom: 34px;
  max-height: 420px;
}

.showcase-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1.5px solid rgba(var(--ink-rgb), 0.34);
  background: rgba(var(--white-rgb), 0.55);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.filter-btn:hover {
  background: rgba(var(--white-rgb), 0.9);
}

.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--coast);
  background: linear-gradient(180deg, var(--warm), var(--sea));
  box-shadow: var(--shadow-sm);
}

.filter-btn .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.dot-common {
  background: var(--common);
}
.dot-rare {
  background: var(--rare);
}
.dot-epic {
  background: var(--epic);
}

.visitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.visitor-card {
  position: relative;
  display: grid;
  grid-template-rows: 92px auto auto;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(var(--ink-rgb), 0.24);
  background: linear-gradient(150deg, rgba(var(--white-rgb), 0.75), rgba(var(--sea-rgb), 0.4));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s;
  animation: cardin 0.4s ease both;
}

.visitor-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.visitor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.visitor-card.rare {
  border-color: rgba(188, 139, 34, 0.7);
  background: linear-gradient(150deg, rgba(var(--paper-rgb), 0.95), rgba(var(--warm-rgb), 0.7), rgba(var(--sea-rgb), 0.5));
}

.visitor-card.rare::before {
  background: linear-gradient(120deg, transparent 22%, rgba(var(--white-rgb), 0.5) 40%, transparent 58%);
}

.visitor-card.epic {
  border-color: rgba(139, 113, 210, 0.8);
  background: linear-gradient(
    135deg,
    rgba(var(--paper-rgb), 0.95),
    rgba(var(--sea-rgb), 0.62) 36%,
    rgba(237, 202, 235, 0.72) 72%
  );
}

.visitor-card.epic::before {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 242, 160, 0.5), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(174, 216, 245, 0.48), transparent 32%);
}

@keyframes cardin {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visitor-card .art {
  display: grid;
  place-items: center;
  height: 92px;
  position: relative;
  z-index: 1;
}

.visitor-card .art img {
  max-height: 92px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(var(--ink-rgb), 0.18));
}

.visitor-card .name {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-card .tier {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-soft);
}

.visitor-card .tier .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.gallery-more {
  text-align: center;
  margin-top: 30px;
}

/* ---------- split feature (weather / collection) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--coast);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--land), var(--sea));
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 16px;
}

.split-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tick-list li {
  padding-left: 32px;
  position: relative;
  font-size: 15.5px;
}

.tick-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-size: 16px;
}

/* ---------- regions strip ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.6);
  border: 1.5px solid rgba(var(--ink-rgb), 0.22);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition:
    transform 0.12s,
    background 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
  background: var(--warm);
  color: var(--ink);
}

/* ---------- download ---------- */
.download-card {
  background: linear-gradient(160deg, rgba(var(--sea-rgb), 0.75), rgba(var(--warm-rgb), 0.6));
  border: 2px solid var(--coast);
  border-radius: 26px;
  padding: 54px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.download-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.download-card p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 auto 30px;
  max-width: 30em;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid var(--coast);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-btn .big {
  font-size: 16px;
}

.store-btn .small {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.store-btn .glyph {
  font-size: 26px;
}

.badge-soon {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.14);
  padding: 44px 0 36px;
  background: rgba(var(--paper-rgb), 0.5);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.footer .brand {
  margin-bottom: 10px;
}

.footer p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 4px 0;
  max-width: 32em;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-legal {
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-legal .disclaimer {
  margin-top: 6px;
  opacity: 0.85;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* lang visibility — hide only the INACTIVE language, forcefully;
   the active language keeps its natural (author/UA) display value. */
html[lang="en"] [data-lang-zh],
html[lang="zh"] [data-lang-en] {
  display: none !important;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 68px 0;
  }
  .hero-badge {
    left: 12px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  .hero-stats {
    gap: 20px;
  }
  .visitor-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  }
  .download-card {
    padding: 40px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
