/* ============================================================
   fbdo.cloud — Landing Page Styles
   Dark theme, Inter font, purple accent (#7c6af7)
   ============================================================ */

:root {
  --bg: #09090f;
  --surface: #111118;
  --surface-2: #18181f;
  --border: #1e1e30;
  --primary: #7c6af7;
  --primary-dark: #6650a4;
  --primary-light: #a89cf8;
  --text: #e8e8f0;
  --muted: #7878a0;
  --green: #4caf7d;
  --red: #f06070;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-icon { color: var(--primary); font-size: 20px; }
.logo-tld { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 106, 247, 0.15) 0%, transparent 70%);
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.highlight { color: var(--primary); }
.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-subtitle { color: var(--muted); font-size: 16px; margin-bottom: 48px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header .section-title { margin-bottom: 6px; }
.section-header .section-subtitle { margin-bottom: 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ── Products grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.product-icon { font-size: 36px; flex-shrink: 0; }
.product-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.product-tagline { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 10px; }
.product-description { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

/* ── Features section ── */
.features-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.features-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.features-text p { color: var(--muted); margin-bottom: 24px; line-height: 1.65; }
.feature-list { list-style: none; margin-bottom: 32px; }
.feature-list li { color: var(--muted); padding: 6px 0; font-size: 14px; }
.feature-list li::before { content: none; }

/* Mockup card */
.mockup-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mockup-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mockup-stat { display: flex; flex-direction: column; gap: 4px; }
.mockup-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mockup-value { font-size: 22px; font-weight: 700; }
.mockup-value.positive { color: var(--green); }
.mockup-bar-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mockup-bar {
  background: var(--primary);
  border-radius: 4px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
}
.mockup-bar.b2 { background: var(--primary-dark); }
.mockup-bar.b3 { background: #3d3460; }

/* ── Posts grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.post-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}
.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.post-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-card-meta time { font-size: 12px; color: var(--muted); }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(124, 106, 247, 0.15);
  color: var(--primary-light);
  position: relative;
  z-index: 2;
}
.post-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.post-card-title a { color: var(--text); text-decoration: none; position: relative; z-index: 2; }
.post-card-title a:hover { color: var(--primary-light); }
.post-card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.post-card-link { font-size: 13px; font-weight: 600; color: var(--primary); position: relative; z-index: 2; }
.post-card-link:hover { text-decoration: underline; }
.post-card-wide { grid-column: 1 / -1; max-width: 100%; }

/* ── CTA section ── */
.cta-section { background: var(--surface); border-top: 1px solid var(--border); }
.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}
.cta-box h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-box p { color: var(--muted); margin-bottom: 28px; font-size: 16px; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-subtitle { color: var(--muted); font-size: 16px; }

/* ── Blog layout ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.posts-main { display: flex; flex-direction: column; gap: 32px; }
.posts-list { display: flex; flex-direction: column; gap: 24px; }

/* ── News page controls ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.news-controls { display: flex; flex-direction: column; gap: 12px; }
.news-top-row { display: flex; align-items: center; gap: 12px; }
.news-search-wrap { position: relative; flex: 1; }
.news-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.news-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px 10px 40px;
  outline: none;
  transition: border-color 0.2s;
}
.news-search-input::placeholder { color: var(--muted); }
.news-search-input:focus { border-color: var(--primary); }
.news-sort {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.news-sort:focus { border-color: var(--primary); }
.news-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.news-tab:hover { border-color: var(--primary); color: var(--text); }
.news-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.news-empty { color: var(--muted); font-size: 14px; padding: 24px 0; }
.news-load-more-wrap { display: flex; justify-content: center; padding: 8px 0; }
.news-load-more { min-width: 220px; }
.hidden { display: none !important; }

/* Hero card */
.post-card-hero {
  flex-direction: row;
  overflow: hidden;
}
.post-hero-image {
  width: 52%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  align-self: stretch;
}
.post-hero-body {
  padding: 32px 36px;
  justify-content: center;
}
.post-hero-title { font-size: 22px; line-height: 1.25; }

/* Grid of remaining cards */
.posts-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Blog post article ── */
.post-article { padding: 64px 0; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.post-header { margin-bottom: 32px; }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; display: block; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.post-meta time { font-size: 13px; color: var(--muted); }
.post-title { font-size: clamp(24px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.post-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }

.post-content { line-height: 1.75; }
.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.post-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--primary-light); }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--primary-light); }
.post-content a:hover { text-decoration: underline; }
.post-content strong { color: var(--text); }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-content tr:last-child td { border-bottom: none; }

.post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ── Sidebar ── */
.post-sidebar, .blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.sidebar-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-product:last-child { border-bottom: none; }
.sidebar-product:hover { text-decoration: none; }
.sidebar-product:hover strong { color: var(--primary-light); }
.sidebar-product-icon { font-size: 22px; flex-shrink: 0; }
.sidebar-product strong { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.sidebar-product p { font-size: 12px; color: var(--muted); margin: 0; }
.sticky-ad { position: sticky; top: 84px; }

/* ── About page ── */
.content-narrow h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.content-narrow h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: var(--primary-light); }
.content-narrow p { margin-bottom: 16px; color: var(--muted); line-height: 1.7; }
.content-narrow ul { margin: 0 0 16px 24px; color: var(--muted); }
.content-narrow li { margin-bottom: 8px; }
.content-narrow a { color: var(--primary-light); }
.about-product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.about-product h3 { margin-top: 0; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; }

/* ── Ads ── */
.ad-container { margin: 32px 0; }
.ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-align: center; margin-bottom: 4px; }
.ad-banner { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ad-inline { padding: 16px 0; }
.ad-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand .logo-text { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.footer-tagline { font-size: 13px; color: var(--muted); margin: 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--primary-light); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 48px; }
  .hero-actions { flex-direction: column; }
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
  .post-card-hero { flex-direction: column; }
  .post-hero-image { width: 100%; aspect-ratio: 16 / 9; }
  .post-hero-body { padding: 20px 24px 24px; }
  .posts-grid-list { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .about-cta { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .post-article { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
}
