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

:root {
  /* Brand - from actual app colors.ts */
  --primary: #EFDF44;
  --primary-dark: #D4C530;
  --primary-deep: #B8A820;
  --primary-light: #FEF08A;
  --primary-soft: #FEFCE8;
  --primary-muted: #FEF9C3;

  /* Neutrals - from actual app (slate scale) */
  --dark: #0F172A;
  --dark-alt: #1E293B;
  --text: #334155;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --gray: #94A3B8;
  --gray-light: #CBD5E1;
  --border: #E2E8F0;
  --surface: #F1F5F9;
  --surface-alt: #F8FAFC;
  --bg: #FFFFFF;

  /* Semantic */
  --success: #2BEE6C;
  --success-alt: #16A34A;
  --error: #EF4444;

  /* Time slots - from actual app */
  --morning-bg: #EFF6FF;
  --morning: #3B82F6;
  --afternoon-bg: #FFF7ED;
  --afternoon: #D97706;
  --evening-bg: #EDE9FE;
  --evening: #7C3AED;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-yellow: 0 8px 30px rgba(239, 223, 68, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-social a:hover { color: var(--primary-dark); }
.nav-social a svg { width: 18px; height: 18px; fill: currentColor; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 24px;
  padding: 3px;
  gap: 0;
}
.lang-toggle .lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #000;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.lang-toggle.en .lang-slider {
  transform: translateX(100%);
}
.lang-toggle button {
  padding: 6px 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  transition: color 0.3s ease;
  border-radius: 20px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.lang-toggle button.active {
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  padding: 130px 0 100px;
  background: var(--hero-bg, #f8fafc) center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(239,223,68,0.18) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(239,223,68,0.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(254,240,138,0.4) 0%, transparent 70%);
  top: 40%; left: 30%;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--dark);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.highlight {
  position: relative;
  color: var(--dark);
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: -4px; right: -4px;
  height: 14px;
  background: var(--primary-light);
  opacity: 0.5;
  z-index: -1;
  border-radius: 3px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--dark-alt);
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary-light);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(254,240,138,0.4);
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254,240,138,0.5);
  background: var(--primary);
}
.btn-primary svg { flex-shrink: 0; }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  padding: 15px 16px;
}
.btn-ghost:hover { color: var(--dark-alt); }

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-star { color: var(--primary-dark); }
.stat span {
  font-size: 0.78rem;
  color: var(--text);
}
.stat-divider {
  width: 1px; height: 32px;
  background: var(--dark);
}

/* ===== Phone Mockup ===== */
.hero-phone-area {
  flex: 0 0 340px;
  position: relative;
}

.phone-mockup {
  width: 290px;
  background: var(--dark);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(239,223,68,0.1);
  position: relative;
  z-index: 2;
  margin: 0 auto;
}
.phone-notch {
  width: 100px; height: 6px;
  background: var(--dark);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  margin-top: -1px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: 20px 16px 12px;
  min-height: 500px;
  overflow: hidden;
}
.hero-phone-img .phone-screen {
  padding: 0;
}
.hero-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
  display: block;
}

/* Mock App UI */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.mock-greeting-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
}
.mock-greeting-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
}
.mock-header-icons {
  display: flex;
  gap: 6px;
}
.mock-icon-circle {
  width: 28px; height: 28px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Gauge */
.mock-gauge-area {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.mock-gauge {
  position: relative;
  width: 100px; height: 100px;
}
.gauge-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gauge-bg {
  fill: none;
  stroke: var(--surface);
  stroke-width: 8;
}
.gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 108;
  transition: stroke-dashoffset 1.5s ease;
}
.gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-percent {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}
.gauge-label {
  font-size: 0.55rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Mock vitamin list */
.mock-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mock-time-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.mock-time-dot.morning { background: var(--morning); }
.mock-time-dot.afternoon { background: var(--afternoon); }
.mock-time-dot.evening { background: var(--evening); }

.mock-vitamin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.mock-pill {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.mock-pill.morning { background: var(--morning-bg); }
.mock-pill.afternoon { background: var(--afternoon-bg); }
.mock-pill.evening { background: var(--evening-bg); }

.mock-vitamin-info {
  flex: 1;
}
.mock-vitamin-info strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
}
.mock-vitamin-tag {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.mock-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.mock-check.done {
  background: var(--primary);
  color: var(--dark);
}
.mock-check.pending {
  border: 2px solid var(--border);
}

/* Mock Tab Bar */
.mock-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--dark);
  margin: 8px -6px -2px;
  padding: 10px 4px;
  border-radius: 0 0 28px 28px;
}
.mock-tab { color: var(--gray); }
.mock-tab.active { color: var(--primary); }
.mock-tab.center-tab { margin-top: -22px; }
.mock-pill-btn {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(239,223,68,0.4);
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  border: 1px solid var(--border);
}
.fc-icon { font-size: 1.4rem; }
.fc-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
}
.fc-text span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.fc-streak {
  top: 40px; right: -30px;
  animation-delay: 0s;
}
.fc-ai {
  bottom: 120px; left: -40px;
  animation-delay: 1.3s;
}
.fc-alarm {
  bottom: 30px; right: -20px;
  animation-delay: 2.6s;
}

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

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  background: var(--primary-muted);
  color: var(--dark-alt);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ===== Features Bento Grid ===== */
