@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #e0f2fe;

  --surface: #ffffff;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary);
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

@media (max-width: 640px) {
  .navbar .container {
    padding: 0 16px;
  }

  .nav-brand {
    font-size: 1rem;
    white-space: nowrap;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links .nav-link {
    display: none;
  }

  .nav-links .btn-primary {
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:focus,
.btn-primary:active {
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-color);
  border-color: #cbd5e1;
}

/* Form Controls */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
  color: #cbd5e1;
}

.form-control:disabled {
  background-color: var(--bg-color);
  cursor: not-allowed;
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Cards & Containers */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.875rem, 8vw, 2.125rem);
    line-height: 1.18;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .section-desc {
    font-size: 1rem;
    word-break: keep-all;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.badge-blue { background: #e0f2fe; color: #0284c7; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Step Tabs */
.step-tabs-shell {
  position: relative;
  margin-bottom: 1rem;
}

.step-tabs-shell::before,
.step-tabs-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.5rem;
  width: 2rem;
  pointer-events: none;
  z-index: 2;
}

.step-tabs-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 15%, rgba(255, 255, 255, 0));
}

.step-tabs-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 15%, rgba(255, 255, 255, 0));
}

.step-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 2rem 0.5rem;
  scroll-padding: 2rem;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.step-tabs::-webkit-scrollbar {
  display: none;
}

.step-tabs > button {
  scroll-snap-align: center;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Responsive Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 620px;
  background: #0f172a;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 28, 0.18) 0%, rgba(4, 12, 28, 0.58) 100%),
    linear-gradient(105deg, rgba(4, 12, 28, 0.78) 0%, rgba(15, 23, 42, 0.62) 44%, rgba(15, 23, 42, 0.28) 72%, rgba(4, 12, 28, 0.48) 100%);
  box-shadow: inset 0 -150px 170px rgba(4, 12, 28, 0.62);
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.92;
  filter: saturate(1.05) contrast(1.04) brightness(0.82);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.72);
}

.hero h1 span {
  color: #bae6fd;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.78), 0 1px 2px rgba(0, 0, 0, 0.72);
}

.hero .section-desc {
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.hero .badge-blue {
  background: rgba(4, 16, 42, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.hero .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.56);
}

.hero .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero {
    padding: 6.5rem 0 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.8vw, 2.25rem);
    line-height: 1.12;
  }

  .hero .section-desc {
    font-size: 1rem;
  }

  .hero .btn {
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
  }
}
