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

:root {
  --red:       #e02020;
  --red-dark:  #b01010;
  --red-light: #ff4444;
  --dark:      #0d0d0d;
  --dark-2:    #141414;
  --dark-3:    #1e1e1e;
  --gray:      #6b7280;
  --gray-light:#f3f4f6;
  --white:     #ffffff;
  --text:      #1a1a1a;
  --font:      'Inter', system-ui, sans-serif;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --transition:all .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,32,32,.35);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: #d1d5db;
}
.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn--small { padding: 8px 18px; font-size: 14px; }
.btn--large { padding: 16px 32px; font-size: 17px; }

/* ===== SECTION HELPERS ===== */
.section { padding: 96px 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 56px;
}
.section--dark .section-subtitle { color: #9ca3af; }

.highlight {
  color: var(--red);
  position: relative;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar--scrolled {
  border-bottom-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.navbar__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}
.navbar__links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fafafa 0%, #fff0f0 100%);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero__content h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__hint { font-size: 13px; color: #9ca3af; }

/* ===== PHONE MOCKUP ===== */
.hero__visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 240px;
  height: 480px;
  background: var(--dark);
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 2px #333;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 999px;
}
.phone-screen {
  background: #111;
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  padding: 24px 12px 12px;
}

/* ===== HERO MODULES PILLS ===== */
.hero__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.module-pill {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ===== APP SCREEN MOCKUP ===== */
.app-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff8f8;
  border-radius: inherit;
  overflow: hidden;
}
.app-screen-header {
  background: var(--red);
  color: var(--white);
  padding: 10px 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.app-screen-title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.app-screen-desc { font-size: 7px; opacity: .9; margin-top: 4px; line-height: 1.4; }
.app-screen-korean { font-size: 10px; opacity: .85; white-space: nowrap; flex-shrink: 0; }

.app-screen-body {
  flex: 1;
  padding: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-list-item {
  background: var(--white);
  border-radius: 8px;
  padding: 7px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex-shrink: 0;
  border: 1px solid transparent;
}
.app-list-item--open { border-color: var(--red); }
.app-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.app-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; flex-shrink: 0;
}
.app-list-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-list-name { font-size: 8.5px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list-sub  { font-size: 7px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list-chev { font-size: 14px; color: #ccc; line-height: 1; flex-shrink: 0; }
.app-list-chev--rot { transform: rotate(90deg); color: var(--red); display: inline-block; }
.app-tag {
  background: #e8f4fd; color: #1565c0;
  border-radius: 3px; padding: 1px 4px;
  font-size: 6px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.app-expanded {
  background: var(--white);
  border-radius: 6px;
  padding: 5px 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.app-exp-line { font-size: 7px; color: #444; margin-bottom: 3px; line-height: 1.4; }
.app-yt-btn {
  border: 1px solid var(--red); color: var(--red);
  border-radius: 4px; padding: 3px 6px;
  text-align: center; font-size: 7px; font-weight: 600; margin-top: 3px;
}
.app-bottom-nav {
  background: #111;
  display: flex;
  padding: 4px 0 3px;
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
}
.app-nav-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 1px; padding: 2px 1px;
}
.app-nav-icon { font-size: 11px; line-height: 1; }
.app-nav-label { font-size: 5.5px; color: #777; }
.app-nav-tab--active { background: var(--red); border-radius: 12px; margin: 1px 2px; }
.app-nav-tab--active .app-nav-label { color: var(--white); }

/* ===== PHONE MOCKUP SMALL ===== */
.phone-mockup--sm {
  width: 220px;
  height: 440px;
}
.phone-mockup--sm .phone-screen { padding: 20px 10px 10px; }

/* ===== SCREENSHOTS SECTION ===== */
.screenshots { background: #f9fafb; }
.screenshots__grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.shot-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.shot-caption { text-align: center; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; }
.shot-caption small { font-size: 13px; color: var(--gray); font-weight: 400; }

/* ===== MODULES SECTION ===== */
.section--light { background: #f9fafb; }
.modules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.module-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.module-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(224,32,32,.1);
  transform: translateY(-4px);
}
.module-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.module-icon-wrap {
  width: 50px; height: 50px; border-radius: 14px;
  background: #fee2e2;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.module-header h3 { font-size: 20px; font-weight: 800; line-height: 1.1; margin-bottom: 3px; }
.module-subtitle { font-size: 12px; color: var(--gray); font-weight: 400; }
.module-card > p { font-size: 14px; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.module-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.module-list li {
  font-size: 13px; color: #374151;
  padding-left: 14px; position: relative; line-height: 1.5;
}
.module-list li::before { content: '›'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: #fbbf24; font-size: 18px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: #d1d5db; line-height: 1.7; flex: 1; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--white); }
.testimonial-author span { font-size: 12px; color: #6b7280; }

/* ===== FAQ ===== */
.faq__container { max-width: 720px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq__item[open] { border-color: var(--red); }
.faq__item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--red);
  font-weight: 400;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}
.faq__answer code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--red-dark);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-banner__inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-banner__inner p {
  font-size: 17px;
  opacity: .85;
  max-width: 500px;
  margin: 0 auto 36px;
}
.cta-banner .btn--primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.cta-banner .btn--primary:hover {
  background: #f9fafb;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-2);
  color: #d1d5db;
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__brand > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.footer__brand p { font-size: 14px; color: #6b7280; }
.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links h4, .footer__contact h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__links a, .footer__contact a {
  font-size: 14px;
  color: #6b7280;
  transition: var(--transition);
}
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid #1f2937;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #4b5563;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .modules__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .screenshots__grid { gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__modules { justify-content: center; }
  .hero__visual { display: none; }
  .navbar__links { display: none; }
  .modules__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .phone-mockup--sm { width: 180px; height: 360px; }
}
