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

:root {
  --primary: #4b68af;
  --primary-light: #5a7bc4;
  --primary-dark: #3d5691;
  --accent: #6c5ce7;
  --text: #1d1d28;
  --text-secondary: #727272;
  --bg: #ffffff;
  --bg-gray: #f7f8fa;
  --border: #e5e7eb;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #3d5691 0%, #4b68af 40%, #6c5ce7 100%);
  color: white;
  padding: 100px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-command {
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.hero-command code {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  padding: 14px 52px 14px 24px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-copy {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.hero-copy:hover {
  background: rgba(255,255,255,0.25);
}

.hero-copy svg {
  width: 16px;
  height: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary-dark);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: white;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s, transform 0.15s;
}

.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Divider wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

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

/* Section */
section {
  padding: 72px 0;
}

section:nth-child(even) {
  background: var(--bg-gray);
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

section .section-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 24px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border-radius: 12px;
}

.feature h3 {
  margin-top: 0;
  font-size: 1rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.6;
}

/* Code */
pre {
  background: #1a1b2e;
  color: #cdd6f4;
  padding: 22px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.8;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
}

p code, td code {
  background: var(--bg-gray);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.875rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

tr + tr td {
  border-top: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

footer a {
  font-weight: 500;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 24px 80px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-command code {
    font-size: 0.85rem;
    padding: 12px 48px 12px 16px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  pre {
    font-size: 0.8rem;
  }
}
