/**
 * TECHGROWTH CREATIVE — STUDIO DESIGN SYSTEM & MASTER CSS
 * Subdomain: creative.techgrowthdigital.com
 * Source of Truth: PRD, TRD, UI/UX DESIGN SPECIFICATION, BRAND GUIDELINES
 *
 * Theme: Editorial + High-Performance Advertising Studio
 * Official TechGrowth Brand Foundation:
 * - Navy: #062C5A (Canvas: #03142C, Card: #072147, Border: #0D336A)
 * - Bright Blue: #1565F5
 * - Accent Orange: #FF7A00
 * - White: #FFFFFF
 * - Light: #F7F9FC
 * - Dark Text: #1F2937
 * - Gray Text: #6B7280 (Muted: #94A3B8)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==============================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ============================================================================== */
:root {
  /* Brand Core Tokens */
  --brand-navy: #062C5A;
  --brand-blue: #1565F5;
  --brand-orange: #FF7A00;
  --brand-white: #FFFFFF;
  --brand-light: #F7F9FC;
  --brand-dark-text: #1F2937;
  --brand-gray-text: #6B7280;

  /* Studio Editorial Dark Palette */
  --bg-midnight: #03142C;
  --bg-surface: #072147;
  --bg-surface-elevated: #0B2B5C;
  --bg-card: rgba(7, 33, 71, 0.75);
  --border-line: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(21, 101, 245, 0.25);
  --border-focus: #1565F5;
  
  /* Text Contrast Hierarchy (WCAG 2.2 AA Compliant) */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Interactive & Accent States */
  --accent-blue: #1565F5;
  --accent-blue-hover: #0D52D6;
  --accent-orange: #FF7A00;
  --accent-orange-hover: #E56E00;
  --accent-glow: rgba(21, 101, 245, 0.35);
  --status-green: #10B981;
  --status-amber: #F59E0B;
  --status-red: #EF4444;

  /* Typography Scale */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout Containers */
  --shell-max: 1240px;
  --shell-pad: 32px;
  --header-height: 84px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Motion & Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

/* ==============================================================================
   2. RESET & ACCESSIBILITY FOUNDATION
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-midnight);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Accessible Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Studio Background Gradient Mesh (Subtle Editorial Depth) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(21, 101, 245, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(255, 122, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(6, 44, 90, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-midnight);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(21, 101, 245, 0.5);
}

/* ==============================================================================
   3. TYPOGRAPHY SYSTEM
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: var(--space-sm);
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.85);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==============================================================================
   4. LAYOUT CONTAINERS & SHELL
   ============================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

.section {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
  position: relative;
}

.section-head {
  margin-bottom: var(--space-3xl);
}

.section-head.center {
  text-align: center;
}

.section-head.center p.lead {
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================================================
   5. GLOBAL BUTTONS & CTA SYSTEM (LEVEL 1 MICRO-INTERACTIONS)
   ============================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: var(--accent-orange);
  color: var(--brand-white);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.28);
}

.button-primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.4);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.button-blue {
  background: var(--accent-blue);
  color: var(--brand-white);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(21, 101, 245, 0.3);
}

.button-blue:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 101, 245, 0.45);
}

.button-blue:active {
  transform: translateY(0);
}

.button-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-line);
  backdrop-filter: blur(8px);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.button-outline:active {
  transform: translateY(0);
}

.button-small {
  padding: 10px 18px;
  font-size: 0.8rem;
}

.button-large {
  padding: 18px 34px;
  font-size: 0.95rem;
}

.button .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* ==============================================================================
   6. GLOBAL HEADER & NAVIGATION
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(3, 20, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-line);
  z-index: 1000;
  transition: height var(--transition-normal), background var(--transition-normal);
}

.site-header.scrolled {
  height: 72px;
  background: rgba(3, 20, 44, 0.96);
  border-bottom-color: rgba(21, 101, 245, 0.3);
  box-shadow: 0 10px 30px rgba(0, 8, 20, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo + Studio Division Badge */
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
}

.brand-division {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.division-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-white);
}

.division-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(3, 20, 44, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px var(--shell-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-105%);
  transition: transform var(--transition-normal);
  z-index: 999;
  border-top: 1px solid var(--border-line);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-orange);
}

.mobile-drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-parent-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==============================================================================
   7. GLOBAL FOOTER (EDITORIAL STUDIO ARCHITECTURE)
   ============================================================================== */
.site-footer {
  background: #020D1D;
  border-top: 1px solid var(--border-line);
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: 36px;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

.footer-brand-col p {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-parent-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-line);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-parent-tag a {
  color: var(--brand-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-white);
  padding-left: 4px;
}

.footer-inquiry-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.footer-inquiry-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ==============================================================================
   8. CARD PANELS & MEDIA CONTAINER SYSTEM
   ============================================================================== */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.studio-card:hover {
  border-color: rgba(21, 101, 245, 0.45);
  box-shadow: 0 16px 40px rgba(0, 8, 20, 0.4);
  transform: translateY(-3px);
}

/* Spotlight Cursor Effect for Cards */
.studio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(21, 101, 245, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.studio-card:hover::before {
  opacity: 1;
}

/* 9:16 Video Container Aspect Ratio Treatment */
.media-frame-916 {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
}

.media-frame-916 img,
.media-frame-916 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Metadata Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge-spec {
  background: rgba(255, 122, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 122, 0, 0.35);
}

.badge-blue {
  background: rgba(21, 101, 245, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(21, 101, 245, 0.35);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
}

/* ==============================================================================
   9. MOTION SYSTEM (LEVEL 2 REVEAL OBSERVER)
   ============================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================================
   10. REDUCED MOTION SUPPORT (WCAG & USER PREFERENCE)
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .eyebrow .pulse-dot {
    animation: none !important;
  }

  .button:hover {
    transform: none !important;
  }

  .studio-card:hover,
  .vault-card:hover,
  .showcase-card:hover {
    transform: none !important;
  }
}

/* ==============================================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 860px) {
  :root {
    --shell-pad: 20px;
    --header-height: 74px;
  }

  .nav-menu,
  .header-actions .button-small {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --shell-pad: 16px;
  }

  .brand-division {
    display: none;
  }
  .brand-divider {
    display: none;
  }
}
