:root {
  --bg-dark: #0C0B0A;
  --bg-card: #1A1815;
  --bg-hover: #2A2520;
  --text-primary: #F0EDE8;
  --text-secondary: #A99F98;
  --accent: #CF7D5C;
  --accent-dark: #B8653D;
  --border: #332E2A;
  --success: #5FC18C;
  --error: #E85D75;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #FF9B7D 100%);
  border-radius: 4px;
}

nav .links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease-out;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-out;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #B8D4FE;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 150ms ease-out;
  min-height: 36px;
}

.copy-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.copy-btn.copied {
  background: var(--success);
  color: var(--bg-dark);
}

.features {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 150ms ease-out;
}

.card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.usage {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.usage-item {
  margin-bottom: 2rem;
}

.usage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.safety {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(207, 125, 92, 0.1) 0%, rgba(207, 125, 92, 0.05) 100%);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.safety h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.safety-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.safety-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-secondary);
}

.safety-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.85em;
  color: var(--accent);
}

footer {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

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

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: var(--bg-dark);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  animation: slideUp 300ms ease-out;
  z-index: 1000;
}

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

@media (max-width: 768px) {
  nav .links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .code-block {
    padding: 1rem;
    font-size: 0.8rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #F8F7F5;
    --bg-card: #FFFFFF;
    --bg-hover: #F0EDE8;
    --text-primary: #1A1815;
    --text-secondary: #5A5550;
    --border: #E8E3DE;
  }

  body {
    background: var(--bg-dark);
  }

  header {
    background: rgba(248, 247, 245, 0.95);
  }

  .code-block {
    background: var(--bg-card);
    border-color: var(--border);
  }

  .code-block code {
    color: #005A87;
  }
}
