/* ==========================================================================
   NEXAGE.AI — DESIGN SYSTEM & TOKENS (APPLE PURE LIGHT AESTHETICS)
   ========================================================================== */

:root {
  /* Color Palette - Apple Pure Light Mode (Default) */
  --bg-space: #ffffff;
  --bg-deep: #F6FAFB;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #F2F7F9;
  --bg-surface-hover: #EAF4F7;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-active: rgba(10, 127, 153, 0.08);

  /* Signature Nexage Brand Accents */
  --cyan-primary: #0A7F99;
  --cyan-bright: #0E9CB8;
  --cyan-vibrant: #3FC0DA;
  --cyan-glow: rgba(10, 127, 153, 0.18);
  --cyan-light: #E3F4F8;
  --cyan-light-bg: #EEF8FA;
  --cyan-deep: #005f73;
  --cyan-gradient: linear-gradient(135deg, #0E9CB8 0%, #0A7F99 100%);
  --cyan-portal-glow: radial-gradient(circle, rgba(10, 127, 153, 0.18) 0%, rgba(14, 156, 184, 0.06) 50%, transparent 70%);

  /* Secondary & Status Accents */
  --electric-blue: #0284c7;
  --indigo-glow: #4f46e5;
  --purple-accent: #9333ea;
  --emerald-success: #059669;
  --amber-warning: #d97706;
  --rose-error: #e11d48;

  /* Typography Colors (Apple High Contrast & Elegance) */
  --text-white: #2B2E31;
  --text-primary: #2B2E31;
  --text-secondary: #535B62;
  --text-tertiary: #5D666D;
  --text-muted: #8A949A;
  --text-cyan: #0A7F99;

  /* Borders & Dividers */
  --border-subtle: #E3ECF0;
  --border-medium: #CFE3EA;
  --border-glow: rgba(10, 127, 153, 0.35);
  --border-active: #0A7F99;

  /* Typography System */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */
  --space-4xl: 6rem;     /* 96px */

  /* Radius Scale */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* Shadows & Elevations (Apple Subtle Depth) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
  --shadow-cyan-glow: 0 8px 30px rgba(10, 127, 153, 0.15);
  --shadow-cyan-pill: 0 4px 16px rgba(10, 127, 153, 0.3);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Draft palette aliases (nexage-web-taslak) */
  --ink: #2B2E31;
  --brand: #0A7F99;
  --brand-2: #0E9CB8;
  --frame: #14A6C2;
  --cyan: #3FC0DA;
  --cyan-l: #6FD3E8;
  --night: #0B171C;
  --line: #E3ECF0;

  /* Layout */
  --container-width: 1240px;
  --container-wide: 1400px;
  --header-height: 72px;
}

/* ==========================================================================
   CSS RESETS & BASE STYLES
   ========================================================================== */

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-space);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  background-color: var(--bg-space);
  color: var(--text-primary);
  position: relative;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 127, 153, 0.4);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Modern Accessible Focus System (Suppresses blue focus ring on mouse/touch clicks) */
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
}

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

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Perfect Anchor Scroll Offset (Accounts for Sticky Header on Desktop & Mobile) */
[id],
section[id],
.section[id],
.hero-slider-section[id],
.depark-hub-banner[id] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

/* Text Gradients (Apple Light High Definition) */
.gradient-text-cyan {
  background: none;
  color: var(--brand-2);
  -webkit-text-fill-color: currentColor;
}

.gradient-text-brand {
  background: none;
  color: var(--brand-2);
  -webkit-text-fill-color: currentColor;
}

/* Glassmorphic Backdrop */
.glass-panel {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* Section Header Shared Styles */
.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto var(--space-3xl) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--cyan-light-bg);
  border: 1px solid rgba(10, 127, 153, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-deep);
  margin-bottom: var(--space-md);
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  font-weight: 800;
  color: #2B2E31;
}

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

/* Ambient Subtle Background Light Mesh */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
}

.ambient-cyan {
  background: rgba(10, 127, 153, 0.15);
}

.ambient-blue {
  background: rgba(2, 132, 199, 0.1);
}
