/* ============================================
   昱食 - 痛风健康管理APP官网
   Design Tokens & Base Styles
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #0A1628;
  --bg-surface: #0F1E36;
  --bg-surface-hover: #132844;
  --bg-surface-light: #172E4D;
  --accent-primary: #38BDF8;
  --accent-primary-light: #7DD3FC;
  --accent-primary-dim: rgba(56, 189, 248, 0.12);
  --accent-blue: #3B82F6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --color-safe: #10B981;
  --color-danger: #EF4444;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(56, 189, 248, 0.3);

  /* Typography */
  --font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-hero: clamp(2rem, 5vw, 3rem);
  --fs-section-title: clamp(1.5rem, 3.5vw, 2rem);
  --fs-card-title: clamp(1.1rem, 2vw, 1.25rem);
  --fs-body: clamp(0.875rem, 1.5vw, 1rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem) 0;
  --container-max: 1200px;
  --container-padding: 0 clamp(1.25rem, 4vw, 2rem);

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.08);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease-out;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-primary);
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.nav-cta::after {
  display: none;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0A1628 0%, #0d1e38 50%, #0A1628 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 80px,
    rgba(56, 189, 248, 0.02) 80px,
    rgba(56, 189, 248, 0.02) 81px
  );
  animation: scanLine 8s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(81px); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) translateX(40px) scale(0.5);
    opacity: 0;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-primary-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-primary);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-weight: 600;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #0e1830;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-base);
}

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

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

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1628 0%, #0F1E36 100%);
  position: relative;
}