.features {
  padding: 120px 0;
  background: var(--bg);
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-card {
  background: var(--surface-alt);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.bento-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bento sizes */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.bento-medium {
  grid-column: span 2;
}
.bento-small {
  grid-column: span 1;
}

/* AI Feature Card */
.bento-ai {
  background: var(--dark);
  border-color: var(--dark);
}
.bento-ai h3 { color: var(--bg); font-size: 1.3rem; }
.bento-ai p { color: var(--gray); }
.bento-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bento-content { margin-bottom: 20px; }
.bento-chat-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}
.chat-bubble {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.chat-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(239,223,68,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.chat-msg {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 85%;
}
.chat-ai .chat-msg {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}
.chat-user {
  justify-content: flex-end;
}
.chat-user .chat-msg {
  background: var(--primary);
  color: var(--dark);
  font-weight: 600;
}

/* Time Slots Card */
.bento-icon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.time-slot-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.morning-chip { background: var(--morning-bg); color: var(--morning); }
.afternoon-chip { background: var(--afternoon-bg); color: var(--afternoon); }
.evening-chip { background: var(--evening-bg); color: var(--evening); }

/* Alarm Card */
.bento-alarm-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 12px;
}
.alarm-ring {
  position: absolute;
  width: 60px; height: 60px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: ring-pulse 2s ease-in-out infinite;
}
.ring-2 {
  width: 80px; height: 80px;
  opacity: 0.15;
  animation-delay: 0.5s;
}
.alarm-icon-big { font-size: 2rem; position: relative; z-index: 1; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.1; }
}

/* Streak Card */
.bento-streak-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
}
.streak-fire { font-size: 2.2rem; }
.streak-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

/* Ranking Card */
.bento-ranking-visual {
  margin-bottom: 12px;
}
.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 70px;
}
.rank-bar {
  width: 36px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--bg);
}
.rank-1 { height: 60px; background: var(--primary); color: var(--dark); }
.rank-2 { height: 44px; background: var(--gray); }
.rank-3 { height: 32px; background: var(--gray-light); color: var(--text-secondary); }

