/* ViscoForge Motor Oils - Shared Stylesheet */

:root {
  --bg-deep: #0b0c0e;
  --bg-card: #14161a;
  --bg-elevated: #1c1f24;
  --border: #2a2e35;
  --text: #e6e8eb;
  --text-muted: #9aa0a8;
  --accent: #c9a227;
  --accent-dim: #a6851e;
  --accent-glow: rgba(201, 162, 39, 0.25);
  --oil-dark: #1a1208;
  --success: #3d8b6e;
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Fira Code", "Consolas", monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(26, 18, 8, 0.6), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e0b93a;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.site-header {
  background: rgba(11, 12, 14, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--bg-elevated);
  color: var(--accent);
}

/* Main */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0b0c0e;
}

.btn-primary:hover {
  background: #e0b93a;
  color: #0b0c0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(201, 162, 39, 0.04);
}

/* Lists */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Callout */
.callout {
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}

.callout strong {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* 404 page */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav ul {
    gap: 0.15rem;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 2rem 0.5rem 2.5rem;
  }
}
