/* S304 STUDIO - Custom Industrial & Brutalist Steel Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #090a0c;
  --bg-secondary: #111317;
  --bg-tertiary: #181b20;
  --steel-light: #e5e7eb;
  --steel-muted: #9ca3af;
  --steel-dark: #374151;
  --steel-border: rgba(255, 255, 255, 0.08);
  --steel-hover: rgba(255, 255, 255, 0.16);
  --accent-steel: #d4d7dc;
  --accent-bronze: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--steel-light);
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  /* Extra bottom padding on mobile so sticky CTA does not overlap footer content */
  padding-bottom: 0;
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.font-mono-code {
  font-family: 'Space Grotesk', monospace;
}

/* Subtle architectural noise texture */
.noise-overlay {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Brushed steel sheen gradient */
.steel-gradient {
  background: linear-gradient(135deg, #f8f9fa 0%, #cbd5e1 30%, #94a3b8 70%, #e2e8f0 100%);
}

.steel-text-gradient {
  background: linear-gradient(180deg, #ffffff 20%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.steel-card {
  background: linear-gradient(180deg, rgba(24, 27, 32, 0.8) 0%, rgba(14, 16, 20, 0.95) 100%);
  border: 1px solid var(--steel-border);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.steel-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

/* Brushed metal reflective effect on buttons */
.steel-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f4f6 0%, #d1d5db 100%);
  color: #0f1115;
  font-weight: 700;
  border: 1px solid #ffffff;
  transition: all 0.25s ease;
  min-height: 44px; /* Touch target minimum */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steel-button:hover {
  background: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.steel-button:active {
  transform: translateY(1px);
}

.steel-button-outline {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steel-button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.steel-button-outline:active {
  transform: translateY(1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0c;
}
::-webkit-scrollbar-thumb {
  background: #272a30;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f444e;
}

/* Lightbox Modal Animations */
.lightbox-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-backdrop.active .lightbox-content {
  transform: scale(1);
}

/* Floating glow effect */
.glow-spot {
  position: absolute;
  width: clamp(300px, 45vw, 650px);
  height: clamp(300px, 45vw, 650px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 215, 235, 0.07) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Grid & Layout Helpers */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Safe area inset for sticky mobile bar */
.pb-safe {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Image Crossfade Helper */
.hero-img-transition {
  transition: opacity 0.35s ease-in-out, transform 0.4s ease-out;
}

/* Active thumbnail indicator */
.thumbnail-active {
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Input zoom prevention on iOS */
input[type="number"],
input[type="text"] {
  font-size: 16px;
}
