:root {
  --bg: #F3FAFC;
  --surface: #FFFFFF;
  --surface-tint: #E6F5F9;
  --ink: #162430;
  --muted: #4C6475;
  --ocean: #0B5D7A;
  --ocean-deep: #07384D;
  --aqua: #27B6C7;
  --coral: #FF785A;
  --yellow: #FFD447;
  --border: #162430;
  --radius: 22px;
  --shadow: 0 6px 0 #162430;
  --shadow-sm: 0 4px 0 #162430;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(92, 225, 230, 0.22), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(255, 212, 71, 0.22), transparent 34%),
    var(--bg);
  line-height: 1.6;
}

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

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 250, 252, 0.88);
  border-bottom: 2.5px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FFFDF4;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--border);
}

.brand-wordmark {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ocean-deep);
}

.ver-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--yellow);
  border: 2px solid var(--border);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: var(--ocean-deep);
}

.topbar-nav a:hover {
  color: var(--coral);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.lang-pill select {
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--border);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--coral);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #FF6342;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn-outline {
  background: #FFFDF6;
  color: var(--ink);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: 46px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ocean);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.h1-line { display: block; }

.h1-accent {
  display: inline-block;
  color: var(--ocean);
  background: linear-gradient(transparent 62%, rgba(255, 212, 71, 0.72) 62%);
  padding: 0 4px;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

.hero-pills li::before {
  content: "✓ ";
  color: #16A34A;
  font-weight: 900;
}

/* Interactive Aquarium Stage */
.tank-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tank-frame {
  position: relative;
  border-radius: 26px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #083D56;
  aspect-ratio: 16 / 11;
  cursor: pointer;
  user-select: none;
}

#aquarium-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tank-glass-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 24%, transparent 45%),
    inset 0 0 0 6px rgba(255, 255, 255, 0.14);
}

.tank-hint {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 37, 54, 0.62);
  color: #F4FDFF;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Peek KimiCat */
.peek-cat {
  position: absolute;
  right: -12px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.peek-cat.is-hidden {
  transform: translateX(110px);
  opacity: 0;
}

.peek-cat.is-swat {
  transform: translateX(-10px) rotate(-4deg);
}

.cat-bubble {
  position: absolute;
  right: 76px;
  bottom: 72px;
  background: #FFFDF4;
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--border);
}

.tank-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2.5px 0 var(--border);
  transition: transform 0.12s ease, background 0.12s ease;
}

.chip-btn:hover { transform: translateY(-1px); }
.chip-btn:active { transform: translateY(1px); box-shadow: none; }
.chip-btn.is-active { background: #DFF7FA; }

/* Sections */
.section {
  padding: 52px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #D9F4F8;
  border: 2px solid var(--border);
  color: var(--ocean-deep);
  margin-bottom: 12px;
}

.tag-yellow { background: var(--yellow); }

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.icon-coral { background: #FFE2DA; }
.icon-aqua { background: #D7F6FA; }
.icon-sun { background: #FFF2C2; }
.icon-gold { background: #E4F8E8; }

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

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

/* Synergy Banner */
.synergy-card {
  background: linear-gradient(135deg, #0A4966 0%, #106A84 100%);
  color: #F4FDFF;
  border: 3px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
}

.synergy-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.25;
}

.synergy-copy p {
  margin: 0 0 22px;
  color: rgba(244, 253, 255, 0.9);
}

.syn-badge-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.syn-tile {
  flex: 1;
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.syn-emoji { font-size: 2.2rem; }
.syn-tile strong { font-size: 1.05rem; }
.syn-tile span:last-child { font-size: 0.82rem; opacity: 0.9; }

.syn-link-bolt {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Download Box */
.download-box {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.download-main h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.dl-sub {
  margin: 0 0 20px;
  color: var(--muted);
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.sha-card {
  background: #F4F9FB;
  border: 2px solid #C8DDE6;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sha-label {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--ocean);
  min-width: 84px;
}

.sha-row code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--ink);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.dl-notes {
  background: #FFFBF0;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.dl-notes h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.dl-notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.footer {
  border-top: 2px solid rgba(22, 36, 48, 0.14);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.footer-links a:hover { color: var(--ocean); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .synergy-card,
  .download-box {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-nav { display: none; }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .synergy-card,
  .download-box {
    padding: 22px;
  }
  .btn-lg {
    width: 100%;
  }
}
