:root {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;

  --bg-color: #faf9fd;
  --card-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #eaeaea;
  --error: #ff4757;
  --nav-bg: rgba(250, 249, 253, 0.8);
  --step-bg: #f0eaff;
  --blob-color: rgba(139, 92, 246, 0.18);
  --step-number: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] {
  --bg-color: #121115;
  --card-bg: #1a191f;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --border-color: #2c2b33;
  --nav-bg: rgba(18, 17, 21, 0.8);
  --step-bg: #2d2442;
  --blob-color: rgba(139, 92, 246, 0.12);
  --step-number: rgba(139, 92, 246, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.background-blob {
  position: fixed;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blob-color) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.3s ease;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 30px;
  object-fit: contain;
  transition: filter 0.3s;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-highlight {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

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

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.icon-btn:hover {
  background-color: var(--border-color);
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  z-index: 1;
  position: relative;
}

.section {
  margin-bottom: 80px;
  padding-top: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.5;
}

.card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.generator-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step-card {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.step-number {
  font-size: 60px;
  font-weight: 800;
  color: var(--step-number);
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 0;
  transition: color 0.3s;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.tags-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: var(--step-bg);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.2s;
}

.tag:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.consent-box {
  text-align: left;
  background: var(--step-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 24px;
  transition: background-color 0.3s;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  min-width: 20px;
  height: 20px;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.consent-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  width: 100%;
  background-color: var(--text-main);
  color: var(--bg-color);
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  width: 100%;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
}

.btn-secondary:hover {
  background-color: var(--step-bg);
  color: var(--primary);
  border-color: rgba(139, 92, 246, 0.3);
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--step-bg);
  padding: 16px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.code-display code {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-hover);
  letter-spacing: 2px;
}

.hidden {
  display: none !important;
}

.error-text {
  color: var(--error);
  font-size: 14px;
  margin-top: 12px;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

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

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

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 30px 20px;
  }
}
