/* ==========================================================================
   FAULTY CLEAN - Core Design System & Styling Tokens
   Precision Automotive & Content Studio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #f7f6f2;
  --bg-card: #ffffff;
  --bg-card-alt: #f0eee8;
  --bg-dark: #101213;
  --bg-dark-card: #181a1c;
  
  --text-main: #141414;
  --text-muted: #575757;
  --text-light: #8a8a8a;
  --text-inverse: #f7f6f2;
  
  --accent-teal: #01696f;
  --accent-teal-hover: #015257;
  --accent-teal-soft: rgba(1, 105, 111, 0.08);
  --accent-teal-border: rgba(1, 105, 111, 0.2);
  
  --border-light: #e3e0d8;
  --border-strong: #c8c4b8;
  
  /* Precision Lines & Shapes */
  --line-geo: 1px solid var(--border-light);
  --line-accent: 2px solid var(--accent-teal);
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px -2px rgba(20, 20, 20, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(20, 20, 20, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(1, 105, 111, 0.12);
  
  /* Spacing */
  --site-max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.section {
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section-bordered {
  border-bottom: var(--line-geo);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Minimal Geometric Accents */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  background-color: var(--accent-teal-soft);
  border: 1px solid var(--accent-teal-border);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-teal);
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Geometric Divider Line */
.geo-line {
  height: 1px;
  background-color: var(--border-light);
  width: 100%;
  position: relative;
  margin: 2rem 0;
}

.geo-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-teal);
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: #ffffff;
  border-color: var(--accent-teal);
}

.btn-primary:hover {
  background-color: var(--accent-teal-hover);
  border-color: var(--accent-teal-hover);
  box-shadow: 0 6px 16px rgba(1, 105, 111, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--text-main);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #262626;
  transform: translateY(-1px);
}

/* Utility Animations & Helpers */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-teal { color: var(--accent-teal); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
