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

:root {
  --pink: #EA3686;
  --purple: #6D49FE;
  --bg-deep: #1a1a2e;
  --bg-mid: #16213e;
  --bg-light: #0f3460;
  --surface: #2a2a4e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --gradient: linear-gradient(135deg, var(--pink), var(--purple));
}

html {
  scroll-behavior: smooth;
}

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

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

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  gap: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(234, 54, 134, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(109, 73, 254, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

.logo-am {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.logo-02 {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

/* ===== Store Buttons ===== */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.25s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-label {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== Phone Mockup ===== */
.hero-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.phone-frame {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  background: #0d0d1a;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(234, 54, 134, 0.08);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(170deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 20px;
  text-align: center;
}

.phone-logo-small {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.phone-am {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.phone-02 {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-greeting {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

/* Wave animation */
.phone-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.wave-bar {
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: var(--gradient);
  animation: wave 1.4s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

@keyframes wave {
  0% { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.phone-cta-btn {
  padding: 14px 32px;
  border-radius: 16px;
  background: var(--gradient);
  font-size: 14px;
  font-weight: 600;
  color: white;
  box-shadow: 0 8px 24px rgba(234, 54, 134, 0.3);
}

/* ===== Features ===== */
.features {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #12122a 100%);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ===== How it works ===== */
.how-it-works {
  padding: 120px 0;
  background: #12122a;
}

.steps {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-top: 2px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-line {
  width: 2px;
  height: 32px;
  background: var(--card-border);
  margin-left: 23px;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #12122a 0%, var(--bg-deep) 100%);
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-card .store-buttons {
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 8px;
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--text-tertiary);
  font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .store-buttons {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 20px 48px;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }

  .phone-greeting {
    font-size: 18px;
  }

  .store-btn {
    padding: 10px 18px;
  }

  .store-name {
    font-size: 14px;
  }

  .features,
  .how-it-works {
    padding: 80px 0;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.6s ease forwards;
  }

  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }

  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(3) { animation-delay: 0.2s; }
  .step:nth-child(5) { animation-delay: 0.3s; }
  .step:nth-child(7) { animation-delay: 0.4s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
