/* ============================================================
   Slateworks.ai — Landing Page Styles
   Brand: #004494 (Slateworks Blue)
   Aesthetic: Dark industrial, precision, contractor-grade
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Brand */
  --color-primary: #004494;
  --color-primary-light: #2396ed;
  --color-primary-glow: rgba(0, 68, 148, 0.4);

  /* Surface */
  --color-bg: #080c14;
  --color-bg-subtle: #0d1220;
  --color-surface: rgba(255, 255, 255, 0.03);

  /* Text */
  --color-text: #dce1ea;
  --color-text-muted: #5d6a80;
  --color-text-faint: #3a4558;

  /* Typography */
  --font-display: 'Archivo Black', 'Impact', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- Background Atmosphere --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Subtle radial glow from top center */
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--color-primary-glow), transparent),
    /* Secondary ambient light */
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(0, 68, 148, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Noise texture overlay for asphalt-like grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* --- Header / Nav --- */
.site-header {
  position: relative;
  z-index: 10;
  padding: var(--space-md) var(--space-md);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.nav-brand:hover .nav-wordmark {
  color: var(--color-text);
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* "Coming Soon" badge */
.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  border: 1px solid rgba(35, 150, 237, 0.25);
  background: rgba(35, 150, 237, 0.06);
  padding: 0.4em 1.2em;
  border-radius: 100px;
  animation: badge-fade-in 1s ease-out both;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text);
  animation: title-reveal 0.8s ease-out 0.15s both;
}

/* Tagline */
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-weight: 400;
  animation: fade-up 0.7s ease-out 0.35s both;
}

/* Divider — precision blue line */
.hero-divider {
  width: 64px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  position: relative;
  animation: divider-draw 0.6s ease-out 0.55s both;
}

.hero-divider::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  background: var(--color-primary);
  filter: blur(12px);
  opacity: 0.4;
  border-radius: 2px;
}

/* Description */
.hero-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 520px;
  animation: fade-up 0.7s ease-out 0.65s both;
}

/* CTA / Contact link */
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.75em 2em;
  border: 1px solid var(--color-text-faint);
  border-radius: 6px;
  transition: all 0.25s ease;
  animation: fade-up 0.7s ease-out 0.8s both;
}

.hero-cta:hover {
  border-color: var(--color-primary);
  color: #fff;
  background: rgba(0, 68, 148, 0.12);
  box-shadow: 0 0 24px rgba(0, 68, 148, 0.15);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

/* --- Animations --- */
@keyframes badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes divider-draw {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 64px;
    opacity: 1;
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-content {
    gap: var(--space-sm);
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .hero-tagline br {
    display: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
