/* ============================================
   내이름은매니저 — Toss-inspired Design System
   ============================================ */

:root {
  /* Brand */
  --toss-blue: #3182f6;
  --toss-blue-hover: #1b64da;
  --toss-blue-dark: #1a5dc8;
  --toss-blue-soft: #e8f3ff;
  --toss-blue-gradient: linear-gradient(135deg, #3182f6 0%, #1a5dc8 100%);

  /* Neutrals */
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-400: #b0b8c1;
  --grey-500: #8b95a1;
  --grey-600: #6b7684;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;

  /* Semantic */
  --text-primary: #191f28;
  --text-secondary: #4e5968;
  --text-tertiary: #8b95a1;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-section: #f2f4f6;

  /* Effects */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(17,24,28,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 16px 32px rgba(17,24,28,0.10);
  --shadow-elevated: 0 10px 40px rgba(49,130,246,0.18);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; height: auto; }

/* ============ TYPOGRAPHY ============ */
.t-display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.t-h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.t-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.t-lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 500;
}
.t-body { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.t-small { font-size: 14px; line-height: 1.55; color: var(--text-tertiary); }
.t-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--toss-blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.text-grad {
  background: var(--toss-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--grey-100);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-logo span { color: var(--toss-blue); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease-out-quart);
}
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.18s var(--ease-out-quart);
  white-space: nowrap;
}
.btn-primary {
  background: var(--toss-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(49,130,246,0.24);
}
.btn-primary:hover {
  background: var(--toss-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(49,130,246,0.32);
}
.btn-secondary {
  background: var(--grey-100);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--grey-200); }
.btn-ghost {
  color: var(--text-secondary);
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--grey-50); }
.btn-lg { padding: 18px 32px; font-size: 18px; border-radius: var(--radius-lg); }

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s var(--ease-out-quart);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-flat {
  background: var(--grey-50);
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* ============ HERO ============ */
.hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 10vw, 128px);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: var(--toss-blue-soft);
  color: var(--toss-blue);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .t-lead {
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ FEATURE GRID ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-item {
  background: white;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-100);
  transition: all 0.2s var(--ease-out-quart);
}
.feature-item:hover {
  border-color: var(--toss-blue-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--toss-blue-soft);
  color: var(--toss-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}
.feature-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.feature-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ============ SPLIT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}
.split-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f3ff 0%, #f7faff 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--toss-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: var(--text-secondary); font-weight: 500; }

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--grey-100);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.faq-q::after {
  content: "+";
  font-size: 24px;
  color: var(--toss-blue);
  font-weight: 400;
  transition: transform 0.2s var(--ease-out-quart);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out-quart);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }

/* ============ CTA SECTION ============ */
.cta-band {
  background: var(--toss-blue-gradient);
  border-radius: var(--radius-2xl);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  color: white;
}
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band .t-lead { color: rgba(255,255,255,0.85); }
.cta-band .btn-primary {
  background: white;
  color: var(--toss-blue);
  margin-top: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-band .btn-primary:hover { background: var(--grey-50); }

/* ============ SITE FOOTER (channelup-style, dark) ============ */
.site-footer {
  background: #1a1f2e;
  color: #94a3b8;
  padding: 64px 0 32px;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.sf-brand .sf-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-decoration: none;
}
.sf-brand .sf-logo span { color: var(--toss-blue); }
.sf-brand .sf-tagline { color: #cbd5e1; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.sf-company { font-size: 13px; color: #94a3b8; line-height: 1.8; }
.sf-company strong { color: #cbd5e1; font-weight: 600; }
.sf-company a { color: #94a3b8; text-decoration: underline; }
.sf-col h4 {
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.sf-col ul { list-style: none; padding: 0; margin: 0; }
.sf-col li { margin-bottom: 10px; }
.sf-col a {
  color: #94a3b8; font-size: 13.5px; text-decoration: none;
  transition: color 0.15s ease;
}
.sf-col a:hover { color: #fff; }
.site-footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0; }
.site-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.sf-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.sf-bottom-links a {
  color: #cbd5e1; font-size: 13px; text-decoration: none;
  transition: color 0.15s ease;
}
.sf-bottom-links a:hover { color: #fff; }
.sf-bottom-links a.strong { color: #fff; font-weight: 600; }
.sf-social { display: flex; gap: 10px; }
.sf-social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  transition: all 0.15s ease;
  text-decoration: none;
}
.sf-social a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.sf-copyright { color: #64748b; font-size: 12.5px; }
@media (max-width: 960px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; margin-bottom: 24px; }
}
@media (max-width: 540px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--toss-blue); }
.breadcrumb-sep { color: var(--grey-300); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s var(--ease-out-quart) both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
