/**
 * Teknei Brand Center - Master Design System
 * Visual DNA based on teknei.com & Teknei High-Impact Executive Presentation System.
 */

:root {
  /* Master Palette - Teknei Core */
  --teknei-navy: #001b2d;
  --teknei-navy-deep: #001430;
  --teknei-blue-dark: #002859;
  --teknei-blue: #006ecd;
  --teknei-blue-alt: #006ec9;
  --teknei-cyan: #4ea8ff;
  --teknei-cyan-glow: #65d5ff;
  --teknei-accent-coral: #f14f44;
  --teknei-mint: #10b981;
  --teknei-amber: #ea580c;

  /* Neutrals & Surfaces - Light Editorial (Default like teknei.com) */
  --bg-page: #f4f5f6;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-muted: #eef2f7;
  --bg-card-hover: #ffffff;
  --bg-header: rgba(244, 245, 246, 0.88);
  --bg-header-scrolled: rgba(255, 255, 255, 0.94);
  --bg-input: #ffffff;

  /* Typography Colors */
  --text-primary: #001b2d;
  --text-secondary: #546b7d;
  --text-muted: #7a8597;
  --text-dim: #9aaac0;
  --text-inverse: #ffffff;
  --text-accent: #006ecd;

  /* Borders & Hairlines */
  --hairline: rgba(0, 27, 45, 0.08);
  --hairline-strong: rgba(0, 27, 45, 0.16);
  --hairline-accent: rgba(0, 110, 205, 0.28);
  --border-radius-xs: 4px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --border-radius-pill: 9999px;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 6px rgba(0, 27, 45, 0.03);
  --shadow-md: 0 10px 25px -4px rgba(0, 27, 45, 0.06), 0 4px 10px -2px rgba(0, 27, 45, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(0, 27, 45, 0.08), 0 8px 16px -4px rgba(0, 27, 45, 0.04);
  --shadow-xl: 0 30px 60px -15px rgba(0, 27, 45, 0.12);
  --shadow-glow-blue: 0 0 35px rgba(0, 110, 205, 0.22);
  --shadow-glow-cyan: 0 0 30px rgba(78, 168, 255, 0.35);

  /* Typography Scales */
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;

  /* Grid & Dimensions */
  --container-max: 1380px;
  --container-padding: clamp(20px, 4vw, 56px);
  --header-height: 84px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 160ms var(--ease-smooth);
  --transition-normal: 280ms var(--ease-smooth);
  --transition-spring: 500ms var(--ease-spring);
}

/* Cybernetic Navy Theme (Teknei Executive Dark Presentation Mode) */
[data-theme="dark"] {
  --bg-page: #001430;
  --bg-surface: #001b2d;
  --bg-surface-alt: #00223d;
  --bg-card: rgba(0, 40, 89, 0.45);
  --bg-card-muted: rgba(0, 40, 89, 0.25);
  --bg-card-hover: rgba(0, 40, 89, 0.75);
  --bg-header: rgba(0, 20, 48, 0.85);
  --bg-header-scrolled: rgba(0, 20, 48, 0.95);
  --bg-input: #001b2d;

  --text-primary: #edf3fc;
  --text-secondary: #9aaac0;
  --text-muted: #7a8597;
  --text-dim: #546b7d;
  --text-inverse: #001b2d;
  --text-accent: #4ea8ff;

  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --hairline-accent: rgba(78, 168, 255, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow-blue: 0 0 45px rgba(0, 110, 205, 0.35);
  --shadow-glow-cyan: 0 0 40px rgba(78, 168, 255, 0.45);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  min-height: 100vh;
}

/* Ambient Moving Gradient Light System (Kydeoh-inspired) */
.ambient-glow-system {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: var(--bg-page);
  transition: background-color var(--transition-normal);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  opacity: 0.6;
  will-change: transform;
  pointer-events: none;
}

[data-theme="dark"] .ambient-orb {
  opacity: 0.85;
}

.ambient-orb-1 {
  width: min(75vw, 750px);
  height: min(75vw, 750px);
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(0, 110, 205, 0.45) 0%, rgba(78, 168, 255, 0.2) 45%, transparent 70%);
  animation: ambientFloat1 24s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: min(70vw, 680px);
  height: min(70vw, 680px);
  top: 40%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.35) 0%, rgba(0, 110, 205, 0.15) 50%, transparent 70%);
  animation: ambientFloat2 30s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: min(60vw, 550px);
  height: min(60vw, 550px);
  bottom: -5%;
  right: 10%;
  background: radial-gradient(circle, rgba(16, 52, 99, 0.5) 0%, rgba(0, 40, 89, 0.25) 55%, transparent 70%);
  animation: ambientFloat3 28s ease-in-out infinite alternate;
}

.ambient-orb-4 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  top: 20%;
  left: 35%;
  background: radial-gradient(circle, rgba(232, 65, 56, 0.18) 0%, rgba(241, 79, 68, 0.05) 50%, transparent 70%);
  animation: ambientFloat4 20s ease-in-out infinite alternate;
}

/* Selection */
::selection {
  background: var(--teknei-blue);
  color: #ffffff;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 27, 45, 0.2);
  border-radius: var(--border-radius-pill);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teknei-blue);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Signature Two-Tone Title Pattern */
.two-tone-title {
  display: block;
  width: 100%;
}
.two-tone-title .base-phrase {
  font-weight: 400;
  color: var(--text-primary);
}
.two-tone-title .accent-phrase {
  font-weight: 600;
  color: var(--text-accent);
  position: relative;
}
.two-tone-title .dot {
  color: var(--text-accent);
}

/* Editorial Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teknei-blue);
  box-shadow: 0 0 10px var(--teknei-blue);
}

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

/* Hairline Rules */
.hairline-separator {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 0;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teknei-blue);
  outline-offset: 3px;
}

/* Interactive Elements Base */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  user-select: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  display: block;
  max-width: 100%;
}
