/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg-primary: #0b0b0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #00e5a0;
  --accent-dim: rgba(0,229,160,0.12);
  --accent-glow: rgba(0,229,160,0.25);
  --text-primary: #e8e8ec;
  --text-secondary: #9a9ab0;
  --text-muted: #5e5e76;
  --border: #222233;
  --border-accent: rgba(0,229,160,0.3);
  --radius: 6px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1120px;
  --gap: 2rem;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.6rem;
  color: var(--accent); text-decoration: none;
  letter-spacing: -0.03em;
  text-align: left;
}
.site-logo span { color: var(--text-muted); font-weight: 500; font-size: 0.65em; display: block; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
.site-nav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.25s;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-dim); }

/* ── HERO ── */
.hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(175deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.3rem 0.9rem; border-radius: 99px;
  border: 1px solid var(--border-accent);
  margin-bottom: 1.5rem; text-align: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 1.2rem 0 0;
  font-size: 0.82rem; color: var(--text-muted);
  font-family: var(--font-mono);
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; text-align: left; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.4rem; }

/* ── ARTICLE ── */
.article-header { padding: 2.5rem 0 1.5rem; }
.article-meta {
  display: flex; gap: 1.2rem; align-items: center;
  font-size: 0.82rem; color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem; flex-wrap: wrap;
}
.article-meta .tag {
  background: var(--accent-dim); color: var(--accent);
  padding: 0.2rem 0.7rem; border-radius: 99px;
  border: 1px solid var(--border-accent);
  font-size: 0.75rem;
}
.article-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.02em;
}

.article-body {
  padding: 1rem 0 3rem;
  max-width: 780px;
}
.article-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; margin: 2rem 0 0.8rem;
  color: var(--accent);
}
.article-body p { margin-bottom: 1.2rem; color: var(--text-secondary); }
.article-body strong { color: var(--text-primary); }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body li::marker { color: var(--accent); }

.article-body .tip-box {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.article-body .tip-box strong { color: var(--accent); }

.article-body img {
  width: 100%; border-radius: var(--radius);
  margin: 1.5rem 0; border: 1px solid var(--border);
}

/* ── CARDS GRID ── */
.cards-section { padding: 3rem 0; }
.cards-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; margin-bottom: 1.5rem;
  padding-left: 1rem; border-left: 3px solid var(--accent);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
  text-align: left;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,229,160,0.08);
}
.card .card-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; color: var(--text-primary);
  margin-bottom: 0.6rem; line-height: 1.4;
}
.card p {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.6;
}
.card .card-footer {
  margin-top: 1rem; font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--text-muted);
}

/* ── FAQ ── */
.faq-section { padding: 3rem 0; }
.faq-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; margin-bottom: 1.5rem;
  padding-left: 1rem; border-left: 3px solid var(--accent);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-q {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; color: var(--text-primary);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq-q::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 0.8rem; }

/* ── SUBSCRIBE ── */
.subscribe-section {
  padding: 3rem 0;
}
.subscribe-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.subscribe-box::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.1;
}
.subscribe-box h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; margin-bottom: 0.5rem;
}
.subscribe-box p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.subscribe-form {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.subscribe-form input[type="email"]::placeholder { color: var(--text-muted); }
.btn-accent {
  background: var(--accent); color: var(--bg-primary);
  border: none; border-radius: var(--radius);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-accent:hover {
  background: #00ffa8;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand .site-logo { font-size: 1.3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  width: 100%; font-size: 0.78rem;
  color: var(--text-muted); line-height: 1.6;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.footer-copy {
  width: 100%; font-size: 0.75rem;
  color: var(--text-muted); margin-top: 0.8rem;
  font-family: var(--font-mono);
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 380px; z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.5rem; }
.cookie-modal p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.5; }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie-btns button {
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; cursor: pointer; border: none;
  transition: all 0.2s;
}
.cookie-accept { background: var(--accent); color: var(--bg-primary); }
.cookie-accept:hover { background: #00ffa8; }
.cookie-decline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border) !important; }
.cookie-decline:hover { border-color: var(--text-secondary) !important; color: var(--text-primary); }

/* ── POLICY PAGES ── */
.policy-page { padding: 3rem 0; max-width: 780px; margin: 0 auto; }
.policy-page h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--accent);
}
.policy-page h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; margin: 2rem 0 0.8rem;
  color: var(--accent);
}
.policy-page p {
  color: var(--text-secondary); margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ── SUCCESS ── */
.success-page {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem;
}
.success-page .check-icon {
  width: 80px; height: 80px;
  border-radius: 50%; background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem; font-size: 2.5rem; color: var(--accent);
}
.success-page h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.5rem; margin-bottom: 1rem;
}
.success-page p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── 404 ── */
.page-404 {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem;
}
.page-404 .glitch-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--accent); line-height: 1;
  position: relative;
  text-shadow: 3px 3px 0 var(--bg-card), -2px -2px 0 #7c3aed;
  animation: glitchAnim 3s infinite;
}
@keyframes glitchAnim {
  0%, 90%, 100% { text-shadow: 3px 3px 0 var(--bg-card), -2px -2px 0 #7c3aed; }
  92% { text-shadow: -3px 2px 0 #ff0055, 3px -2px 0 #7c3aed; }
  94% { text-shadow: 3px -3px 0 var(--bg-card), -3px 3px 0 #00e5a0; }
  96% { text-shadow: -2px -3px 0 #ff0055, 2px 2px 0 #7c3aed; }
}
.page-404 h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; margin: 1rem 0;
}
.page-404 p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .site-header .container { flex-direction: column; gap: 0.8rem; }
  .subscribe-box { padding: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