/* Calendar Card */
.bento-calendar-visual {
  margin-bottom: 12px;
}
.bento-cal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bento-cal-header span {
  width: 24px;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.bento-cal-week {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.bento-cal-day {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 50%;
}
.bento-cal-star {
  background: var(--primary);
  position: relative;
}
.bento-star-svg {
  width: 14px; height: 14px;
}
.bento-cal-today {
  background: var(--primary);
  color: var(--dark);
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(239, 223, 68, 0.4);
}

/* DB Card */
.bento-db-visual {
  margin-bottom: 12px;
}
.db-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.db-pill {
  background: var(--primary-muted);
  color: var(--dark-alt);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ===== Screens Showcase ===== */
.screens-section {
  padding: 120px 0;
  background: var(--surface-alt);
}

.screens-scroll {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.screen-item {
  text-align: center;
}
.screen-label {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mini-phone {
  width: 200px;
  background: var(--dark);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.mini-screen {
  background: var(--bg);
  border-radius: 22px;
  min-height: 360px;
  overflow: hidden;
}
.mini-content {
  padding: 18px 14px;
}

/* Onboarding Screen */
.onboarding-screen { text-align: center; }
.onboarding-mascot {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.onboarding-bubble {
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
}
.onboarding-bubble::after {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--surface);
}
.onboarding-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.o-chip {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.o-chip.selected {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

/* Result Screen */
.result-screen { text-align: center; }
.result-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.result-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-align: left;
}
.result-pill {
  width: 28px; height: 28px;
  background: var(--primary-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.result-info strong {
  display: block;
  font-size: 0.72rem;
  color: var(--dark);
}
.result-reason {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.result-cta {
  background: var(--primary);
  color: var(--dark);
  padding: 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 12px;
}

/* Home Screen Mini */
.mini-gauge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.mini-gauge {
  position: relative;
  width: 70px; height: 70px;
}
.mini-gauge svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gauge-fill-sm {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 70.5;
}
.mini-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--dark);
}

.mini-vitamin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark);
}
.mv-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mv-dot.morning { background: var(--morning); }
.mv-dot.evening { background: var(--evening); }
.mini-vitamin span:nth-child(2) { flex: 1; }
.mv-check {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}
.mv-check.done {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  font-weight: 800;
}

/* Calendar Screen Mini */
.calendar-screen { text-align: center; }
.mini-cal-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.mini-cal-grid { margin-bottom: 16px; }
.mini-cal-header {
  display: flex;
  justify-content: space-around;
  font-size: 0.55rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 8px;
}
.mini-cal-days {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mini-cal-days span {
  font-size: 0.6rem;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-star { font-size: 0.55rem; }
.cal-today-mini {
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  font-weight: 800;
}
.cal-empty { color: var(--text-tertiary); }
.mini-streak-bar {
  background: var(--surface);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}
.streak-icon { font-size: 1.1rem; }

/* Ranking Screen Mini */
.ranking-screen {
  text-align: center;
  padding: 12px 10px !important;
}
.rank-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

/* Podium */
.rank-podium-area {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rp {
  text-align: center;
  flex: 1;
  position: relative;
}
.rp-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  font-size: 0.7rem;
  font-weight: 800;
}
.rp-1 .rp-avatar { width: 50px; height: 50px; font-size: 0.85rem; }
.rp-avatar-gray { background: #E2E8F0; color: #64748B; }
.rp-avatar-gold { background: #FEF9C3; color: #B8A820; border: 2.5px solid var(--primary); }
.rp-avatar-bronze { background: #FDE8D8; color: #A0714F; }

.rp-badge {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 900;
  margin: -6px auto 3px;
  position: relative;
  z-index: 1;
  color: #fff;
}
.rp-badge-gold { background: var(--primary); color: var(--dark); width: 18px; height: 18px; font-size: 0.55rem; }
.rp-badge-silver { background: #94A3B8; }
.rp-badge-bronze { background: #D97706; }

.rp-crown {
  font-size: 0.8rem;
  margin-bottom: -2px;
  line-height: 1;
}

.rp-name {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.rp-streak {
  font-size: 0.45rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.rp-streak-gold {
  color: var(--primary-deep);
  font-weight: 700;
}
.rp-fire-svg { width: 8px; height: 8px; }

/* Rank List */
.rank-list {
  text-align: left;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.rank-num {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-tertiary);
  width: 12px;
  text-align: center;
}
.rank-row-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-row-name {
  flex: 1;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--dark);
}
.rank-row-days {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-muted);
  padding: 2px 6px;
  border-radius: 50px;
}

/* My Rank Bar */
.rank-my-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  padding: 7px 8px;
  border-radius: 10px;
  margin-top: 8px;
}
.rank-my-num {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--dark);
}
.rank-my-info {
  flex: 1;
  text-align: left;
}
.rank-my-info strong {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.rank-my-info span {
  font-size: 0.45rem;
  color: var(--dark-alt);
}
.rank-my-badge {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--dark);
  background: rgba(255,255,255,0.6);
  padding: 2px 6px;
  border-radius: 50px;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--bg);
}

.steps-timeline {
  max-width: 700px;
  margin: 0 auto;
}
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  flex-shrink: 0;
}
.step-body {
  padding-top: 4px;
}
.step-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.step-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-connector {
  width: 2px;
  height: 32px;
  background: var(--border);
  margin-left: 21px;
}

/* ===== AI Section ===== */
.ai-section {
  padding: 120px 0;
  background: var(--surface-alt);
}
.ai-container {
  display: flex;
  align-items: center;
  gap: 64px;
}
.ai-visual { flex: 1; }
.ai-text { flex: 1; }

.ai-chat-window {
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 400px;
}
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.ai-avatar-sm {
  width: 32px; height: 32px;
  background: var(--primary-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.ai-chat-header strong {
  font-size: 0.85rem;
  color: var(--dark);
  display: block;
}
.ai-chat-header span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}
.ai-chat-gauge {
  margin-left: auto;
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ai-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ai-bot-avatar {
  width: 26px; height: 26px;
  background: var(--primary-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.ai-msg-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 80%;
}
.ai-bot .ai-msg-text {
  background: var(--surface);
  color: var(--text);
}
.ai-user {
  justify-content: flex-end;
}
.ai-user .ai-msg-text {
  background: var(--dark);
  color: var(--bg);
}

.ai-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.ai-chat-input span {
  flex: 1;
  font-size: 0.78rem;
  color: var(--gray);
}
.ai-send-btn {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
}

.ai-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.ai-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.ai-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.ai-check {
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--dark);
  flex-shrink: 0;
}

/* ===== Reviews ===== */
.reviews {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}
.review-slider {
  overflow: hidden;
  width: 100%;
}
.review-slider-track {
  display: flex;
  gap: 20px;
  animation: review-scroll 40s linear infinite;
  width: max-content;
}
.review-slider-track:hover {
  animation-play-state: paused;
}
@keyframes review-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-item {
  flex-shrink: 0;
  width: 320px;
}
.review-card-new {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  height: 100%;
}
.review-author-new {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.review-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.review-text-clamp {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-date {
  font-size: 12px;
  color: var(--gray);
  display: block;
  margin-top: 12px;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--primary-soft);
}
.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-lemon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}
.cta h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  padding: 12px 24px;
  border-radius: 14px;
  color: var(--bg);
  transition: all 0.25s;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.store-svg { flex-shrink: 0; }
.store-text { text-align: left; }
.store-text span {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.store-text strong { font-size: 1rem; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--gray);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 4px;
}
.footer-logo-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.footer-brand p {
  font-size: 0.8rem;
}
.footer-links-row {
  display: flex;
  gap: 24px;
}
.footer-links-row a {
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links-row a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  font-size: 0.78rem;
  text-align: center;
}

/* ===== SVG Icon Sizes ===== */
.stat-icon { width: 18px; height: 18px; vertical-align: -2px; filter: brightness(0); }
.mock-mascot-tiny { width: 18px; height: 18px; border-radius: 4px; vertical-align: -3px; }
.mock-svg-icon { width: 14px; height: 14px; }
.mock-pill-svg { width: 18px; height: 18px; }
.mock-check-svg { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.tab-svg { width: 20px; height: 20px; opacity: 0.4; }
.active-tab-svg { opacity: 1; filter: brightness(0) saturate(100%) invert(88%) sepia(30%) saturate(1000%) hue-rotate(5deg) brightness(105%); }
.pill-btn-svg { width: 22px; height: 22px; }
.fc-svg { width: 24px; height: 24px; }
.chat-avatar-svg { width: 14px; height: 14px; }
.chip-svg { width: 14px; height: 14px; }
.chip-rive { width: 24px; height: 24px; }
.alarm-svg { width: 36px; height: 36px; }
.streak-fire-svg { width: 40px; height: 40px; }
.streak-fire-rive { width: 64px; height: 64px; }
.rank-trophy-svg { width: 16px; height: 16px; }
.cal-star-svg { width: 14px; height: 14px; }
.cal-star-svg-sm { width: 12px; height: 12px; }
.onboarding-mascot-img {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin: 0 auto 12px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}
.result-pill-svg { width: 16px; height: 16px; }
.mv-check-svg { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.streak-bar-svg { width: 20px; height: 20px; }
.mp-avatar-svg { width: 24px; height: 24px; }
.mp-crown-svg { width: 20px; height: 20px; }

/* Screenshot image in mini phone */
.mini-phone-img .mini-screen {
  padding: 0;
  overflow: hidden;
}
.screen-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  display: block;
}
.ai-header-svg { width: 18px; height: 18px; }
.ai-body-svg { width: 16px; height: 16px; }
.char-rive-sm { width: 42px; height: 42px; margin-top: -8px; }
.char-rive-xs { width: 32px; height: 32px; margin-top: -6px; }
.char-rive-fc { width: 44px; height: 44px; margin-top: -8px; }
.fc-fire-rive { width: 32px; height: 32px; }
.ai-check-svg { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.cta-mascot {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

/* ===== Image Protection ===== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.store-svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-svg:not(.google-svg) { filter: brightness(0) invert(1); }
.google-svg { border-radius: 4px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Hero entrance animations */
.hero-badge { animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1 { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-description { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-buttons { animation: fadeInUp 0.6s ease 0.4s both; }
.hero-stats { animation: fadeInUp 0.6s ease 0.5s both; }
.hero-phone-area { animation: fadeInRight 0.8s ease 0.3s both; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-container { gap: 48px; }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large { grid-column: span 2; grid-row: span 1; }
  .ai-container { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .nav-social { gap: 8px; }
  .nav-social a { width: 28px; height: 28px; }
  .nav-social a svg { width: 15px; height: 15px; }
  .lang-toggle button { padding: 5px 10px; font-size: 10px; }

  .hero { padding: 100px 0 50px; min-height: auto; }
  .hero-container { flex-direction: column; gap: 40px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-description { font-size: 0.95rem; }
  .hero-description br { display: none; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero-phone-area { flex: none; }
  .hero-phone-area { animation-name: fadeInUp; }

  .phone-mockup { width: 260px; }
  .floating-card { padding: 10px 14px; }
  .fc-text strong { font-size: 0.72rem; }
  .fc-text span { font-size: 0.6rem; }
  .fc-streak { top: 20px; right: -10px; }
  .fc-ai { bottom: 100px; left: -10px; }
  .fc-alarm { bottom: 20px; right: -5px; }

  .features { padding: 80px 0; }
  .features-bento {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-medium, .bento-small {
    grid-column: span 1;
  }

  .screens-section { padding: 80px 0; }
  .screens-scroll { gap: 14px; }
  .mini-phone { width: 160px; }
  .mini-screen { min-height: 290px; }
  .screen-label { font-size: 0.75rem; }

  .how-it-works { padding: 80px 0; }
  .steps-timeline { max-width: 100%; }
  .step-body h3 { font-size: 1rem; }
  .step-body p { font-size: 0.85rem; }

  .ai-section { padding: 80px 0; }
  .ai-container { flex-direction: column; gap: 32px; }
  .ai-chat-window { max-width: 100%; }
  .ai-text h2 { font-size: 1.8rem; }

  .reviews { padding: 80px 0; }
  .review-item { width: 280px; }

  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.8rem; }
  .cta h2 { font-size: 1.8rem; }
  .cta { padding: 80px 0; }

  .footer-top { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links-row { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  .navbar { padding: 10px 14px; }
  .nav-logo { font-size: 17px; }
  .nav-social { gap: 4px; }
  .nav-social a { width: 26px; height: 26px; }
  .nav-social a svg { width: 14px; height: 14px; }

  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: 1.65rem; }
  .hero-description { font-size: 0.88rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 8px; }
  .btn-primary { width: 100%; max-width: 280px; justify-content: center; }
  .hero-stats { flex-direction: row; gap: 20px; }
  .stat-divider { width: 1px; height: 32px; }

  .phone-mockup { width: 240px; }
  .floating-card { padding: 8px 12px; border-radius: 12px; }
  .fc-icon { font-size: 1.1rem; }
  .fc-streak { top: 10px; right: 0; }
  .fc-ai { bottom: 90px; left: 0; }
  .fc-alarm { bottom: 10px; right: 0; }

  .bento-card { padding: 22px 18px; }
  .bento-card h3 { font-size: 0.95rem; }
  .bento-card p { font-size: 0.8rem; }

  .screens-scroll { gap: 10px; }
  .mini-phone { width: 140px; border-radius: 22px; padding: 6px; }
  .mini-screen { min-height: 250px; border-radius: 18px; }
  .screen-screenshot { border-radius: 18px; }

  .ai-desc { font-size: 0.88rem; }
  .ai-features-list li { font-size: 0.85rem; }

  .review-item { width: 260px; }
  .review-card-new { padding: 20px; }

  .cta-mascot { width: 64px; height: 64px; border-radius: 16px; }
  .cta p { font-size: 0.9rem; }
}
