/* ============================================================
   SIERRA 3D STUDIO — Global Design System (v3.0 Ultra-Modern)
   style.css
   Atmospheric Studio Obsidian & Laser Luminescence
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Color Palette — Studio Dark Luxury & Obsidian */
  --clr-bg:                 #07080c;
  --clr-bg-alt:             #0b0d14;
  --clr-bg-card:            #0e111a;
  --clr-surface:            rgba(15, 19, 29, 0.76);
  --clr-surface-card:       rgba(17, 22, 35, 0.88);
  --clr-surface-2:          #151a26;
  --clr-surface-3:          #1e2538;
  --clr-border:             rgba(255, 255, 255, 0.09);
  --clr-border-2:           rgba(255, 255, 255, 0.16);
  --clr-border-hover:       rgba(255, 92, 38, 0.6);
  --clr-glass-edge:         rgba(255, 255, 255, 0.14);

  --clr-text:               #f8fafc;
  --clr-text-2:             #94a3b8;
  --clr-muted:              #64748b;
  --clr-white:              #ffffff;

  /* Primary Accent: Studio Ember / Neon Lava */
  --clr-accent:             #ff5722;
  --clr-accent-light:       #ff7a45;
  --clr-accent-dark:        #d64110;
  --clr-accent-glow:        rgba(255, 87, 34, 0.2);
  --clr-accent-glow-strong: rgba(255, 87, 34, 0.45);

  /* Secondary Accent: Laser Cyan CAD */
  --clr-cyan:               #00e5ff;
  --clr-cyan-light:         #38bdf8;
  --clr-cyan-glow:          rgba(0, 229, 255, 0.2);

  /* Tertiary: Gold / Amber & Emerald */
  --clr-amber:              #f59e0b;
  --clr-amber-glow:         rgba(245, 158, 11, 0.2);
  --clr-emerald:            #10b981;
  --clr-emerald-glow:       rgba(16, 185, 129, 0.2);
  --clr-purple:             #a855f7;

  /* 3D Viewport Accents */
  --clr-axis-x:             #ff4655;
  --clr-axis-y:             #00d26a;
  --clr-axis-z:             #38bdf8;
  --clr-active-dot:         #10b981;

  /* Typography Fonts */
  --font-display: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Typography Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Font Weights */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg:     0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl:     0 24px 64px rgba(0, 0, 0, 0.85);
  --shadow-accent: 0 12px 36px rgba(255, 87, 34, 0.32);
  --shadow-cyan:   0 12px 36px rgba(0, 229, 255, 0.26);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base:   250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:   400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slower: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container-max: 1320px;
  --container-padding: clamp(1rem, 5vw, 2.5rem);
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  background-color: var(--clr-bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(255, 87, 34, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080a10;
}
::-webkit-scrollbar-thumb {
  background: #1e2638;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  color: var(--clr-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: var(--fw-extrabold);
  color: var(--clr-text);
  letter-spacing: -0.03em;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-24);
  position: relative;
}

.section--lg {
  padding-block: var(--space-32);
}

/* ── Typography Utilities ─────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }

.font-light     { font-weight: var(--fw-light); }
.font-medium    { font-weight: var(--fw-medium); }
.font-semibold  { font-weight: var(--fw-semibold); }
.font-bold      { font-weight: var(--fw-bold); }
.font-extrabold { font-weight: var(--fw-extrabold); }

.text-muted  { color: var(--clr-muted); }
.text-accent { color: var(--clr-accent-light); }
.text-cyan   { color: var(--clr-cyan); }
.text-emerald { color: var(--clr-emerald); }
.text-center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent-light);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4.2vw, var(--text-4xl));
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-2);
  max-width: 62ch;
  line-height: 1.7;
}

/* ── Status Badges ────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 87, 34, 0.09);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--clr-active-dot);
  box-shadow: 0 0 10px var(--clr-active-dot);
  animation: pulse-dot 2s infinite;
}

.status-dot.dot-orange {
  background-color: var(--clr-accent);
  box-shadow: 0 0 10px var(--clr-accent);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag--active {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-tag--upcoming {
  background: rgba(100, 116, 139, 0.15);
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border-2);
}

.badge-tag--accent {
  background: var(--clr-accent-glow);
  color: var(--clr-accent-light);
  border: 1px solid rgba(255, 87, 34, 0.35);
}

.badge-tag--cyan {
  background: var(--clr-cyan-glow);
  color: var(--clr-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

/* ── Utility ──────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap   { flex-wrap: wrap; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.grid { display: grid; }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mt-auto { margin-top: auto; }

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

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin-block: var(--space-12);
}

/* ── Accent Highlight Text Gradients ──────────────────────── */
.highlight {
  background: linear-gradient(135deg, #ffffff 15%, var(--clr-accent-light) 60%, #ff9e79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.highlight-cyan {
  background: linear-gradient(135deg, #ffffff 15%, var(--clr-cyan) 75%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-gold {
  background: linear-gradient(135deg, #ffffff 15%, #f59e0b 75%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Responsive Grid Utilities ────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }
}
