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

:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #4834d4;
  --secondary: #FD79A8;
  --bg: #F5F6FA;
  --card: #fff;
  --text: #2D3436;
  --text2: #636E72;
  --text3: #B2BEC3;
  --border: #DFE6E9;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'PingFang SC', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,246,250,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--text2); font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  text-decoration: none; background: var(--primary); color: #fff;
  padding: 9px 20px; border-radius: 100px; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding: 120px 0 80px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.blob1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.blob2 { width: 400px; height: 400px; background: var(--secondary); bottom: -50px; left: -80px; animation: float 10s ease-in-out infinite reverse; }
.blob3 { width: 300px; height: 300px; background: var(--primary-light); top: 50%; left: 40%; animation: float 12s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; position: relative; z-index: 1;
}
.hero-content { flex: 1; max-width: 540px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(42px, 6vw, 64px); font-weight: 900;
  line-height: 1.1; color: var(--text); margin-bottom: 20px;
  letter-spacing: -1px;
}
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px; color: var(--text2); line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: 16px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(108,92,231,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(108,92,231,0.45); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 14px 28px; border-radius: 16px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--primary);
  transition: transform .2s, background .2s;
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--primary); color: #fff; }

.hero-note { font-size: 13px; color: var(--text3); }

/* ===== PHONE MOCKUP ===== */
.hero-phone { flex-shrink: 0; position: relative; }
.phone-frame {
  width: 300px; height: 610px;
  background: #1a1a2e;
  border-radius: 48px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #1a1a2e;
  border-radius: 0 0 20px 20px; z-index: 10;
}
.phone-home-bar {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg);
}
.phone-shadow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 40px;
  background: rgba(108,92,231,0.3); filter: blur(20px); border-radius: 50%;
}

/* App screen inside phone */
.app-screen { padding: 40px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.app-header { }
.app-greeting { font-size: 18px; font-weight: 800; color: var(--text); }
.app-date { font-size: 11px; color: var(--text2); margin-top: 2px; }
.app-city-badge {
  display: inline-block; background: rgba(108,92,231,0.12);
  color: var(--primary); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-top: 4px;
}
.app-weather {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.weather-icon { font-size: 28px; }
.weather-temp { font-size: 26px; font-weight: 800; color: var(--primary); }
.weather-desc { font-size: 11px; color: var(--text2); }
.weather-tip { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 1px; }
.app-style-chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.style-chip {
  font-size: 10px; font-weight: 600; padding: 4px 10px;
  background: #fff; border-radius: 100px; color: var(--text2);
  border: 1.5px solid var(--border); white-space: nowrap;
}
.style-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.app-avatar-zone {
  flex: 1; background: linear-gradient(135deg, #f0eeff, #fff0f5);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.avatar-figure { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.avatar-head { position: relative; width: 44px; height: 44px; }
.avatar-hair {
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: #2D1B00; border-radius: 22px 22px 0 0;
}
.avatar-face {
  position: absolute; bottom: 0; left: 4px; right: 4px; height: 32px;
  background: #E8B89A; border-radius: 18px 18px 12px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.avatar-eyes { display: flex; gap: 8px; }
.avatar-eyes span { width: 5px; height: 5px; background: #2C1810; border-radius: 50%; }
.avatar-mouth {
  width: 10px; height: 4px; border-bottom: 2px solid #C08070;
  border-radius: 0 0 5px 5px;
}
.avatar-body {
  width: 50px; background: linear-gradient(180deg, #fff 0%, #eee 100%);
  border-radius: 8px; padding: 4px 0; text-align: center; font-size: 20px;
}
.avatar-bottom { font-size: 18px; }
.avatar-shoes { font-size: 14px; }
.app-outfit-label { font-size: 11px; font-weight: 700; color: var(--text2); }
.app-items { display: flex; gap: 6px; }
.outfit-item {
  width: 44px; height: 44px; background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ===== STATS ===== */
.stats { padding: 60px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat {
  text-align: center; padding: 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.stat-label { font-size: 14px; color: var(--text2); margin-top: 4px; font-weight: 500; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 5px 16px; border-radius: 100px; font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-header p { font-size: 16px; color: var(--text2); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,92,231,0.12); }
.feature-large { grid-column: span 2; }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.feature-visual { margin-top: 24px; }

.weather-visual { display: flex; gap: 10px; flex-wrap: wrap; }
.weather-card-mini {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 12px; padding: 10px 14px;
  font-size: 22px; flex: 1; min-width: 120px;
}
.wc-temp { font-size: 16px; font-weight: 800; color: var(--primary); }
.wc-tip { font-size: 11px; color: var(--text2); }

.wardrobe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 180px; }
.w-item {
  aspect-ratio: 1; background: var(--bg); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.add-item { border: 2px dashed var(--border); color: var(--text3); font-size: 18px; }

.avatar-visual { display: flex; justify-content: center; }
.mini-avatar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mini-head { font-size: 32px; }
.mini-body { background: #f0eeff; border-radius: 10px; padding: 8px 12px; text-align: center; }
.mini-top { font-size: 24px; }
.mini-bottom { font-size: 20px; }
.mini-shoes { font-size: 18px; }

.style-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sp {
  padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--text2); border: 1.5px solid var(--border);
  cursor: default; transition: all .2s;
}
.sp.active, .sp:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== HOW IT WORKS ===== */
.howitworks { padding: 100px 0; background: #fff; }
.steps {
  display: flex; align-items: flex-start; gap: 24px;
  justify-content: center;
}
.step { flex: 1; max-width: 300px; text-align: center; }
.step-num {
  font-size: 12px; font-weight: 900; color: var(--primary);
  letter-spacing: 2px; margin-bottom: 12px;
}
.step-icon {
  width: 80px; height: 80px; background: linear-gradient(135deg, #f0eeff, #fff0f5);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 20px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.step-arrow {
  font-size: 24px; color: var(--text3); margin-top: 40px;
  flex-shrink: 0;
}

/* ===== DOWNLOAD ===== */
.download { padding: 100px 0; }
.download-card {
  background: linear-gradient(135deg, var(--primary), #9b59b6);
  border-radius: 32px; padding: 60px;
  display: flex; align-items: center; gap: 60px;
  box-shadow: 0 20px 60px rgba(108,92,231,0.35);
  color: #fff;
}
.download-left { flex: 1; }
.download-left h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.download-left p { font-size: 16px; opacity: 0.85; line-height: 1.7; margin-bottom: 32px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 16px;
  text-decoration: none; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  min-width: 160px;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.app-store-btn { background: rgba(255,255,255,0.2); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.web-btn { background: #fff; color: var(--primary); }
.btn-sub { font-size: 11px; opacity: 0.8; font-weight: 500; }
.btn-main { font-size: 15px; font-weight: 800; }

.download-right { flex-shrink: 0; }
.qr-placeholder {
  width: 160px; height: 160px; background: rgba(255,255,255,0.15);
  border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed rgba(255,255,255,0.4); text-align: center; padding: 16px;
}
.qr-icon { font-size: 36px; }
.qr-placeholder p { font-size: 13px; opacity: 0.85; font-weight: 600; }
.qr-url { font-size: 10px; opacity: 0.6; word-break: break-all; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 16px; color: #fff;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; }

/* ===== RESPONSIVE ===== */
.pc-only { display: inline; }

@media (max-width: 900px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-phone { order: -1; }
  .phone-frame { width: 240px; height: 490px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .download-card { flex-direction: column; padding: 40px 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .pc-only { display: none; }
}

@media (max-width: 480px) {
  .phone-frame { width: 200px; height: 410px; }
  .download-btns { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* Scroll animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