/* Abstract APP UI inside mockup */
.screen-header {
  padding: 2rem 1rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.screen-greeting {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.screen-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.screen-scan-area {
  margin: 1rem 0.75rem;
  height: 140px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px dashed rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.scan-line-anim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes scanMove {
  0% { top: 0; }
  50% { top: calc(100% - 2px); }
  100% { top: 0; }
}

.scan-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-primary);
}

.scan-text {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.screen-cards {
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-card {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border-subtle);
}

.screen-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.screen-card-icon.green { background: rgba(16, 185, 129, 0.15); }
.screen-card-icon.red { background: rgba(239, 68, 68, 0.15); }
.screen-card-icon.blue { background: var(--accent-blue-dim); }

.screen-card-info {
  flex: 1;
  min-width: 0;
}

.screen-card-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.screen-card-detail {
  font-size: 0.5rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.screen-card-tag {
  font-size: 0.45rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.tag-safe {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-safe);
}

.tag-caution {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.screen-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(15, 23, 41, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

.screen-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.screen-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--text-tertiary);
  opacity: 0.4;
}

.screen-nav-dot.active {
  background: var(--accent-primary);
  opacity: 1;
}

.screen-nav-label {
  font-size: 0.4rem;
  color: var(--text-tertiary);
}

.screen-nav-item.active .screen-nav-label {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

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

  .hero-content {
    order: 2;
    padding: 1.5rem 0 0;
  }

  .hero-visual {
    order: 1;
  }

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

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

  .phone-mockup {
    width: 220px;
    height: 440px;
    transform: none;
  }

  .phone-mockup:hover {
    transform: none;
  }
}

/* ============================================
   Section Title
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-primary);
  opacity: 0.4;
}

.section-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Brand Story Section
   ============================================ */
.brand-story {
  padding: var(--section-padding);
  position: relative;
}

.brand-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.brand-story .container {
  max-width: 800px;
}

.brand-quote {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-quote-text {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.brand-quote-text::before {
  content: '\201C';
  position: absolute;
  top: -0.5em;
  left: -0.5em;
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.brand-quote-source {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.brand-content {
  text-align: center;
}

.brand-content p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.brand-content p:last-child {
  margin-bottom: 0;
}

.brand-highlight {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   Core Features Section
   ============================================ */
.core-features {
  padding: var(--section-padding);
  position: relative;
}

.core-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.primary {
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
}

.feature-icon.blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
}

.feature-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-safe);
}

.feature-icon.warm {
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
}

.feature-card h3 {
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.feature-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================
   Product Highlights Section
   ============================================ */
.product-highlights {
  padding: var(--section-padding);
  position: relative;
}

.product-highlights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.highlight-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-item.reverse {
  direction: rtl;
}

.highlight-item.reverse > * {
  direction: ltr;
}

.highlight-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.highlight-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Abstract visual for 6-layer recognition */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80%;
}

.layer-row {
  height: 28px;
  border-radius: 6px;
  animation: layerPulse 3s ease-in-out infinite;
}

.layer-row:nth-child(1) { background: rgba(56, 189, 248, 0.25); width: 90%; animation-delay: 0s; }
.layer-row:nth-child(2) { background: rgba(59, 130, 246, 0.2); width: 78%; animation-delay: 0.3s; }
.layer-row:nth-child(3) { background: rgba(16, 185, 129, 0.2); width: 85%; animation-delay: 0.6s; }
.layer-row:nth-child(4) { background: rgba(249, 115, 22, 0.2); width: 70%; animation-delay: 0.9s; }
.layer-row:nth-child(5) { background: rgba(168, 85, 247, 0.2); width: 82%; animation-delay: 1.2s; }
.layer-row:nth-child(6) { background: rgba(236, 72, 153, 0.2); width: 65%; animation-delay: 1.5s; }

@keyframes layerPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Abstract visual for fructose trap */
.fructose-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 80%;
}

.fructose-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-subtle);
}

.fructose-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fructose-dot.danger { background: var(--color-danger); box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.fructose-dot.warning { background: #F97316; box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.fructose-dot.safe { background: var(--color-safe); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.fructose-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fructose-bar-fill {
  height: 100%;
  border-radius: 3px;
  animation: barGrow 2s ease-out forwards;
}

.fructose-bar-fill.danger { background: var(--color-danger); }
.fructose-bar-fill.warning { background: #F97316; }
.fructose-bar-fill.safe { background: var(--color-safe); }

@keyframes barGrow {
  0% { width: 0; }
  100% { width: var(--bar-width); }
}

.fructose-label {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Abstract visual for personalized advice */
.persona-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 80%;
}

.persona-card {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.persona-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.persona-avatar.a { background: linear-gradient(135deg, var(--accent-primary), #F97316); }
.persona-avatar.b { background: linear-gradient(135deg, var(--accent-blue), #8B5CF6); }

.persona-info {
  flex: 1;
}

.persona-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
}

.persona-tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.persona-tag {
  font-size: 0.45rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
}

.persona-tag.blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
}

.persona-arrow {
  color: var(--accent-primary);
  font-size: 1.2rem;
  opacity: 0;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.highlight-text h3 {
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.highlight-text h3 .accent {
  color: var(--accent-primary);
}

.highlight-text p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.highlight-text p:last-child {
  margin-bottom: 0;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

.highlight-list li .check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-list li .check-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent-primary);
}

@media (max-width: 768px) {
  .highlight-item,
  .highlight-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .highlight-item {
    margin-bottom: 3rem;
  }

  .highlight-visual {
    aspect-ratio: 16/10;
  }
}

/* ============================================
   User Scenarios Section
   ============================================ */
.user-scenarios {
  padding: var(--section-padding);
  position: relative;
}

.user-scenarios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-glow);
}

.scenario-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.scenario-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
}

.scenario-card h3 {
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scenario-card .scenario-subtitle {
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.scenario-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================
   Membership Section
   ============================================ */
.membership {
  padding: var(--section-padding);
  position: relative;
}

.membership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.plan-card.featured:hover {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  color: var(--bg-primary);
  padding: 0.25rem 1.25rem;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price {
  margin-bottom: 1.5rem;
}

.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.plan-price .period {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

.plan-price .original {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.plan-features {
  margin-bottom: 2rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li .check-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-features li .check-icon svg {
  width: 10px;
  height: 10px;
}

.plan-card.featured .plan-features li .check-icon {
  background: var(--accent-primary-dim);
}

.plan-card.featured .plan-features li .check-icon svg {
  stroke: var(--accent-primary);
}

.plan-card:not(.featured) .plan-features li .check-icon {
  background: rgba(255, 255, 255, 0.06);
}

.plan-card:not(.featured) .plan-features li .check-icon svg {
  stroke: var(--text-tertiary);
}

.plan-cta {
  width: 100%;
  text-align: center;
}

.plan-card.featured .plan-cta .btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.plan-card:not(.featured) .plan-cta .btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scarcity-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Download Section
   ============================================ */
.download {
  padding: var(--section-padding);
  position: relative;
  text-align: center;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.download-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-qr canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.download-qr-placeholder {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #64748B;
  font-size: 12px;
}

.download-qr-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: #94A3B8;
}

.download-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.download-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.download-hint {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.download-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 14, 28, 0.5);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

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

.footer-info {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.8;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* ============================================
   Utility
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #FFFFFF;
}
