:root {
  --bg: #fafaf9;
  --bg-dark: #1c1917;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-secondary: #78716c;
  --text-on-dark: #d6d3d1;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: #fef3c7;
  --border: #e7e5e4;
  --font: "DM Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a:hover {
  color: var(--text);
}
.nav-links a.btn-primary {
  color: #fff;
}
.nav-links a.btn-primary:hover {
  color: #fff;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

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

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #292524;
}

/* --- HERO --- */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

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

/* --- WIDGET DEMO --- */
.demo-section {
  padding: 40px 24px 100px;
  max-width: 520px;
  margin: 0 auto;
}

.demo-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(28, 25, 23, 0.06),
    0 1px 3px rgba(28, 25, 23, 0.04);
}

.demo-widget h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.demo-widget p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.demo-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.demo-amount-btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: default;
  transition: all 0.15s;
}

.demo-amount-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.demo-custom {
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  cursor: default;
}

.demo-label {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* --- FEATURES --- */
.features {
  padding: 100px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.features-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

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

/* --- HOW IT WORKS --- */
.how {
  padding: 100px 24px;
  background: var(--bg-dark);
  color: #fff;
}

.how-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.how-header p {
  font-size: 16px;
  color: var(--text-on-dark);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.how-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-on-dark);
  line-height: 1.55;
}

/* --- SNIPPET PREVIEW --- */
.snippet-section {
  padding: 100px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.snippet-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.snippet-section > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.snippet-box {
  background: var(--bg-dark);
  color: #a8a29e;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 24px 28px;
  border-radius: 12px;
  text-align: left;
  overflow-x: auto;
}

.snippet-box .tag {
  color: #fbbf24;
}
.snippet-box .attr {
  color: #d6d3d1;
}
.snippet-box .val {
  color: #86efac;
}

/* --- PRICING --- */
.pricing {
  padding: 100px 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.pricing h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.pricing > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px 32px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 4px 0 4px;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check {
  width: 18px;
  height: 18px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 3;
}

/* --- CTA --- */
.cta {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
}

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  color: var(--text-on-dark);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .features-grid,
  .how-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 120px 24px 60px;
  }
  .demo-amounts {
    flex-wrap: wrap;
  }
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: fadeUp 0.5s ease both;
}
.hero h1 {
  animation: fadeUp 0.5s ease 0.1s both;
}
.hero p {
  animation: fadeUp 0.5s ease 0.2s both;
}
.hero-buttons {
  animation: fadeUp 0.5s ease 0.3s both;
}
.demo-widget {
  animation: fadeUp 0.6s ease 0.5s both;
}
