/* =============================================
   studio-obsidian.com — Custom CSS
   Brand: Obsidian dark theme, purple #A88BFA
   ============================================= */

:root {
  --accent:     #A88BFA;
  --accent-hover: #c4b0fd;
  --bg:         #1a1a1a;
  --bg-card:    #242424;
  --bg-card2:   #2d2d2d;
  --border:     rgba(255,255,255,0.08);
  --text:       #e5e5e5;
  --muted:      #a0a0a0;
  --header-bg:  #111111;
  --footer-bg:  #0f0f0f;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --max-w:      1100px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- TL;DR ---- */
.tldr {
  background: linear-gradient(90deg, #2a1f5e 0%, #1e1a3a 100%);
  border-bottom: 1px solid var(--accent);
  padding: 12px 0;
  font-size: 14px;
  text-align: center;
  color: var(--accent-hover);
}
.tldr strong { color: #fff; margin-right: 6px; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }
.logo img { width: 28px; height: 28px; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- BREADCRUMB ---- */
.breadcrumb-nav {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
}
.breadcrumb { display: flex; gap: 4px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); color: #111; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--accent); color: #111; }

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---- HERO ---- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- SECTION TITLES ---- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); margin-bottom: 36px; }
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border); }

/* ---- DOWNLOAD TABLE ---- */
.dl-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-table th {
  background: var(--bg-card2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 16px;
  text-align: left;
}
.dl-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  background: var(--bg-card);
}
.dl-table tr:last-child td { border-bottom: none; }
.dl-table tr:hover td { background: var(--bg-card2); }
.dl-table .badge {
  display: inline-block;
  background: rgba(168,139,250,0.15);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

/* ---- DOWNLOAD CARD ---- */
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.dl-card h2 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.dl-card p { color: var(--muted); margin-bottom: 24px; }
.dl-card .version-badge {
  display: inline-block;
  background: rgba(168,139,250,0.12);
  color: var(--accent);
  border: 1px solid rgba(168,139,250,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---- FEATURE CARDS ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(168,139,250,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- IMAGE GRIDS ---- */
.img-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.img-grid-2 img, .img-grid-3 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---- HOW IT WORKS ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  border: 1px solid var(--border);
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---- COMPARE TABLE ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.compare-table th {
  background: var(--bg-card2);
  color: var(--accent);
  padding: 12px 16px;
  text-align: left;
}
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: #44cf6e; font-size: 16px; }
.compare-table .cross { color: #fb464c; font-size: 16px; }
.compare-table .highlight td { background: rgba(168,139,250,0.07); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---- USE CASES ---- */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.usecase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.usecase-item img { width: 100%; height: 160px; object-fit: cover; }
.usecase-body { padding: 16px; }
.usecase-body h3 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.usecase-body p { font-size: 13px; color: var(--muted); }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, #1e1a3a 0%, #2a1f5e 50%, #1e1a3a 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(168,139,250,0.2);
  margin: 0 20px;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- INTRO 2COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; }
.two-col h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.two-col p { color: var(--muted); margin-bottom: 16px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-col strong { display: block; color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.disclaimer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.disclaimer a { color: var(--muted); text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0; right: 0; bottom: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    z-index: 99;
  }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open a { font-size: 18px; padding: 12px 16px; }
  .hamburger { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .img-grid-2, .img-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 20px; }
  .hero { padding: 48px 0 36px; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ---- TL;DR strip (moved from inline) ---- */
.tldr-strip {
  background: linear-gradient(90deg, #1e1645 0%, #15103a 100%);
  border-bottom: 1px solid #A88BFA;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  color: #c4b0fd;
}
.version-note {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}
