/**
 * LSZ Platform - Blueprint Noir Theme
 * Exclusive dark duotone design system
 * Construction meets premium luxury
 */

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;500;600;700;800&family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Core Duotone Palette */
  --color-copper-light: #D4A574;
  --color-copper: #B8956A;
  --color-copper-dark: #8B6914;
  --color-gold-accent: #F4C542;

  /* Dark Slate Spectrum */
  --color-slate-deepest: #0F1419;
  --color-slate-darker: #151B22;
  --color-slate-dark: #1A1F26;
  --color-slate: #2A3441;
  --color-slate-light: #3D4A5C;
  --color-slate-lighter: #54657D;

  /* Accent & Highlight */
  --color-accent-glow: rgba(212, 165, 116, 0.15);
  --color-blueprint-blue: rgba(37, 99, 235, 0.12);

  /* Typography */
  --font-display: 'Saira Condensed', sans-serif;
  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing & Rhythm */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Transitions */
  --transition-quick: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(212, 165, 116, 0.25);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Semantic aliases for pricing components */
  --accent-copper: var(--color-copper-light);
  --accent-copper-dim: #8a6b4b;
  --accent-copper-glow: var(--color-accent-glow);

  /* Background semantic names */
  --bg-depth: var(--color-slate-deepest);
  --bg-card: var(--color-slate-dark);
  --bg-surface: var(--color-slate-darker);
  --bg-input: #0f1216;

  /* Text semantic names */
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Border semantic names */
  --border-tech: rgba(212, 165, 116, 0.2);

  /* Grid lines */
  --grid-line: rgba(212, 165, 116, 0.05);
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-slate-deepest);
  color: #E5E7EB;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip; /* Use clip instead of hidden to allow sticky positioning */
}

/* Blueprint grid background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(212, 165, 116, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 116, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
  color: #D1D5DB;
}

a {
  color: var(--color-copper-light);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-base);
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
  padding-bottom: 2px;
}

a:hover {
  color: var(--color-gold-accent);
  border-bottom-color: var(--color-gold-accent);
  text-shadow: 0 0 8px rgba(244, 197, 66, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.5);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes diagonal-line {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Animation utility classes */
.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
  animation-fill-mode: both;
}

.animate-fade-in {
  animation: fadeIn var(--transition-base) ease-out;
  animation-fill-mode: both;
}

.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

/* ===== UTILITY CLASSES ===== */
.diagonal-accent {
  position: relative;
  overflow: hidden;
}

.diagonal-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-copper-light), var(--color-gold-accent));
  transform: skewX(-45deg);
  transform-origin: top left;
}

.copper-glow {
  box-shadow: 0 0 24px rgba(212, 165, 116, 0.25);
}

.copper-gradient {
  background: linear-gradient(135deg, var(--color-copper-dark) 0%, var(--color-copper-light) 100%);
}

.slate-gradient {
  background: linear-gradient(135deg, var(--color-slate-darker) 0%, var(--color-slate) 100%);
}

.blueprint-bg {
  background-color: var(--color-slate-dark);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.metal-texture {
  position: relative;
}

.metal-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* Glass morphism effect */
.glass-effect {
  background: rgba(26, 31, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 165, 116, 0.1);
}

/* Visibility utilities */
.hidden {
  display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-slate-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--color-slate-light);
  border-radius: 6px;
  border: 2px solid var(--color-slate-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-copper);
}

/* Selection styling */
::selection {
  background-color: var(--color-copper-light);
  color: var(--color-slate-deepest);
}

::-moz-selection {
  background-color: var(--color-copper-light);
  color: var(--color-slate-deepest);
}

/* Placeholder styling - brighter and more visible */
::placeholder {
  color: #9CA3AF !important;
  opacity: 1 !important;
}

::-webkit-input-placeholder {
  color: #9CA3AF !important;
  opacity: 1 !important;
}

::-moz-placeholder {
  color: #9CA3AF !important;
  opacity: 1 !important;
}

:-ms-input-placeholder {
  color: #9CA3AF !important;
  opacity: 1 !important;
}
