/* ==========================================================================
   STEGNCE LYF TEK — DESIGN SYSTEM & CORE TOKENS
   Theme: Premium MedTech · Advanced Engineering · Accessibility
   Fonts: Space Grotesk (Headings/HUD) + Inter (Body/Data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette — Deep Navy, Obsidian, Medical White & Engineering Accents */
  --bg-primary: #070c18;
  --bg-secondary: #0c1427;
  --bg-tertiary: #111d38;
  --bg-card: rgba(16, 26, 49, 0.72);
  --bg-card-hover: rgba(22, 36, 68, 0.85);
  --bg-surface-light: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-muted: #f1f5f9;

  /* Engineering Accents */
  --accent-teal: #6f9ed8;
  --accent-teal-glow: rgba(111, 158, 216, 0.24);
  --accent-teal-subtle: rgba(111, 158, 216, 0.12);
  --accent-blue: #3b82f6;
  --accent-blue-subtle: rgba(59, 130, 246, 0.12);
  
  /* Brand Logo Accents (Subtle STEGNCE Purple) */
  --brand-purple: #7c3aed;
  --brand-purple-light: #a78bfa;
  --brand-purple-glow: rgba(124, 58, 237, 0.22);
  --brand-purple-subtle: rgba(124, 58, 237, 0.08);

  /* Status Colors */
  --status-pending: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.12);
  --status-active: #10b981;
  --status-active-bg: rgba(16, 185, 129, 0.12);
  --status-info: #0ea5e9;
  --status-info-bg: rgba(14, 165, 233, 0.12);

  /* Text Colors */
  --text-primary: #e6e8ee;
  --text-secondary: #a3a9b6;
  --text-muted: #737b8c;
  --text-dark-primary: #0f172a;
  --text-dark-secondary: #475569;
  --text-dark-muted: #64748b;

  /* Borders & Dividers */
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-tech: rgba(111, 158, 216, 0.35);
  --border-purple: rgba(124, 58, 237, 0.35);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Typography Scale */
  --text-hero: clamp(2.5rem, 5.5vw, 4.5rem);
  --text-h1: clamp(2rem, 4vw, 3.25rem);
  --text-h2: clamp(1.6rem, 3vw, 2.35rem);
  --text-h3: clamp(1.25rem, 2.2vw, 1.65rem);
  --text-body-lg: clamp(1.05rem, 1.2vw, 1.25rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --text-hud: 0.7rem;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-teal: 0 0 30px rgba(111, 158, 216, 0.2);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.2);

  /* Geometry & Radii — Minimalist, Precise, Non-Over-Rounded */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --container-max: 1320px;
  --container-narrow: 1080px;
  --nav-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* ==========================================================================
   LAYOUT CONTAINERS & ENGINEERING GRIDS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Editorial & Section Structure */
section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-secondary {
  background-color: var(--bg-secondary);
}

.section-light {
  background-color: var(--bg-surface-subtle);
  color: var(--text-dark-primary);
  border-bottom: 1px solid #e2e8f0;
}

.section-light .section-header .section-eyebrow {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
}

.section-light .section-header .section-title {
  color: var(--text-dark-primary);
}

.section-light .section-header .section-subtitle {
  color: var(--text-dark-secondary);
}

/* Section Header Typography */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-teal);
  padding: 0.35rem 0.85rem;
  background: var(--accent-teal-subtle);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}

.section-eyebrow.purple {
  color: var(--brand-purple-light);
  background: var(--brand-purple-subtle);
  border-color: rgba(167, 139, 250, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

/* ==========================================================================
   TECHNICAL UTILITIES & HUD MOTIFS
   ========================================================================== */

/* Ambient Studio MedTech Background */
.bg-studio, .bg-blueprint {
  background-color: #070b14;
  background-image: 
    radial-gradient(ellipse 90% 60% at 80% 15%, rgba(124, 58, 237, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 45%, rgba(124, 58, 237, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 85% 65% at 85% 85%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(7, 11, 20, 0.98), #050811);
  background-attachment: fixed;
}

/* Technical Corner Markers */
.tech-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.tech-box:hover {
  border-color: var(--border-tech);
}

.tech-box::before, .tech-box::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--accent-teal);
  pointer-events: none;
}

.tech-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-teal);
  border-left: 2px solid var(--accent-teal);
}

.tech-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent-teal);
  border-right: 2px solid var(--accent-teal);
}

/* HUD Badges */
.hud-tag {
  font-family: var(--font-heading);
  font-size: var(--text-hud);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal);
}

.hud-tag.orange::before {
  background: var(--status-pending);
  box-shadow: 0 0 6px var(--status-pending);
}

/* Verification Pending Label */
.badge-verification {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xs);
}

.badge-in-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-xs);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--status-active-bg);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-xs);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: #051923;
  border: 1px solid var(--accent-teal);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background-color: #05f0b8;
  border-color: #05f0b8;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
  color: #02121c;
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-purple {
  background: var(--brand-purple);
  color: #ffffff;
  border: 1px solid var(--brand-purple);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: var(--text-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-xs);
}
