/* =============================================================
   Quik Eco — Shared Stylesheet
   Applies to all pages. Page-specific styles live in each HTML.
   ============================================================= */

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

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --ink: #0f0f0f;
  --ink-soft: #6b6b6b;
  --ink-faint: #b8b8b8;
  --paper: #ffffff;
  --surface: #f8f6fd;
  --accent: #730BDA;
  --accent-hover: #5c09ae;
  --accent-light: #f2e8fd;
  --border: #e8e5f0;
  --border-dark: #cdc5e0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-name { font-size: 0.9rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.logo-mark { width: 24px; height: 24px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--ink-soft); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--surface); color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-nav {
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 0.5rem 1.125rem;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-nav:hover { background: var(--surface); }
.btn-nav-fill { background: var(--accent); color: white; border-color: var(--accent); }
.btn-nav-fill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  text-decoration: none;
}
.btn-text:hover { color: var(--ink); }


/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-size: 0.875rem; font-weight: 500; color: white; display: flex; align-items: center; gap: 8px; }
.footer-logo-mark { width: 20px; height: 20px; background: var(--accent); border-radius: 5px; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ── Dark mode ──────────────────────────────────────────────── */
body.dark {
  --ink: #ede8ff;
  --ink-soft: #8b85a8;
  --ink-faint: #4a4465;
  --paper: #09080f;
  --surface: #100e1a;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-light: #1a1028;
  --border: #1e1830;
  --border-dark: #2e2548;
}
body.dark nav { background: rgba(9,8,15,0.88); }
body.dark footer { background: #07060d; border-top: 1px solid var(--border); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
}
