/* ============================================
   一刻 (Yike) — Promotional Landing Page
   Design tokens from app: #EEF2F8, #4A90E2, #007AFF
   ============================================ */

:root {
  --bg: #EEF2F8;
  --bg-white: #FFFFFF;
  --bg-dark: #1A2332;
  --text: #1A1A1A;
  --text-secondary: rgba(26, 26, 26, 0.6);
  --text-light: rgba(255, 255, 255, 0.85);
  --text-light-muted: rgba(255, 255, 255, 0.55);
  --accent: #4A90E2;
  --accent-bright: #007AFF;
  --accent-soft: rgba(0, 122, 255, 0.10);
  --gradient-start: #4A90E2;
  --gradient-end: #5856D6;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 24px rgba(0, 122, 255, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Noto Sans SC', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(238, 242, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent-bright) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.btn-primary {
  background: var(--accent-bright);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 16px 32px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(74, 144, 226, 0.25);
  top: -10%;
  right: -5%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(88, 86, 214, 0.2);
  bottom: 10%;
  left: -10%;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(80, 200, 120, 0.15);
  top: 40%;
  left: 30%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.hero-subtitle-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.4);
  margin-bottom: 32px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-frame-sm {
  width: 240px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  border-radius: 32px;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  object-position: top;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  right: -8%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fc-icon {
  font-size: 1.5rem;
}

.fc-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fc-time {
  font-size: 0.95rem;
  font-weight: 600;
}

.fc-time strong {
  color: var(--accent-bright);
  font-size: 1.1rem;
}

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag-light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title-light {
  color: white;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-desc-light {
  color: var(--text-light-muted);
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tags li {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---- AI Section ---- */
.section-ai {
  background: linear-gradient(135deg, #1A2332 0%, #2D3A52 50%, #1A2332 100%);
  position: relative;
  overflow: hidden;
}

.section-ai::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.ai-visual {
  display: flex;
  justify-content: center;
}

.ai-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 20px;
}

.ai-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.ai-method:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-method-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.ai-method h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.ai-method p {
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

.ai-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* ---- Screenshot Carousel ---- */
.section-screenshots {
  background: var(--bg-white);
}

.screenshot-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 0;
}

.carousel-slide {
  flex: 0 0 calc(25% - 18px);
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9/19.5;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition);
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

.carousel-slide span {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--accent-bright);
  color: white;
  border-color: var(--accent-bright);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-bright);
  width: 24px;
  border-radius: 4px;
}

/* ---- iOS Section ---- */
.ios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ios-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ios-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ios-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 16px;
  color: var(--accent-bright);
}

.ios-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ios-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Download ---- */
.section-download {
  padding-bottom: 120px;
}

.download-card {
  text-align: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  color: white;
  box-shadow: var(--shadow-lg);
}

.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.download-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.download-card > p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.store-badge {
  background: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  text-align: left;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-badge strong {
  display: block;
  font-size: 1.15rem;
}

.download-note {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: white;
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .ai-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-methods {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .carousel-slide {
    flex: 0 0 calc(33.333% - 16px);
  }

  .floating-card-1 { left: 0; }
  .floating-card-2 { right: 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .ios-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    flex: 0 0 calc(50% - 12px);
  }

  .carousel-btn {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .phone-frame {
    width: 240px;
  }

  .floating-card {
    display: none;
  }

  .download-card {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 80%;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Legal pages (Privacy / Terms) ---- */
.nav-links a.active {
  color: var(--accent-bright);
  font-weight: 600;
}

.legal-page {
  padding: calc(var(--nav-height) + 48px) 0 80px;
  min-height: 100vh;
}

.legal-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-content > p:first-child {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 20px;
  color: var(--text-secondary);
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-links {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-footer-links a:hover {
  text-decoration: underline;
}

.footer-copy a {
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-copy a:hover {
  color: white;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 28px 20px;
  }

  .legal-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
