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

:root {
  --primary: #E85D04;
  --primary-light: #FF8A3D;
  --primary-dark: #C44D03;
  --accent: #FF4D6D;
  --bg: #FAF9F7;
  --bg-warm: #FFF8F3;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-disabled: #9CA3AF;
  --border: #E5E7EB;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

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

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--primary);
}
.nav-logo img { border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--primary) !important; color: white !important;
  padding: 8px 20px; border-radius: 100px;
  font-weight: 600 !important; font-size: 13px !important;
  transition: transform var(--transition), background var(--transition) !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: scale(1.03); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; border: none;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(232, 93, 4, 0.4);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg) 40%, #FFF0E5 100%);
  display: flex; align-items: center; padding-top: 64px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.shape-1 {
  width: 400px; height: 400px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(232,93,4,0.08) 0%, transparent 70%);
}
.shape-2 {
  width: 300px; height: 300px; bottom: 10%; left: -50px;
  background: radial-gradient(circle, rgba(255,77,109,0.06) 0%, transparent 70%);
  animation-delay: 3s;
}
.shape-3 {
  width: 200px; height: 200px; top: 40%; right: 20%;
  background: radial-gradient(circle, rgba(232,93,4,0.05) 0%, transparent 70%);
  animation-delay: 5s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
  display: flex; align-items: center; gap: 60px;
  position: relative; z-index: 1;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(232, 93, 4, 0.1); color: var(--primary);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  line-height: 1.3; margin-bottom: 20px;
  word-break: keep-all;
}

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

.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 32px; word-break: keep-all;
}
.hero-sub strong { color: var(--text); }

.hero-cta-note {
  margin-top: 12px; font-size: 13px; color: var(--text-disabled);
}

.hero-mockup { flex-shrink: 0; }

/* Phone frame */
.phone-frame {
  width: 280px; background: #1a1a1a; border-radius: 36px;
  padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
}
.phone-frame img { border-radius: 26px; width: 100%; }
.phone-frame::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #1a1a1a; border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-frame-sm { width: 220px; border-radius: 28px; padding: 10px; }
.phone-frame-sm img { border-radius: 20px; }
.phone-frame-sm::before { width: 80px; height: 22px; top: 10px; border-radius: 0 0 12px 12px; }

.hero-scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
}
.scroll-arrow {
  width: 24px; height: 24px; border-right: 2px solid var(--text-disabled);
  border-bottom: 2px solid var(--text-disabled);
  transform: rotate(45deg); animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 800px; margin: 0 auto; padding: 40px 24px;
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 36px; font-weight: 800; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-suffix { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Section Common ───────────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(232, 93, 4, 0.08); color: var(--primary);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  line-height: 1.4; word-break: keep-all;
}

/* ── Features ─────────────────────────────────────────────── */
.features { background: var(--surface); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Screenshots ──────────────────────────────────────────── */
.screenshots { background: var(--bg); }
.screenshots-carousel {
  display: flex; gap: 32px; justify-content: center;
  overflow-x: auto; padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-carousel::-webkit-scrollbar { display: none; }
.screenshot-item {
  flex-shrink: 0; text-align: center; scroll-snap-align: center;
}
.screenshot-label {
  display: block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials { background: var(--surface); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--border);
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-2px); box-shadow: var(--card-shadow);
}
.testimonial-stars {
  color: #FFB300; font-size: 18px; margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 15px; line-height: 1.7; margin-bottom: 20px;
  color: var(--text); word-break: keep-all;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial-author strong { font-size: 14px; display: block; }
.testimonial-author span { font-size: 12px; color: var(--text-disabled); }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #FFF0E5 0%, var(--bg) 100%);
}
.cta-card {
  max-width: 600px; margin: 0 auto; text-align: center;
  padding: 60px 40px; background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.cta-icon { margin: 0 auto 20px; border-radius: 16px; }
.cta-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-content > p {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 28px; word-break: keep-all;
}

.cta-form { width: 100%; }
.input-group {
  display: flex; gap: 8px;
  background: var(--bg); border-radius: 100px;
  padding: 6px; border: 1px solid var(--border);
}
.input-group input {
  flex: 1; border: none; background: transparent;
  padding: 12px 16px; font-family: inherit; font-size: 15px;
  outline: none; color: var(--text);
  min-width: 0;
}
.input-group input::placeholder { color: var(--text-disabled); }
.input-group .btn { padding: 12px 24px; font-size: 14px; white-space: nowrap; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--text-disabled); }

.cta-success { padding: 20px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cta-success p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: #1A1A1A; color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 60px 24px 30px; }
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.footer-brand img { border-radius: 10px; }
.footer-brand strong { color: white; font-size: 18px; display: block; }
.footer-brand p { font-size: 13px; margin-top: 2px; }

.footer-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; margin-bottom: 40px;
}
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 14px; }
.footer-col a {
  display: block; font-size: 13px; margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── Animations ───────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }
.screenshots-carousel .screenshot-item:nth-child(2) { transition-delay: 0.1s; }
.screenshots-carousel .screenshot-item:nth-child(3) { transition-delay: 0.2s; }
.screenshots-carousel .screenshot-item:nth-child(4) { transition-delay: 0.3s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; padding: 40px 20px; }
  .hero-mockup { order: -1; }
  .phone-frame { width: 220px; margin: 0 auto; }
  .hero-cta-group { display: flex; flex-direction: column; align-items: center; }

  .stats-inner { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .stat-item { flex: 1; min-width: 100px; }

  .section-inner { padding: 60px 20px; }

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

  .screenshots-carousel {
    justify-content: flex-start;
    padding: 20px 20px;
    gap: 20px;
  }
  .phone-frame-sm { width: 180px; }

  .cta-card { padding: 40px 24px; }
  .input-group { flex-direction: column; border-radius: var(--radius); padding: 8px; }
  .input-group input { text-align: center; }
  .input-group .btn { border-radius: var(--radius-sm); width: 100%; justify-content: center; }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .stat-number { font-size: 28px; }
  .screenshots-carousel { gap: 16px; }
  .phone-frame-sm { width: 160px; }
}
