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

:root {
  --primary: #274CF7;
  --secondary: #D8B08C;
  --accent: #FFB900;
  --text: #0F1419;
  --text-secondary: #536471;
  --bg: #FFFFFF;
  --bg-secondary: #F7F9FC;
  --border: #E8ECF0;
  --shadow-sm: 0 2px 8px rgba(39, 76, 247, 0.08);
  --shadow-md: 0 8px 24px rgba(39, 76, 247, 0.12);
  --shadow-lg: 0 16px 48px rgba(39, 76, 247, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-nav:hover {
  background: #1E3FD8;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #5B7EFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 700;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.phone-mockup:hover {
  transform: translateY(-8px);
}

.phone-mockup-offset {
  position: absolute;
  right: -40px;
  top: 80px;
  width: 240px;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(39, 76, 247, 0.24);
}

.btn-primary:hover {
  background: #1E3FD8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 76, 247, 0.32);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.125rem;
}

/* Section Styles */
section {
  padding: 30px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 60px;
}

/* Features Section */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
  background: var(--bg-secondary);
}

.screenshot-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.screenshot-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(39, 76, 247, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.screenshot-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.screenshot-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.screenshot-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  display: block;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #5B7EFF 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 24px;
  opacity: 1;
}

.cta-content .download-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 1;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.cta-download .download-buttons {
  margin-bottom: 0;
}

/* Download Section */
.download {
  background: var(--bg);
  text-align: center;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-button img {
  height: 56px;
  transition: var(--transition);
}

.store-button:hover img {
  transform: scale(1.05);
}

.download-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background-color: var(--text);
  color: white;
  padding: 32px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  display: flex;
  gap: 32px;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-right a:hover {
  color: white;
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: calc(100vh - 200px);
}

.legal-page .container {
  max-width: 720px;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 32px;
  transition: var(--transition);
}

.back-link:hover {
  opacity: 0.8;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-update {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 4px;
}

.legal-section:first-of-type {
  margin-top: 0;
}

.legal-update {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 2px;
  color: var(--text);
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.legal-section ul {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 18px;
  margin-bottom: 4px;
}

.legal-section li {
  margin-bottom: 2px;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.legal-quote {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
}

.legal-date {
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Support Page */
.support-intro {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.support-section .support-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white !important;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.support-section .support-cta:hover {
  background: #1E3FD8;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .screenshot-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-mockup-offset {
    display: none;
  }

  .hero-mockup {
    order: -1;
  }

  .screenshot-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-menu a:not(.btn-nav) {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .screenshot-text h2 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

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

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  section {
    padding: 60px 0;
  }

  .phone-mockup {
    width: 100%;
    max-width: 300px;
  }
}
