/* ============================================
   WeBox Landing Page
   Dark theme matching the app aesthetic
   ============================================ */

:root {
  --bg-deep: #07071a;
  --bg-primary: #0c0c20;
  --bg-surface: #131333;
  --bg-card: #181843;
  --bg-card-hover: #1e1e55;
  --text-primary: #eeeef6;
  --text-secondary: #8b8bb0;
  --text-muted: #5e5e82;
  --accent: #4f6ef7;
  --accent-bright: #6d8aff;
  --accent-glow: rgba(79, 110, 247, 0.25);
  --border: #252555;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37, 37, 85, 0.5);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.logo-icon.small {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-bright) !important;
  transform: translateY(-1px);
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent-bright), #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d5bf7);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow), 0 2px 6px rgba(0,0,0,0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  transform: translateY(-2px);
  border-color: rgba(79, 110, 247, 0.3);
}

.hero-version {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Hero Visual ===== */

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  width: 100%;
  max-width: 960px;
  perspective: 1200px;
}

.mockup-frame {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transform: rotateX(4deg);
  transition: transform 0.5s ease;
}

.mockup-frame:hover {
  transform: rotateX(0deg);
}

.mockup-dots {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-img {
  width: 100%;
  display: block;
}

.mockup-frame.no-img {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.mockup-frame.no-img::after {
  content: "产品截图";
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}

/* ===== FEATURES ===== */

.features {
  padding: 120px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(79, 110, 247, 0.3);
  background: var(--bg-card);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-bright);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== SHARE HIGHLIGHT ===== */

.share-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.share-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.1) 0%, rgba(79, 110, 247, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.share-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-align: center;
}

.share-section .section-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.share-section .section-sub {
  margin-bottom: 64px;
  line-height: 1.8;
}

.share-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
}

.share-step {
  flex: 0 0 200px;
  text-align: center;
}

.share-step-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.share-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(79, 110, 247, 0.08);
  border: 1px solid rgba(79, 110, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  transition: all 0.3s ease;
}

.share-step:hover .share-step-icon {
  background: rgba(79, 110, 247, 0.15);
  border-color: rgba(79, 110, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 110, 247, 0.15);
}

.share-step-icon--done {
  background: rgba(40, 200, 64, 0.08) !important;
  border-color: rgba(40, 200, 64, 0.2) !important;
  color: #4ade80 !important;
}

.share-step:hover .share-step-icon--done {
  background: rgba(40, 200, 64, 0.15) !important;
  border-color: rgba(40, 200, 64, 0.35) !important;
  box-shadow: 0 12px 32px rgba(40, 200, 64, 0.12) !important;
}

.share-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.share-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0 8px;
}

.share-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.share-highlights {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.share-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.share-highlight-item svg {
  color: #4ade80;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .share-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .share-step {
    flex: none;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .share-step-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .share-step-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
  }

  .share-step h4 {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .share-step p {
    padding: 0;
  }

  .share-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .share-highlights {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .share-section .section-sub br {
    display: none;
  }
}

/* ===== SCREENSHOT ===== */

.screenshot-section {
  padding: 80px 0 120px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  background: var(--bg-primary);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.screenshot-label {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.screenshot-full {
  width: 100%;
  display: block;
}

/* ===== FAQ ===== */

.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(79, 110, 247, 0.3);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-bright);
}

.faq-item summary:hover {
  color: var(--accent-bright);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== CTA ===== */

.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fade-up 0.8s ease-out; }
.hero-visual { animation: fade-up 1s ease-out 0.2s both; }
.feature-card:nth-child(1) { animation: fade-up 0.6s ease-out 0.1s both; }
.feature-card:nth-child(2) { animation: fade-up 0.6s ease-out 0.2s both; }
.feature-card:nth-child(3) { animation: fade-up 0.6s ease-out 0.3s both; }
.feature-card:nth-child(4) { animation: fade-up 0.6s ease-out 0.4s both; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .features-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero-desc br {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .mockup-frame {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}
