/* ===== DESIGN TOKENS (shadcn-inspired) ===== */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --border: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.75rem;
}

/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

/* ===== LAYOUT ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; border-bottom: 1px solid hsl(var(--border)); }
.section:last-child { border-bottom: none; }

/* ===== CARD ===== */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.card-highlight { border-left: 3px solid hsl(var(--foreground)); }
.card-gradient {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.badge-primary { background: hsl(var(--foreground)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.badge-success { background: hsl(142 76% 36%); color: white; border-color: transparent; }
.badge-warning { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.badge-violet { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 640px;
  line-height: 1.7;
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-logo-img {
  height: 36px;
  object-fit: contain;
}

.hero-logo-divider {
  font-size: 1.25rem;
  opacity: 0.4;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 1.75rem;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.toc-list a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
}

.toc-list a:hover { background: hsl(var(--background)); }

.toc-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.375rem;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 2rem; }

.section-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

/* ===== STAT CARD ===== */
.stat-card { text-align: center; padding: 1.5rem; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: hsl(var(--foreground)); }
.stat-label { font-size: 0.8rem; color: hsl(var(--muted-foreground)); margin-top: 0.15rem; }

/* ===== FLOW / ARCHITECTURE ===== */
.flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.flow-box {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  min-width: 110px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

/* ===== CHECK LIST ===== */
.check-list { list-style: none; padding: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ===== TABLE ===== */
.table-container {
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

table { width: 100%; border-collapse: collapse; }
thead { background: hsl(var(--muted)); }

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-top: 1px solid hsl(var(--border));
}

tr:hover { background: hsl(var(--muted) / 0.5); }

.price-highlight { font-weight: 700; color: hsl(var(--foreground)); }

/* ===== PRICING ===== */
.pricing-card {
  border: 2px solid hsl(var(--foreground));
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-header {
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  padding: 2rem;
  text-align: center;
}

.pricing-amount { font-size: 2.25rem; font-weight: 800; }
.pricing-period { font-size: 0.9rem; opacity: 0.7; }
.pricing-body { padding: 1.5rem; }

/* ===== STRIKETHROUGH PRICING ===== */
.price-original {
  text-decoration: line-through;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  display: block;
}

.price-discount {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 0.95rem;
}

.savings-badge {
  display: inline-block;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
}

.total-original {
  text-decoration: line-through;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  display: block;
}

.total-discount {
  font-size: 1.2rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 1.75rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: hsl(var(--border));
}

.timeline-item { position: relative; padding-bottom: 1.75rem; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: hsl(var(--foreground));
}

.timeline-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.timeline-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ===== CALLOUT ===== */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.callout-info { background: hsl(var(--muted)); }
.callout-warning { background: hsl(var(--muted)); }
.callout-success { background: hsl(var(--muted)); }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ===== COMPARISON TABLE ===== */
.comparison-table td:nth-child(3) { color: hsl(var(--muted-foreground)); }
.comparison-table td:nth-child(4) { color: hsl(var(--foreground)); font-weight: 500; }

/* ===== ICON CARD ===== */
.icon-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
}

.icon-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.icon-card-content h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.icon-card-content p { font-size: 0.8rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* ===== ALERT BOX ===== */
.alert-box {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  background: hsl(var(--muted));
  border-left: 3px solid hsl(var(--foreground));
  color: hsl(var(--foreground));
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(135deg, hsl(240 5.9% 10%), hsl(240 3.8% 46.1%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FOOTER ===== */
.footer {
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  padding: 2.5rem 0;
  text-align: center;
}

.footer p { opacity: 0.6; font-size: 0.85rem; }

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  opacity: 1;
}

.footer-logo-img {
  height: 28px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .toc-list {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .flow-container { flex-direction: column; }
  .hero-meta { flex-direction: column; gap: 0.5rem; }
  .hero-logos { gap: 0.75rem; }
  .hero-logo-img { height: 28px; }
}

@media print {
  .hero { padding: 2rem 0; }
  .card:hover { box-shadow: none; }
  .section { page-break-inside: avoid; }
}
