:root {
  /* Color Palette - Clean Air Theme */
  --bg-dark: #f8fafc;
  /* Now Light Gray/White */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --primary: #2563eb;
  /* Royal Blue */
  --primary-glow: rgba(37, 99, 235, 0.3);
  --accent: #10b981;
  /* Emerald (Success) */
  --text-main: #1e293b;
  /* Dark Slate */
  --text-muted: #64748b;
  /* Slate Gray */
  --border-light: #e2e8f0;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Radius */
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle light gradient */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.05rem;
  /* Dark text gradient */
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-main);
}

code {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(230, 235, 245, 0.6);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Glassmorphism Card (Light) */
.step-card {
  background: var(--bg-card);
  /* Lighter borders for white theme */
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Soft shadow for depth */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  /* Stronger shadow on hover */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: #cbd5e1;
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 6rem;
  font-weight: 900;
  /* Very subtle dark number */
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Controls & Inputs */
.intro-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.control-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

select,
input[type="text"] {
  width: 100%;
  background: #f1f5f9;
  /* Light gray input bg */
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Code Blocks */
.code-block-wrapper {
  margin-top: var(--space-md);
  position: relative;
}

.code-block {
  background: #1e293b;
  /* Keep code blocks dark for contrast */
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.code-block pre {
  color: #e2e8f0;
  /* Light text for dark code block */
  font-family: 'Fira Code', monospace;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  /* White text since on dark code block */
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.copy-btn.copied {
  background: var(--accent);
}

/* Utilities */
.text-highlight {
  color: var(--primary);
  font-weight: 500;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 0 15px var(--primary-glow);
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: var(--space-lg) var(--space-md);
  }
}

/* Distro Tabs */
.distro-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.tab-btn {
  background: #f1f5f9;
  /* Light gray pill */
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.tab-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Footer */
footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Contribution Widget */
.contribute-widget {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
  z-index: 100;
}

.contribute-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

@media (max-width: 600px) {
  .contribute-widget {
    top: 0.5rem;
    right: 0.5rem;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}