/* ═══════════════════════════════════════════════
   OpenWatcher 官网 — 深色科技风视觉稿
   配色对齐手表端 WatchHomePalette
   ═══════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* 手表端品牌色 */
  --bg:        #05070B;
  --bg-raised: #0D121A;
  --bg-card:   #111823;
  --ink:       #E8F2FF;
  --muted:     #73879A;
  --muted2:    #4A5A6A;
  --border:    rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);

  /* 强调色 — 来自手表弧线 */
  --cyan:    #27E7F4;
  --blue:    #2DBBFF;
  --green:   #74F34A;
  --lime:    #D7F60F;
  --amber:   #FFBC27;
  --orange:  #FF6A1A;
  --red:     #FF4221;
  --purple:  #D991FF;

  /* 渐变 */
  --grad-hero: linear-gradient(135deg, rgba(39,231,244,0.08) 0%, transparent 40%),
               linear-gradient(225deg, rgba(255,188,39,0.06) 0%, transparent 40%);
  --grad-arc:  linear-gradient(90deg, #FF4221, #FFBC27, #D7F60F, #74F34A);
}

/* 浅色主题 */
[data-theme="light"] {
  color-scheme: light;
  --bg:        #f5f6f8;
  --bg-raised: #ebecef;
  --bg-card:   #ffffff;
  --ink:       #1a1d23;
  --muted:     #5f6b78;
  --muted2:    #8c95a0;
  --border:    rgba(0, 0, 0, 0.08);
  --border-hi: rgba(0, 0, 0, 0.14);
  --cyan:      #0891b2;
  --blue:      #0284c7;
  --grad-hero: linear-gradient(135deg, rgba(8,145,178,0.06) 0%, transparent 40%),
               linear-gradient(225deg, rgba(255,188,39,0.04) 0%, transparent 40%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════
   滚动渐入动画
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav--scrolled {
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.6rem 0;
}
.nav-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-github {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.nav-github:hover {
  border-color: var(--cyan);
  background: rgba(39,231,244,0.06);
}
/* 主题切换按钮 */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--cyan);
  background: rgba(39, 231, 244, 0.06);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(8, 145, 178, 0.06);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s;
}

/* ═══════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow--cyan {
  width: 600px;
  height: 600px;
  top: -15%;
  left: -10%;
  background: rgba(39, 231, 244, 0.12);
}
.hero-glow--amber {
  width: 500px;
  height: 500px;
  bottom: -20%;
  right: -5%;
  background: rgba(255, 188, 39, 0.08);
}
.hero-inner {
  position: relative;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: -apple-system, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-lead {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* 手表展示区 */
.hero-watch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.watch-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 180deg, #FF4221, #FFBC27, #D7F60F, #74F34A, #27E7F4, transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  animation: ring-rotate 20s linear infinite;
  opacity: 0.5;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}
.watch-img {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(39, 231, 244, 0.15),
              0 0 120px rgba(255, 188, 39, 0.08);
}
.watch-img--main {
  width: 320px;
  height: 320px;
  position: relative;
  z-index: 1;
  animation: float-main 6s ease-in-out infinite;
}
.watch-img--side {
  width: 200px;
  height: 200px;
  position: absolute;
  right: -20px;
  bottom: 10px;
  z-index: 2;
  border: 2px solid var(--border-hi);
  animation: float-side 5s ease-in-out infinite 0.8s;
}
@keyframes float-main {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-side {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

/* ═══════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(135deg, #1a9eaa 0%, var(--cyan) 50%, #5ce6d0 100%);
  color: #05070B;
  box-shadow: 0 2px 12px rgba(39, 231, 244, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.2);
  border: none;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(39, 231, 244, 0.45),
              inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
}
.section--alt {
  background: var(--bg-raised);
}
.section-eyebrow {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: -apple-system, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════════
   Pain Points
   ═══════════════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pain-card {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pain-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.pain-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.pain-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}
.pain-answer {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(39,231,244,0.08), rgba(116,243,74,0.06));
  border: 1px solid rgba(39,231,244,0.15);
}
.pain-answer p {
  font-size: 1.05rem;
  color: var(--cyan);
  font-weight: 600;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   Features
   ═══════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   Roadmap
   ═══════════════════════════════════════════════ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.roadmap-card {
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s;
}
.roadmap-card:hover {
  border-color: var(--border-hi);
}
.roadmap-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(39, 231, 244, 0.1);
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.roadmap-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.roadmap-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   Screenshots
   ═══════════════════════════════════════════════ */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
.screenshot-item { text-align: center; }
.screenshot-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.screenshot-frame:hover {
  border-color: rgba(39,231,244,0.3);
  box-shadow: 0 0 40px rgba(39,231,244,0.1);
}
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screenshot-label {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.screenshot-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   How it works
   ═══════════════════════════════════════════════ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #05070B;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  color: var(--muted2);
  font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════
   Download
   ═══════════════════════════════════════════════ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.download-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.download-card:hover {
  border-color: var(--border-hi);
}
.download-icon {
  margin-bottom: 1.2rem;
}
.download-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.download-platform {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.download-version {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted2);
  font-family: "SF Mono", "JetBrains Mono", monospace;
}
.download-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted2);
  font-family: "SF Mono", "JetBrains Mono", monospace;
}

/* ═══════════════════════════════════════════════
   Sponsor
   ═══════════════════════════════════════════════ */
.sponsor-content {
  max-width: 32rem;
  margin: 0 auto;
}
.sponsor-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}
.sponsor-qr {
  text-align: center;
}
.sponsor-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.sponsor-label {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted2);
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .hero-inner { gap: 2rem; }
  .watch-img--main { width: 260px; height: 260px; }
  .watch-img--side { width: 170px; height: 170px; right: -10px; bottom: 5px; }
  .watch-ring { width: 310px; height: 310px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav--open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,7,11,0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-watch { margin-top: 2rem; min-height: 300px; }
  .watch-img--main { width: 200px; height: 200px; }
  .watch-img--side { width: 130px; height: 130px; right: 10px; bottom: 0; }
  .watch-ring { width: 240px; height: 240px; }

  .section { padding: 4rem 0; }
  .pain-grid,
  .feature-grid,
  .download-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
}

@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .screenshot-frame { border-radius: 50%; }
}

/* ═══════════════════════════════════════════════
   浅色主题覆盖
   ═══════════════════════════════════════════════ */
[data-theme="light"] .btn--primary {
  background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(8, 145, 178, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="light"] .btn--ghost {
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .btn--ghost:hover {
  border-color: rgba(8,145,178,0.4);
  background: rgba(8,145,178,0.06);
}
[data-theme="light"] .nav--scrolled {
  background: rgba(245, 246, 248, 0.88);
}
[data-theme="light"] .watch-ring {
  opacity: 0.35;
}
[data-theme="light"] .watch-img {
  box-shadow: 0 4px 40px rgba(0,0,0,0.08),
              0 0 80px rgba(8, 145, 178, 0.06);
}
[data-theme="light"] .pain-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .roadmap-card,
[data-theme="light"] .download-card {
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .screenshot-frame {
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .screenshot-frame:hover {
  box-shadow: 0 0 30px rgba(8,145,178,0.08);
}
[data-theme="light"] .guide-img {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}
[data-theme="light"] .step {
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .hero-glow--cyan {
  background: rgba(8, 145, 178, 0.08);
}
[data-theme="light"] .hero-glow--amber {
  background: rgba(255, 188, 39, 0.05);
}
