/* =====================================================
   SlotIn v2 — Professional SaaS Blue Design System
   Design Movement: Enterprise SaaS / B2B Dashboard
   Primary: #2563EB | Accent: #10B981 | BG: #F8FAFC
   Font: Pretendard (Display 800, Body 400/500/600)
   ===================================================== */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --secondary: #0EA5E9;
  --accent: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.btn--ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn--ghost:hover { background: var(--bg); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--outline-white { background: transparent; color: white; border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }
.btn--lg { padding: .875rem 1.75rem; font-size: 1rem; border-radius: var(--radius); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.header__nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.header__nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .9375rem;
  transition: color .2s;
}
.header__nav a:hover { color: var(--primary); }
.header__actions { display: flex; gap: .75rem; align-items: center; }
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: white;
}
.header__mobile-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.header__mobile-nav a:last-child { border-bottom: none; }
.header__mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,58,138,.75) 50%, rgba(14,165,233,.4) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero__badge {
  display: inline-block;
  background: rgba(37,99,235,.3);
  border: 1px solid rgba(37,99,235,.5);
  color: #93C5FD;
  font-size: .8125rem;
  font-weight: 600;
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero__title--accent {
  background: linear-gradient(135deg, #60A5FA, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero__stat { text-align: center; }
.hero__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  font-family: 'Inter', 'Pretendard', sans-serif;
}
.hero__stat span { color: #60A5FA; font-weight: 700; font-size: 1.25rem; }
.hero__stat p { color: rgba(255,255,255,.6); font-size: .8125rem; margin-top: .125rem; }
.hero__stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }
.hero__visual { position: relative; }
.hero__dashboard-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero__dashboard-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  display: block;
}
.hero__mobile-float {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 160px;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.3));
}
.hero__mobile-img { width: 100%; border-radius: 20px; }

/* ===== LOGO STRIP ===== */
.logo-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  text-align: center;
}
.logo-strip__label {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.logo-strip__items {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.logo-strip__items span {
  font-size: .9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 700;
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-badge--white {
  background: rgba(255,255,255,.2);
  color: white;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 0;
  background: var(--bg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== DEMO SECTION ===== */
.demo-section {
  padding: 6rem 0;
  background: white;
}
.demo-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.demo-tab {
  padding: .625rem 1.5rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.demo-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.demo-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.demo-pane { display: none; }
.demo-pane.active { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.demo-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}
.demo-info ul {
  list-style: none;
  margin-bottom: 1.75rem;
}
.demo-info ul li {
  padding: .5rem 0;
  color: var(--text-secondary);
  font-size: .9375rem;
  border-bottom: 1px solid var(--border);
}
.demo-info ul li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.demo-hint {
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--text-muted);
}
.demo-preview img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.demo-preview--mobile {
  display: flex;
  justify-content: center;
}
.demo-preview--mobile img {
  width: 280px;
  border-radius: 28px;
  border: none;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 6rem 0;
  background: var(--bg);
}
.steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.step__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: .75rem;
  font-family: 'Inter', sans-serif;
}
.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.step p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step__arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== PRICING ===== */
.pricing {
  padding: 6rem 0;
  background: white;
}
.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.pricing__toggle .active { color: var(--text); }
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.discount-badge {
  background: #DCFCE7;
  color: #16A34A;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 100px;
  font-style: normal;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--popular {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.03);
}
.pricing-card--popular:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .875rem;
  border-radius: 100px;
}
.pricing-card__header { margin-bottom: 1.25rem; }
.pricing-card__header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.pricing-card--popular .pricing-card__header h3 { color: white; }
.pricing-card__header p {
  font-size: .875rem;
  color: var(--text-muted);
}
.pricing-card--popular .pricing-card__header p { color: rgba(255,255,255,.7); }
.pricing-card__price {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card--popular .pricing-card__price { border-color: rgba(255,255,255,.2); }
.pricing-card__price strong {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.pricing-card--popular .pricing-card__price strong { color: white; }
.pricing-card__price span {
  font-size: .875rem;
  color: var(--text-muted);
  margin-left: .25rem;
}
.pricing-card--popular .pricing-card__price span { color: rgba(255,255,255,.7); }
.pricing-card__features {
  list-style: none;
  margin-bottom: 1.75rem;
}
.pricing-card__features li {
  padding: .5rem 0;
  font-size: .875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-card--popular .pricing-card__features li {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.15);
}
.pricing-card__features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-card--popular .pricing-card__features li.disabled { color: rgba(255,255,255,.35); }
.pricing-card--popular .btn--outline {
  border-color: white;
  color: white;
}
.pricing-card--popular .btn--outline:hover { background: rgba(255,255,255,.15); }

/* ===== CONTACT ===== */
.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #0EA5E9 100%);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact__text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin: .75rem 0 1rem;
  line-height: 1.25;
}
.contact__text p {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact__benefits div {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: .9375rem;
}
.contact__form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
}
.form-group textarea { resize: vertical; }
.form-privacy {
  text-align: center;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: .75rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #0F172A;
  padding: 3.5rem 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  margin-top: .75rem;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__links h4 {
  color: white;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer__links a {
  display: block;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .875rem;
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer__links a:hover { color: white; }
.footer__bottom p {
  color: rgba(255,255,255,.35);
  font-size: .8125rem;
  text-align: center;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--popular { transform: none; }
  .pricing-card--popular:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__actions { display: none; }
  .header__hamburger { display: flex; }
  
  .hero__content { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem 3rem; }
  .hero__visual { display: none; }
  .hero__stats { gap: 1rem; }
  .hero__stat strong { font-size: 1.375rem; }
  
  .features__grid { grid-template-columns: 1fr; }
  .demo-pane.active { grid-template-columns: 1fr; }
  .demo-preview { order: -1; }
  .demo-preview--mobile { order: -1; }
  
  .steps { flex-direction: column; }
  .step { max-width: 100%; width: 100%; }
  .step__arrow { transform: rotate(90deg); }
  
  .pricing__grid { grid-template-columns: 1fr; }
  
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; gap: .75rem; }
  .hero__stat-divider { width: 40px; height: 1px; }
  .contact__form { padding: 1.5rem; }
  .footer__links { grid-template-columns: 1fr; }
}
