/* CrossFeed — Landing Page Styles */

:root {
  --cf-blue: #0ea5e9;
  --cf-blue-glow: rgba(14, 165, 233, 0.15);
  --cf-orange: #f97316;
  --cf-bg: #0f172a;
  --cf-bg-card: #1e293b;
  --cf-bg-surface: #0f172a;
  --cf-border: #1e293b;
  --cf-text: #e2e8f0;
  --cf-text-muted: #94a3b8;
  --cf-text-dim: #64748b;
  --cf-radius: 12px;
  --cf-font: 'Inter', system-ui, -apple-system, sans-serif;
  --cf-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--cf-font);
  background: var(--cf-bg);
  color: var(--cf-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cf-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Nav --- */
.cf-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cf-border);
}

.cf-logo {
  font-size: 20px; font-weight: 700; color: var(--cf-text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.cf-logo span { color: var(--cf-blue); }

.cf-nav-links { display: flex; align-items: center; gap: 24px; }
.cf-nav-links a { color: var(--cf-text-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.cf-nav-links a:hover { color: var(--cf-text); }

.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: var(--cf-font);
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s;
}
.cf-btn-primary {
  background: var(--cf-blue); color: #fff;
}
.cf-btn-primary:hover {
  background: #38bdf8; text-decoration: none;
  box-shadow: 0 0 24px var(--cf-blue-glow);
}
.cf-btn-ghost {
  background: transparent; color: var(--cf-text-muted);
  border: 1px solid var(--cf-border);
}
.cf-btn-ghost:hover {
  background: var(--cf-bg-card); color: var(--cf-text); text-decoration: none;
}

/* --- Hero --- */
.cf-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 64px;
  text-align: center;
}

.cf-hero-badge {
  display: inline-block;
  padding: 4px 14px; border-radius: 999px;
  background: var(--cf-blue-glow);
  color: var(--cf-blue); font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.cf-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cf-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cf-blue), var(--cf-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cf-hero p {
  font-size: 18px; color: var(--cf-text-muted);
  max-width: 560px; margin: 0 auto 32px;
}

.cf-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cf-hero-demo {
  margin-top: 64px;
  padding: 24px;
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  border: 1px solid var(--cf-border);
}
.cf-hero-demo-label {
  font-size: 13px; color: var(--cf-text-dim);
  text-align: left; margin-bottom: 12px;
}

/* --- Section --- */
.cf-section {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px;
}

.cf-section-label {
  font-size: 13px; font-weight: 600; color: var(--cf-blue);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.cf-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cf-section > p {
  color: var(--cf-text-muted); font-size: 16px;
  max-width: 560px; margin-bottom: 48px;
}

/* --- How It Works --- */
.cf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.cf-step {
  padding: 32px 24px;
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  border: 1px solid var(--cf-border);
  text-align: center;
}

.cf-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cf-blue-glow); color: var(--cf-blue);
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.cf-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cf-step p { color: var(--cf-text-muted); font-size: 14px; }

/* --- Layout Showcase --- */
.cf-layout-tabs {
  display: flex; gap: 4px;
  background: var(--cf-bg-card);
  border-radius: 8px; padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
  border: 1px solid var(--cf-border);
}

.cf-layout-tab {
  padding: 8px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  background: transparent; color: var(--cf-text-muted);
  font-family: var(--cf-font);
  transition: all 0.2s;
}
.cf-layout-tab.active {
  background: var(--cf-blue); color: #fff;
}
.cf-layout-tab:hover:not(.active) {
  color: var(--cf-text);
}

.cf-layout-preview {
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  border: 1px solid var(--cf-border);
  padding: 24px;
  min-height: 400px;
}

/* --- Pricing --- */
.cf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cf-price-card {
  padding: 32px 24px;
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  border: 1px solid var(--cf-border);
  display: flex; flex-direction: column;
}
.cf-price-card.popular {
  border-color: var(--cf-blue);
  box-shadow: 0 0 32px var(--cf-blue-glow);
  position: relative;
}
.cf-price-card.popular::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cf-blue); color: #fff;
  padding: 2px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

.cf-price-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cf-price-amount {
  font-size: 40px; font-weight: 800; margin-bottom: 4px;
}
.cf-price-amount span { font-size: 16px; font-weight: 400; color: var(--cf-text-muted); }
.cf-price-desc { color: var(--cf-text-muted); font-size: 14px; margin-bottom: 24px; }

.cf-price-features {
  list-style: none; flex: 1; margin-bottom: 24px;
}
.cf-price-features li {
  padding: 6px 0; font-size: 14px; color: var(--cf-text-muted);
  display: flex; align-items: center; gap: 8px;
}
.cf-price-features li::before {
  content: '\2713'; color: var(--cf-blue); font-weight: 700; font-size: 14px;
}

/* --- Code Example --- */
.cf-code-block {
  background: #0c1222;
  border-radius: var(--cf-radius);
  border: 1px solid var(--cf-border);
  overflow: hidden;
}

.cf-code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--cf-bg-card);
  border-bottom: 1px solid var(--cf-border);
  font-size: 13px; color: var(--cf-text-dim);
}

.cf-code-header button {
  padding: 4px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--cf-border);
  background: transparent; color: var(--cf-text-muted);
  font-family: var(--cf-font);
}
.cf-code-header button:hover { background: var(--cf-bg-card); color: var(--cf-text); }

.cf-code-body {
  padding: 16px;
  font-family: var(--cf-mono);
  font-size: 13px; line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre;
}

.cf-code-body .cf-keyword { color: #c084fc; }
.cf-code-body .cf-string { color: #86efac; }
.cf-code-body .cf-comment { color: #475569; }
.cf-code-body .cf-key { color: #7dd3fc; }
.cf-code-body .cf-number { color: #fbbf24; }

/* --- Footer --- */
.cf-footer {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px;
  border-top: 1px solid var(--cf-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--cf-text-dim);
}
.cf-footer-links { display: flex; gap: 20px; }
.cf-footer-links a { color: var(--cf-text-dim); }
.cf-footer-links a:hover { color: var(--cf-text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .cf-nav { padding: 12px 16px; }
  .cf-nav-links a:not(.cf-btn) { display: none; }
  .cf-hero { padding: 48px 16px 40px; }
  .cf-section { padding: 48px 16px; }
  .cf-layout-tabs { overflow-x: auto; width: 100%; }
  .cf-footer { flex-direction: column; gap: 16px; text-align: center; }
}
