/* ============================================================
   AutoKomis — Global Design System
   Industrial Corporate Automotive / Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --color-bg: #0c0c1a;
  --color-surface: #14142a;
  --color-surface-2: #1e1e38;
  --color-surface-hover: #252545;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-accent-glow: rgba(37, 99, 235, 0.15);
  --color-accent-dim: rgba(37, 99, 235, 0.08);
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-accent: rgba(37, 99, 235, 0.3);
  --color-chrome: #cbd5e1;

  --font-heading: 'Barlow Condensed', 'Oswald', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 70px;
  --section-padding: clamp(64px, 10vw, 120px);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 0 40px rgba(37, 99, 235, 0.25);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.6);

  --container-max: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.section-alt {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header.centered {
  text-align: center;
}

.section-header .label {
  display: block;
  margin-bottom: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 14px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--color-accent);
}

.btn-ghost:hover {
  color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  gap: 12px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px 0 0;
  border-radius: 2px;
}

.divider.centered {
  margin: 16px auto 0;
}

/* ── Reveal animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
