/* TriconDigital - Main CSS
   SpaceX-inspired dark theme with black/blue/silver palette */

/* Design Tokens */
:root {
  /* Colors */
  --color-black: #000000;
  --color-black-soft: #0a0a0a;
  --color-blue: #0080FF;
  --color-blue-dark: #005288;
  --color-blue-light: #4DA6FF;
  --color-white: #FFFFFF;
  --color-silver: #868686;
  --color-silver-light: #A8A8A8;
  
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Font Sizes */
  --size-hero: clamp(3rem, 8vw, 6rem);
  --size-h1: clamp(2rem, 5vw, 3.5rem);
  --size-h2: clamp(1.5rem, 4vw, 2.5rem);
  --size-h3: clamp(1.25rem, 3vw, 1.75rem);
  --size-body: 1.125rem;
  --size-small: 0.875rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-section: min(100vh, 1200px);
  
  /* Layout */
  --content-max: 1400px;
  --content-narrow: 800px;
  
  /* Effects */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease-out;
  --transition-slow: 500ms ease-out;
  --shadow-subtle: 0 2px 8px rgba(0,128,255,0.1);
  --shadow-strong: 0 8px 32px rgba(0,128,255,0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--size-h1);
  text-transform: uppercase;
}

h2 {
  font-size: var(--size-h2);
}

h3 {
  font-size: var(--size-h3);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-silver-light);
}

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

a:hover {
  color: var(--color-blue-light);
}

/* Layout Utilities */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-black);
}

.section-gradient {
  background: linear-gradient(180deg, var(--color-black) 0%, var(--color-black-soft) 100%);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background-color: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-outline:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--color-black-soft);
  border: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-silver-light);
  text-transform: uppercase;
  font-size: var(--size-small);
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  font-size: var(--size-body);
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background-color: rgba(0,128,255,0.05);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-blue {
  color: var(--color-blue);
}

.text-silver {
  color: var(--color-silver);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Responsive */
@media (max-width: 768px) {
  :root {
    --size-body: 1rem;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hide-mobile {
    display: none;
  }
}

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

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.05) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-silver-light);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
}

/* Pricing */
.pricing {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-top: var(--space-md);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}