/* ============================================
   DETAILCRAFT PRO — main.css
   Base reset, CSS variables, typography
   ============================================ */

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

/* ---- DESIGN TOKENS ---- */
:root {
  /* Backgrounds */
  --bg-base:       #080808;
  --bg-surface:    #0f0f0f;
  --bg-raised:     #161616;
  --bg-hover:      #1c1c1c;

  /* Chrome / Silver palette */
  --chrome:        #c0c0c0;
  --chrome-bright: #e0e0e0;
  --chrome-dim:    #888888;

  /* Gold accent */
  --gold:          #c9a84c;
  --gold-dim:      #7a6030;

  /* Text */
  --text-primary:  #f0f0f0;
  --text-secondary:#a0a0a0;
  --text-muted:    #505050;

  /* Borders */
  --border-subtle: rgba(200, 200, 200, 0.06);
  --border-dim:    rgba(200, 200, 200, 0.12);
  --border-active: rgba(200, 200, 200, 0.30);

  /* Effects */
  --glow-chrome:   0 0 40px rgba(192, 192, 192, 0.12);
  --glow-gold:     0 0 40px rgba(201, 168, 76, 0.15);

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  60px;
  --space-xl:  120px;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --duration-fast:   0.2s;
  --duration-base:   0.35s;
  --duration-slow:   0.6s;

  /* Layout */
  --max-width:     1400px;
  --gutter:        60px;
  --radius-sm:     2px;
  --radius-md:     4px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ---- TYPOGRAPHY SYSTEM ---- */
.t-display {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 2px;
}

.t-display-xl { font-size: clamp(4.5rem, 10vw, 9.5rem); }
.t-display-lg { font-size: clamp(3rem,  6vw,  6rem);   }
.t-display-md { font-size: clamp(2rem,  4vw,  4rem);   }
.t-display-sm { font-size: 1.6rem; }

.t-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}

.t-serif-lg { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.t-serif-md { font-size: 1.1rem; }
.t-serif-sm { font-size: 0.95rem; }

.t-label {
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
}

.t-body-sm { font-size: 0.82rem; line-height: 1.7; }
.t-body-xs { font-size: 0.72rem; line-height: 1.6; }

/* ---- UTILITY CLASSES ---- */
.text-chrome       { color: var(--chrome); }
.text-chrome-bright{ color: var(--chrome-bright); }
.text-gold         { color: var(--gold); }
.text-muted        { color: var(--text-secondary); }
.text-dimmed       { color: var(--text-muted); }

.chrome-outline {
  -webkit-text-stroke: 1px var(--chrome);
  color: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad {
  padding: var(--space-xl) var(--gutter);
}

/* ---- SECTION LABEL ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 15px 38px;
  border: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth),
    background var(--duration-base) var(--ease-smooth),
    color var(--duration-base) var(--ease-smooth),
    border-color var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--chrome-bright) 0%, var(--chrome-dim) 100%);
  color: var(--bg-base);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(192, 192, 192, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--chrome);
  color: var(--chrome);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-base);
  font-weight: 500;
}
.btn-gold:hover {
  box-shadow: var(--glow-gold);
}

.btn-outline-chrome {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  width: 100%;
  padding: 13px;
  font-size: 0.7rem;
}
.btn-outline-chrome:hover {
  background: var(--chrome);
  color: var(--bg-base);
  border-color: var(--chrome);
}

/* ---- DIVIDER ---- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* ---- SCROLL REVEAL BASE ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--chrome-dim); }

/* ---- SELECTION ---- */
::selection {
  background: rgba(192, 192, 192, 0.2);
  color: var(--chrome-bright);
}
