/* ==========================================================================
   Dr. Malik — Umbrella Platform Design System
   Technology • Digital Business • Innovation • Ventures
   ========================================================================== */

:root {
  /* Executive Color System */
  --bg-base: #06080D;
  --bg-surface: #0B0F19;
  --bg-card: rgba(15, 20, 32, 0.75);
  --bg-card-hover: rgba(22, 30, 48, 0.88);
  --bg-glass: rgba(11, 15, 25, 0.82);
  --bg-input: rgba(6, 8, 13, 0.75);
  
  /* Brand Accents */
  --accent-signal: #E04E26;
  --accent-signal-hover: #F05A30;
  --accent-signal-glow: rgba(224, 78, 38, 0.22);
  --accent-cyan: #0EA5E9;
  --accent-cyan-light: #38BDF8;
  --accent-cyan-glow: rgba(14, 165, 233, 0.2);
  --accent-indigo: #6366F1;
  --accent-emerald: #10B981;
  --accent-gradient: linear-gradient(135deg, #E04E26 0%, #F59E0B 100%);
  --accent-gradient-cyan: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);

  /* Neutrals & Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #06080D;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --border-signal: rgba(224, 78, 38, 0.45);
  --border-cyan: rgba(14, 165, 233, 0.4);

  /* Radius Tokens */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  --shadow-signal: 0 0 25px rgba(224, 78, 38, 0.35);
  --shadow-cyan: 0 0 25px rgba(14, 165, 233, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-w: 1240px;
  --header-height: 78px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5.8vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

ul, ol {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-signal);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-signal);
  display: inline-block;
}

.eyebrow.cyan {
  color: var(--accent-cyan-light);
}

.eyebrow.cyan::before {
  background: var(--accent-cyan-light);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.btn-signal {
  background: var(--accent-signal);
  color: #ffffff;
  border-color: var(--accent-signal);
  box-shadow: 0 4px 18px var(--accent-signal-glow);
}

.btn-signal:hover {
  background: var(--accent-signal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 78, 38, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-cyan-light);
  border-color: var(--border-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--accent-cyan-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.8rem;
}

/* Glass Panels & Precision Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Blueprint Registration Ticks */
.sheet {
  position: relative;
}

.tick {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.tick::before, .tick::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  opacity: 0.6;
}

.tick-tl { top: -1px; left: -1px; }
.tick-tr { top: -1px; right: -1px; }
.tick-bl { bottom: -1px; left: -1px; }
.tick-br { bottom: -1px; right: -1px; }

.tick-tl::before, .tick-tr::before, .tick-bl::before, .tick-br::before { width: 10px; height: 1px; top: 0; }
.tick-tl::after, .tick-tr::after, .tick-bl::after, .tick-br::after { width: 1px; height: 10px; left: 0; }
.tick-tl::before { left: 0; } .tick-tl::after { top: 0; }
.tick-tr::before { right: 0; left: auto; } .tick-tr::after { top: 0; left: auto; right: 0; }
.tick-bl::before { left: 0; top: auto; bottom: 0; } .tick-bl::after { top: auto; bottom: 0; left: 0; }
.tick-br::before { right: 0; left: auto; top: auto; bottom: 0; } .tick-br::after { top: auto; bottom: 0; left: auto; right: 0; }

/* Global Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* Badges & Tags */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-light);
  background: rgba(14, 165, 233, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 5rem 0; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .glass-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 62px;
  }
  .section { padding: 3.25rem 0; }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
