/**
 * ARKENOR LABS — Core Design System & Tokens
 * Official Palette:
 * --bg-midnight: #101C25 (70%)
 * --surface-graphite: #1D303B (20%)
 * --surface-charcoal: #20292D
 * --primary-turquoise: #00BFA5 (10% accents)
 * --deep-teal: #00A88F
 * --ice-white: #F4F7F8 (headings)
 * --white: #FFFFFF
 * --muted-gray: #84939B (subtitles & borders)
 */

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

:root {
  /* Colors */
  --bg-midnight: #101C25;
  --bg-midnight-rgb: 16, 28, 37;
  --surface-graphite: #1D303B;
  --surface-graphite-rgb: 29, 48, 59;
  --surface-charcoal: #20292D;
  --surface-charcoal-rgb: 32, 41, 45;
  --primary-turquoise: #00BFA5;
  --primary-turquoise-rgb: 0, 191, 165;
  --deep-teal: #00A88F;
  --ice-white: #F4F7F8;
  --white: #FFFFFF;
  --muted-gray: #84939B;
  --border-subtle: rgba(132, 147, 155, 0.16);
  --border-accent: rgba(0, 191, 165, 0.28);
  --glow-turquoise: 0 0 28px rgba(0, 191, 165, 0.16);
  --glow-turquoise-sm: 0 0 14px rgba(0, 191, 165, 0.25);
  --shadow-card: 0 18px 40px -15px rgba(0, 0, 0, 0.65);

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

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS RESET & DEFAULTS */
*, *::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-midnight);
  color: var(--ice-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* TYPOGRAPHY UTILITIES */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  color: var(--muted-gray);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* SECTION STRUCTURE */
section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-turquoise);
  background: rgba(0, 191, 165, 0.08);
  border: 1px solid rgba(0, 191, 165, 0.24);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-turquoise);
  box-shadow: 0 0 8px var(--primary-turquoise);
}

.section-title {
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-gray);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-turquoise);
  color: var(--bg-midnight);
  box-shadow: 0 4px 18px rgba(0, 191, 165, 0.28);
}

.btn-primary:hover {
  background: #00d6b9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 165, 0.42);
}

.btn-secondary {
  background: rgba(29, 48, 59, 0.6);
  color: var(--ice-white);
  border: 1px solid rgba(132, 147, 155, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(29, 48, 59, 0.95);
  border-color: var(--primary-turquoise);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(16, 28, 37, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-gray);
  position: relative;
  padding: 6px 0;
}

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

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

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

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

/* LANGUAGE SELECTOR PILL */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(29, 48, 59, 0.7);
  border: 1px solid rgba(132, 147, 155, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted-gray);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--primary-turquoise);
  color: var(--bg-midnight);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-desktop {
    display: none;
  }
  .header-actions .btn-quote-header {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* MOBILE DRAWER */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #14232f;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1060;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--muted-gray);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ice-white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-links a:hover {
  color: var(--primary-turquoise);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

