/* ============ Tokens ============ */
:root {
  --brand-50:  #eefcf3;
  --brand-100: #d7f7e2;
  --brand-200: #b0efc6;
  --brand-300: #7fe1a4;
  --brand-400: #4bcb7e;
  --brand-500: #22b25e;
  --brand-600: #159049;
  --brand-700: #12723c;
  --brand-800: #125a33;
  --brand-900: #0f4a2c;

  --ink-900: #0b1710;
  --ink-800: #16241c;
  --ink-700: #2b3a31;
  --ink-600: #4a5a50;
  --ink-500: #6b7a70;
  --ink-400: #93a29a;
  --ink-300: #c2ccc6;
  --ink-200: #e1e7e3;
  --ink-100: #f0f4f1;
  --ink-50:  #f8faf9;

  --bg: #ffffff;
  --bg-alt: var(--ink-50);
  --surface: #ffffff;
  --border: var(--ink-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 30, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 30, 20, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 30, 20, 0.14);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --container: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1410;
    --bg-alt: #101b15;
    --surface: #131f19;
    --border: #223028;
    --text: #f0f4f1;
    --text-muted: #a9b7ae;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn--ghost:hover { color: var(--text); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo__mark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__mark em { font-style: normal; color: var(--brand-600); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--brand-600); }

.header__cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 20px 24px; gap: 4px; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -10%, var(--brand-100), transparent 60%),
    radial-gradient(500px 380px at 5% 10%, var(--brand-50), transparent 60%),
    url('../images/hero-bg.svg') center / cover no-repeat;
  z-index: -1;
}
@media (prefers-color-scheme: dark) {
  .hero__bg {
    background:
      radial-gradient(600px 400px at 85% -10%, color-mix(in srgb, var(--brand-700) 25%, transparent), transparent 60%),
      radial-gradient(500px 380px at 5% 10%, color-mix(in srgb, var(--brand-800) 20%, transparent), transparent 60%),
      url('../images/hero-bg.svg') center / cover no-repeat;
  }
}
.hero__inner { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { background: color-mix(in srgb, var(--brand-700) 30%, transparent); border-color: var(--brand-700); color: var(--brand-300); }
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero__title .highlight { color: var(--brand-600); }
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__proof {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero__proof span::before {
  content: "● ";
  color: var(--brand-500);
}

/* ============ Stats ============ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
  text-align: center;
}
.stats__item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-600);
  margin-bottom: 4px;
}
.stats__item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Section shared ============ */
section { padding: 96px 0; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ============ Problem ============ */
.problem { background: var(--bg-alt); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.problem__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.problem__icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.problem__card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.problem__card p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .problem__grid { grid-template-columns: 1fr; }
}

/* ============ Features ============ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--brand-300);
}
.feature__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--brand-50);
  border-radius: 14px;
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .feature__icon { background: color-mix(in srgb, var(--brand-700) 30%, transparent); }
}
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Case Study ============ */
.case { background: var(--bg-alt); }
.case__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.case__desc { color: var(--text-muted); margin-bottom: 28px; font-size: 1rem; }
.case__list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.case__list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.case__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 700;
}
.case__list strong { color: var(--text); font-weight: 700; }

.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--ink-100);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .browser-frame__bar { background: #0e1712; }
}
.browser-frame__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-300);
}
.browser-frame__url {
  margin-left: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}
.browser-frame__body {
  padding: 28px;
  background:
    radial-gradient(400px 240px at 100% 0%, var(--brand-50), transparent 60%);
}
@media (prefers-color-scheme: dark) {
  .browser-frame__body { background: radial-gradient(400px 240px at 100% 0%, color-mix(in srgb, var(--brand-700) 25%, transparent), transparent 60%); }
}
.mock-hero { margin-bottom: 24px; }
.mock-eyebrow { font-size: 0.75rem; font-weight: 700; color: var(--brand-600); margin-bottom: 8px; }
.mock-title { font-size: 1.3rem; font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.mock-btn {
  display: inline-block;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 8px;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-card span { font-size: 1.1rem; }

@media (max-width: 900px) {
  .case__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ How it works ============ */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.how__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.how__step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.how__step p { color: var(--text-muted); font-size: 0.95rem; }
.how__step {
  padding-top: 20px;
  border-top: 2px solid var(--brand-500);
}

@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
}

/* ============ Pricing ============ */
.pricing { background: var(--bg-alt); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.price-card__desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.price-card__price { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 700;
}
.price-card--featured {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
}

/* ============ About ============ */
.about__inner { max-width: 760px; }
.about__desc { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 16px; }

/* ============ Contact ============ */
.contact__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact .section-title, .contact .section-desc { margin-left: auto; margin-right: auto; }
.contact__form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--brand-600);
  min-height: 1.2em;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
}

/* ============ Footer ============ */
.footer {
  background: #090e17;
  color: var(--ink-200);
  padding: 56px 0 28px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .logo__mark { color: #fff; }
.footer .logo__mark em { color: var(--brand-400); }
.footer__brand p { margin-top: 8px; color: var(--ink-400); font-size: 0.9rem; }
.footer__demo { margin-top: 14px !important; }
.footer__demo a { color: var(--brand-300); font-weight: 600; }

.footer__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.footer__col p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--ink-300);
  line-height: 1.6;
}
.footer__col a {
  color: var(--ink-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__col a:hover {
  color: var(--brand-300);
}

.footer__copy {
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__info { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Scroll top ============ */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
