*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --primary: #1b6bff;
  --primary-hover: #1557d9;
  --text: #1f2430;
  --text-muted: #5d667a;
  --code-bg: #f0f4ff;
  --border: #e2e6f0;
  --radius: 12px;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Privacy page tweaks */
.privacy-page {
  line-height: 1.7;
}

.privacy-page .header-inner {
  max-width: 800px;
}

.privacy-page .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* Privacy content */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 48px;
}

.content h2 {
  font-size: 20px;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.content p {
  margin: 0 0 16px;
  color: var(--text);
}

.content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
}

.content strong {
  color: var(--text);
}

/* Hero */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin: 0 0 48px;
}

.hero-examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 48px;
  text-align: left;
}

.hero-example {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
}

.hero-example code {
  flex-shrink: 0;
  min-width: 140px;
}

.hero-example .arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-example .result {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta .note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 32px;
  text-align: center;
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--code-bg);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Examples */
.examples-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.example-row:last-child {
  border-bottom: none;
}

.example-row code {
  min-width: 180px;
}

.example-row .arrow {
  color: var(--text-muted);
  margin: 0 24px;
}

.example-row .result {
  color: var(--text-muted);
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Screenshot */
.screenshot-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.screenshot-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 80px 24px;
}

.final-cta h2 {
  font-size: 32px;
  margin: 0 0 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

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

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

  .example-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .example-row .arrow {
    margin: 0;
  }

  .hero-example {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
