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

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #34a853;
  --text: #1a1a2e;
  --text-secondary: #5f6368;
  --bg: #ffffff;
  --bg-subtle: #f8f9ff;
  --border: #e8eaed;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-mockup: 0 24px 60px rgba(0,0,0,0.22);
  --font: 'Noto Sans KR', sans-serif;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,115,232,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(26,115,232,0.4);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--max-w);
  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;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef4ff 0%, #f8fff9 60%, #fff 100%);
}

.hero-bg-blur {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,115,232,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26,115,232,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 4px;
}

.hero-mockup {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.18));
}

/* ===== IPHONE MOCKUP ===== */
.iphone-mockup {
  background: #1c1c1e;
  border-radius: 44px;
  position: relative;
  flex-shrink: 0;
}

/* Dynamic Island */
.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

/* Side buttons */
.iphone-mockup::after {
  content: '';
  position: absolute;
  top: 100px;
  right: -3px;
  width: 3px;
  height: 64px;
  background: #2c2c2e;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  height: 100%;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Large mockup (hero) */
.iphone-lg {
  width: 280px;
  height: 570px;
  padding: 14px;
  box-shadow: 0 0 0 2px #3a3a3c, var(--shadow-mockup);
}

.iphone-lg::before {
  width: 92px;
  height: 30px;
}

/* Small mockup (features) */
.iphone-sm {
  width: 190px;
  height: 390px;
  padding: 10px;
  box-shadow: 0 0 0 1.5px #3a3a3c, 0 16px 40px rgba(0,0,0,0.2);
  border-radius: 36px;
}

.iphone-sm .iphone-screen { border-radius: 28px; }

.iphone-sm::before {
  width: 66px;
  height: 22px;
  top: 12px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 64px;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 60px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card--reverse { flex-direction: row-reverse; }

.feature-mockup {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 260px;
}

.feature-text { flex: 1; }

.feature-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(52,168,83,0.1);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.feature-text h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== DOWNLOAD CTA ===== */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.download-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}

.download h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
}

.download p {
  font-size: 17px;
  opacity: 0.75;
  line-height: 1.7;
}

.download .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
  margin-top: 8px;
}

.download .btn-primary:hover {
  background: #f0f4ff;
  box-shadow: 0 12px 40px rgba(255,255,255,0.3);
}

.download-note {
  font-size: 13px;
  opacity: 0.5;
  margin-top: -4px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  background: #0d0d1a;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }

  .hero-cta { align-items: center; }

  .hero-mockup { transform: scale(0.9); }

  .feature-card,
  .feature-card--reverse {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .feature-mockup { width: auto; }

  .feature-grid { gap: 60px; }

  .features { padding: 70px 0; }
  .download { padding: 70px 0; }
}

@media (max-width: 480px) {
  .iphone-lg { width: 230px; height: 465px; }
  .iphone-sm { width: 160px; height: 330px; }
  .hero-title { font-size: 32px; }
}
