/* ================================================
   K8s Monitoring Setup Wizard — Styles
   Design: Impeccable (zero-decoration minimalism)
   Colors: Canvas #fff, Ink #000, Signal #0052cc
   Typography: Pretendard 400/700
   Spacing: 4px base, Radius: 4px
   ================================================ */

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

:root {
  --canvas: #ffffff;
  --ink: #000000;
  --signal: #0052cc;
  --signal-hover: #003d99;
  --border: #e5e5e5;
  --bg-light: #fafafa;
  --bg-dark: #0a0a0a;
  --text-secondary: #595959;
  --radius: 4px;
  --font-sans: 'Pretendard', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1120px;
  --transition: 200ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Skip Nav */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 1000;
  transition: top var(--transition);
}
.skip-nav:focus {
  top: 16px;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.header-nav a:hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--signal);
  border-color: var(--signal);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-copy:hover {
  border-color: var(--ink);
}

/* Section Titles */
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Problem */
.problem {
  padding: 96px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  transition: border-color var(--transition);
}
.problem-card:hover {
  border-color: var(--ink);
}

.problem-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features */
.features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.feature-card:hover {
  border-color: var(--ink);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Image Section */
.feature-image-section {
  padding: 96px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image-content h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.feature-image-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
}

.feature-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Wizard */
.wizard {
  padding: 96px 0;
}

/* Wizard Progress */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity var(--transition);
}
.wizard-step.active {
  opacity: 1;
}
.wizard-step.completed {
  opacity: 0.7;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
}
.wizard-step.active .step-num {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}
.wizard-step.completed .step-num {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--canvas);
}

.step-label {
  font-size: 13px;
  font-weight: 700;
}

.wizard-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 16px;
  margin-bottom: 24px;
}

/* Form */
.wizard-panel {
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 300ms ease;
}

.hidden {
  display: none !important;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label,
.form-group legend {
  font-size: 14px;
  font-weight: 700;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  transition: border-color var(--transition);
  min-height: 44px;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--ink);
}
.form-group input::placeholder {
  color: #b0b0b0;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  min-height: 44px;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Output */
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.output-header h3 {
  font-size: 24px;
  font-weight: 700;
}

.output-actions {
  display: flex;
  gap: 12px;
}

.output-section {
  margin-bottom: 32px;
}

.output-section h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.code-block {
  position: relative;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block pre {
  padding: 20px;
  padding-right: 80px;
  overflow-x: auto;
  margin: 0;
}

.code-block code,
.code-block pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
  white-space: pre;
}

.code-block > code {
  display: block;
  padding: 16px;
  padding-right: 80px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #d4d4d4;
  word-break: break-all;
}

.btn-copy {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Tabs */
.output-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 200ms ease;
}

/* Guide */
.guide-content {
  font-size: 15px;
  line-height: 1.8;
  padding: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 24px;
}
.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content ol,
.guide-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.guide-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-dark);
  color: #d4d4d4;
  padding: 2px 6px;
  border-radius: 2px;
}

.guide-content pre {
  background: var(--bg-dark);
  color: #d4d4d4;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Cost Compare */
.cost-compare {
  padding: 96px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cost-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
}

.cost-card-datadog {
  border-color: #d4d4d4;
}

.cost-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #e6f4ea;
  color: #1a7f37;
  border-radius: 2px;
  margin-bottom: 12px;
}

.cost-badge-paid {
  background: #fef3cd;
  color: #856404;
}

.cost-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.cost-price {
  margin: 24px 0;
}

.cost-amount {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cost-period {
  font-size: 16px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.cost-features {
  list-style: none;
  margin-bottom: 24px;
}

.cost-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.cost-features li:last-child {
  border-bottom: none;
}

.cost-save-cta {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cost-save-cta p {
  font-size: 15px;
  margin-bottom: 16px;
  text-align: center;
}

.cost-save-cta strong {
  font-family: var(--font-mono);
}

.cost-table-wrap {
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cost-table th,
.cost-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.cost-table th {
  font-weight: 700;
  background: var(--bg-light);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table td:nth-child(2) {
  color: var(--signal);
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  padding: 96px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--ink);
}

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

.hero-content > * {
  animation: slideUp 600ms ease both;
}
.hero-content > *:nth-child(2) { animation-delay: 100ms; }
.hero-content > *:nth-child(3) { animation-delay: 200ms; }
.hero-content > *:nth-child(4) { animation-delay: 300ms; }
.hero-content > *:nth-child(5) { animation-delay: 400ms; }

.hero-visual {
  animation: slideUp 800ms ease 300ms both;
}

.problem-card,
.feature-card {
  animation: slideUp 600ms ease both;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-nav {
    gap: 16px;
  }
  .header-nav a {
    font-size: 13px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

  .feature-image-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .wizard-line {
    width: 32px;
  }

  .output-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .output-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

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

  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .cost-amount {
    font-size: 36px;
  }
}

/* Focus visible — keyboard-only focus ring */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Print */
@media print {
  .header, .hero-cta-group, .wizard, .cta-section, .footer {
    display: none;
  }
}
