/* ── Reset & Custom Properties ── */

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #f5f5f5;
  --primary: #f97316;
  --primary-foreground: #0a0a0a;
  --muted: #161616;
  --muted-foreground: #a3a3a3;
  --border: #262626;
  --destructive: #f87171;
  --success: #34d399;
  --radius: 0.625rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ── */

.container-sm {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-md {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-lg {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Components ── */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  overflow: hidden;
}

.card-header {
  padding: 24px 24px 0;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.card-content {
  padding: 16px 24px 24px;
}

.card-destructive {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.card-destructive .card-title {
  color: var(--destructive);
}

.card-success {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.card-success .card-title {
  color: var(--success);
}

/* ── Icon helpers ── */

.icon {
  flex-shrink: 0;
}

.icon-destructive {
  color: var(--destructive);
}

.icon-success {
  color: var(--success);
}

.icon-primary {
  color: var(--primary);
}

/* ── Sections ── */

/* Header */
.header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-logo {
  font-size: 1.125rem;
  font-weight: 700;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.header-link:hover {
  color: var(--foreground);
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero .badge {
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero-sub-cta {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Before / After */
.before-after {
  padding: 64px 0;
}

.before-after h2 {
  text-align: center;
  margin-bottom: 40px;
}

.before-after-grid {
  display: grid;
  gap: 24px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.point + .point {
  margin-top: 12px;
}

.point svg {
  margin-top: 2px;
}

.point p {
  font-size: 0.875rem;
}

/* Features */
.features {
  padding: 48px 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  gap: 32px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature svg {
  margin-top: 2px;
}

.feature-title {
  font-weight: 500;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* How it works */
.steps {
  padding: 80px 0;
}

.steps h2 {
  text-align: center;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  gap: 32px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(249, 115, 22, 0.15);
}

.step-icon svg {
  color: var(--primary);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Comparison */
.comparison {
  padding: 64px 0;
}

.comparison h2 {
  text-align: center;
  margin-bottom: 40px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison th,
.comparison td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison thead th {
  font-weight: 600;
  background: var(--muted);
}

.comparison tr:last-child td {
  border-bottom: none;
}

.comparison .col-sellsync {
  background: rgba(249, 115, 22, 0.08);
}

.comparison thead .col-sellsync {
  background: rgba(249, 115, 22, 0.16);
  font-weight: 700;
}

.table-check {
  color: var(--success);
}

.table-x {
  color: var(--muted-foreground);
}

/* Final CTA */
.final-cta {
  padding: 64px 0;
  text-align: center;
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* Legal pages */
.legal {
  padding: 48px 16px 64px;
}

.legal-article {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--foreground);
}

.legal-article h1 {
  font-size: 1.875rem;
  margin-bottom: 8px;
}

.legal-article h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.legal-article p {
  margin: 0 0 12px;
}

.legal-article ul {
  margin: 0 0 16px 24px;
  padding: 0;
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article a:hover {
  opacity: 0.8;
}

.legal-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0 24px;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 24px !important;
}

.legal-article strong {
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.15s;
}

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

/* ── Animations ── */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(249, 115, 22, 0.15); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Responsive ── */

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }

  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .pulse-glow {
    animation: none;
  }
}
