/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --danger: #EF4444;

  /* Neutrals */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --gradient-secondary: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px 0;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

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

.section {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

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

/* ===== Section Indicators ===== */
.section-indicators {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.indicator:hover {
  background: var(--gray-500);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  transform: scale(1.3);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  padding: 1rem 0;
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu li a:hover {
  color: var(--primary);
}

.nav-menu li a.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-menu li a.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
  pointer-events: none;
}

.nav-menu li a.btn-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(59, 130, 246, 0.4);
}

.nav-menu li a.btn-primary:hover::before {
  left: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  text-align: center;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-link {
  background: none;
  color: var(--primary);
  padding: 0.5rem;
  text-decoration: underline;
}

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

.btn-copy {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid var(--gray-300);
}

.btn-copy:hover {
  background: var(--gray-200);
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  display: flex;
  align-items: center;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  word-break: keep-all;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.5;
  word-break: keep-all;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Code Window */
.code-window {
  background: var(--gray-900);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.code-header {
  background: var(--gray-800);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #EF4444; }
.code-dot.yellow { background: #F59E0B; }
.code-dot.green { background: #10B981; }

.code-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.code-content {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gray-300);
}

.code-content code {
  display: block;
}

.code-keyword { color: #C678DD; }
.code-function { color: #61AFEF; }
.code-string { color: #98C379; }
.code-property { color: #E06C75; }
.code-number { color: #D19A66; }
.code-comment { color: #5C6370; font-style: italic; }

/* ===== Usage Section ===== */
.usage-section {
  background: white;
}

.usage-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.usage-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.25rem;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}

.usage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.usage-card.full {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-color: var(--primary);
}

.usage-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-700);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.usage-badge.featured {
  background: var(--primary);
}

.usage-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.usage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.usage-desc {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.usage-features {
  margin-bottom: 1rem;
  display: none;
}

.usage-features h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.usage-features ul {
  list-style: none;
  padding: 0;
}

.usage-features li {
  padding: 0.25rem 0;
  color: var(--gray-700);
  line-height: 1.5;
  font-size: 0.875rem;
}

.usage-api {
  margin-bottom: 1rem;
}

.usage-api h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.api-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  font-size: 0.8125rem;
}

.api-method {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.api-path {
  font-family: var(--font-mono);
  color: var(--gray-900);
  font-weight: 600;
  flex: 1;
}

.api-desc {
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.usage-auth {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.875rem;
}

.usage-auth strong {
  color: var(--gray-900);
}

/* Comparison Table */
.usage-comparison {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: 12px;
}

.usage-comparison h3 {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: var(--gray-900);
  color: white;
}

.comparison-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.comparison-table th:first-child {
  width: 50%;
  white-space: nowrap;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 1rem 1.5rem;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table .check {
  color: var(--secondary);
  font-size: 1.125rem;
}

.comparison-table .cross {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.comparison-table .partial {
  color: var(--accent);
  font-size: 0.8125rem;
}

/* ===== Pricing Section ===== */
.pricing-section {
  background: var(--gray-50);
}

.pricing-header {
  margin-bottom: 3rem;
}

/* Tooltip Styles */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  cursor: help;
}

.info-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: var(--transition);
}

.info-tooltip:hover .info-icon {
  color: var(--primary);
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-900);
}

.info-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* 모바일 탭 UI (기본적으로 숨김) */
.pricing-tabs-mobile {
  display: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.pricing-price {
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

.price-period {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1rem;
}

.pricing-features li {
  padding: 0.375rem 0;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8125rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 0.9375rem;
}

/* ===== Docs Section ===== */
.docs-section {
  background: white;
  display: flex;
  align-items: center;
}

.docs-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 500px;
}

.docs-nav-item {
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-700);
  font-weight: 500;
}

.docs-nav-item:hover {
  background: white;
}

.docs-nav-item.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.docs-icon {
  font-size: 1.25rem;
}

.docs-content {
  position: relative;
}

.docs-section {
  display: none;
}

.docs-section.active {
  display: block;
  animation: fadeIn 0.3s;
}

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

.docs-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.docs-section p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.docs-code {
  background: var(--gray-900);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
}

.docs-code pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.docs-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.docs-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  color: white;
  margin-bottom: 0.75rem;
}

.docs-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== FAQ Section ===== */
.faq-section {
  background: white;
  display: flex;
  align-items: center;
}

.faq-section .container {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-bottom: 2rem;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--gray-900);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--gray-900);
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.faq-answer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer li {
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.faq-answer li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--primary);
  font-weight: bold;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
}

.cta-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: var(--gray-100);
}

/* ===== Footer ===== */
.footer-section {
  background: var(--gray-900);
  color: white;
  display: flex;
  align-items: center;
}

.footer-section .container {
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--gray-400);
}

.footer-column h4 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ===== Signup Page ===== */
.signup-section {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
  align-items: center;
}

.signup-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.signup-header {
  text-align: center;
  margin-bottom: 3rem;
}

.signup-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.signup-header p {
  color: var(--gray-600);
}

.signup-step {
  display: none;
}

.signup-step.active {
  display: block;
  animation: fadeIn 0.3s;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--gray-200);
  z-index: -1;
}

.step-item.active:not(:last-child)::after,
.step-item.completed:not(:last-child)::after {
  background: var(--primary);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gray-200);
  color: var(--gray-500);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-item.active .step-number {
  background: var(--primary);
  color: white;
}

.step-item.completed .step-number {
  background: var(--secondary);
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* Form Styles */
.signup-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.code-input {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5rem;
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.error-message {
  padding: 1rem;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  color: #991B1B;
  margin-top: 1rem;
  display: none;
}

.error-message.show {
  display: block;
}

.signup-footer {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.signup-footer a {
  color: var(--primary);
  text-decoration: none;
}

.signup-footer a:hover {
  text-decoration: underline;
}

.verify-info {
  margin-bottom: 2rem;
}

.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-small {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Success Page */
.success-content {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-content > p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.key-container {
  text-align: left;
  margin-bottom: 3rem;
}

.key-box {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.key-box.secret {
  border-color: var(--accent);
  background: #FFFBEB;
}

.key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.key-label {
  font-weight: 600;
  color: var(--gray-700);
}

.key-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gray-900);
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  word-break: break-all;
  border: 1px solid var(--gray-300);
}

.key-warning {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #92400E;
}

.success-info {
  text-align: left;
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.success-info h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.next-steps {
  padding-left: 1.5rem;
}

.next-steps li {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.next-steps li:last-child {
  margin-bottom: 0;
}

.next-steps strong {
  color: var(--gray-900);
}

.next-steps pre {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 1rem;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: white;
  font-size: 1.125rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  /* 태블릿/모바일에서는 섹션 스냅 및 인디케이터 비활성화 */
  .section {
    min-height: auto;
  }

  .section-indicators {
    display: none;
  }

  .hero-section .container {
    grid-template-columns: 1fr;
  }

  .hero-code {
    order: -1;
  }

  .usage-types {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    color: var(--gray-900);
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .usage-types {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.875rem;
    min-width: auto;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    white-space: normal;
  }

  /* 모바일에서 그리드 숨기고 탭 표시 */
  .pricing-grid {
    display: none;
  }

  .pricing-tabs-mobile {
    display: block;
  }

  /* 탭 네비게이션 */
  .pricing-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-tab {
    flex: 1;
    min-width: 70px;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
  }

  .pricing-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  /* 탭 콘텐츠 */
  .pricing-tab-content {
    display: none;
  }

  .pricing-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

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

  /* 모바일 카드 스타일 */
  .pricing-card-mobile {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 2px solid var(--gray-200);
    text-align: center;
  }

  .pricing-card-mobile.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
  }

  .pricing-card-mobile .pricing-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .pricing-card-mobile .pricing-price {
    margin-bottom: 1.5rem;
  }

  .pricing-card-mobile .price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
  }

  .pricing-card-mobile .price-period {
    font-size: 1rem;
    color: var(--gray-600);
  }

  .pricing-card-mobile .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
  }

  .pricing-card-mobile .pricing-features li {
    padding: 0.75rem 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .pricing-card-mobile .pricing-features li:last-child {
    border-bottom: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .signup-container {
    padding: 2rem 1.5rem;
  }

  .step-indicator {
    gap: 0.5rem;
  }

  .step-label {
    display: none;
  }

  .success-actions {
    flex-direction: column;
  }

  /* FAQ 모바일 */
  .faq-section .container {
    max-height: none;
    overflow-y: visible;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  /* Tooltip 모바일 */
  .tooltip-text {
    white-space: normal;
    min-width: 200px;
    max-width: 280px;
    font-size: 0.8125rem;
    left: auto;
    right: 0;
    transform: translateX(0);
  }

  /* 코드 블록 모바일 최적화 */
  .code-content {
    font-size: 0.6875rem;
    padding: 16px;
    overflow-x: auto;
  }
}

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

  .code-block {
    margin: 0 -16px;
    border-radius: 0;
  }

  .code-content {
    font-size: 0.625rem;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .code-content code {
    white-space: pre-wrap;
    word-break: break-all;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
