/* Driver Labs — Shared Design System v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #ff6b35;
  --primary-glow: rgba(255, 107, 53, 0.4);
  --secondary: #a855f7;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --text-primary: #f1f1f1;
  --text-secondary: #9ca3af;
  --text-muted: #606060;
  --border: rgba(255, 255, 255, 0.08);
  --success: #22c55e;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 24px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px; font-weight: 600; font-size: 0.85rem; color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* HERO */
.article-hero {
  padding: 120px 24px 60px; text-align: center; position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,107,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.article-hero::after {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.article-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.3);
  color: var(--primary); border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}

.article-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; line-height: 1.15; }

.deck { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }

.article-meta { display: flex; justify-content: center; gap: 20px; font-size: 0.82rem; color: var(--text-muted); }
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* HERO IMAGE */
.article-hero-img { max-width: 900px; margin: 40px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.article-hero-img img { width: 100%; height: auto; display: block; }

/* CONTENT */
.article-container { max-width: 720px; margin: 0 auto; padding: 60px 24px; }
.article-content { font-size: 1rem; }
.article-content p { margin-bottom: 20px; color: var(--text-secondary); }
.article-content h2 { font-size: 1.5rem; margin: 48px 0 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-content h3 { font-size: 1.15rem; margin: 32px 0 14px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: var(--text-secondary); }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content blockquote {
  border-left: 3px solid var(--primary); padding: 16px 20px; margin: 24px 0;
  background: var(--bg-card); border-radius: 0 8px 8px 0;
}
.article-content blockquote p { margin-bottom: 0; color: var(--text-primary); }

/* HIGHLIGHT BOX */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(168,85,247,0.08));
  border: 1px solid rgba(255,107,53,0.2); border-radius: 12px;
  padding: 24px 28px; margin: 32px 0;
}
.highlight-box p { color: var(--text-primary); margin-bottom: 0; }

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.9rem; }
.comparison-table th {
  background: var(--bg-card); padding: 12px 16px; text-align: left;
  font-weight: 600; border-bottom: 2px solid var(--primary); color: var(--text-primary);
}
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.comparison-table tr:hover td { background: var(--bg-card); }

/* PRODUCT BOX */
.product-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin: 32px 0; display: flex; gap: 20px; align-items: center;
}
.product-box img { width: 120px; height: auto; border-radius: 8px; object-fit: cover; }
.product-box h4 { font-size: 1rem; margin-bottom: 6px; }
.product-box p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.product-box .price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.product-box .btn-buy {
  margin-left: auto; padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px; font-weight: 600; font-size: 0.85rem; color: white; white-space: nowrap;
}
.product-box .btn-buy:hover { color: white; opacity: 0.9; }

/* DISCLOSURE */
.disclosure {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px; font-size: 0.82rem;
  color: var(--text-muted); margin: 40px 0 24px;
}

/* FIGURE */
figure { margin: 32px 0; }
figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* TOOL SECTIONS */
.tool-container { max-width: 720px; margin: 0 auto; padding: 60px 24px; }
.tool-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 32px;
}
.tool-section h2 { font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* LEGAL */
.legal-container { max-width: 720px; margin: 0 auto; padding: 120px 24px 60px; }
.legal-container h1 { font-size: 2rem; margin-bottom: 12px; }
.legal-container h2 { font-size: 1.2rem; margin: 32px 0 14px; color: var(--text-primary); }
.legal-container p { color: var(--text-secondary); margin-bottom: 14px; }

/* RELATED */
.related { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
.related h2 { font-size: 1.4rem; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.related h2::before { content: ''; width: 3px; height: 24px; background: linear-gradient(180deg, var(--primary), var(--secondary)); border-radius: 2px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: all 0.2s; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(255,107,53,0.2); }
.related-card h3 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.related-card p { font-size: 0.82rem; color: var(--text-muted); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 48px 24px 32px; margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand-icon { width: 30px; height: 30px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-box { flex-direction: column; text-align: center; }
  .product-box .btn-buy { margin: 12px auto 0; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
