/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --bg-dark: #0F172A;
  --bg-dark-2: #111E36;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #CBD5F5;
  --text-on-light: #0F172A;
  --text-on-light-muted: #334155;
  --polaris: #227AEE;
  --polaris-text: #4B93F5;
  --border-dark: rgba(203, 213, 245, 0.12);
  --divider-dark: rgba(203, 213, 245, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip-to-content link - visible on focus, hidden otherwise */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--polaris);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard accessibility - WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--polaris-text);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--polaris-text);
  outline-offset: 2px;
}

.nav-links a:focus,
.lang-link:focus {
  outline: 2px solid var(--polaris-text);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-toggle:focus {
  outline: 2px solid var(--polaris-text);
  outline-offset: -2px;
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.nav-logo {
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo img {
  display: block;
  height: 96px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--polaris);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-on-dark);
}

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

.nav-links a.active {
  color: var(--text-on-dark);
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  padding-top: 152px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.hero-banner-inline {
  width: 100%;
}

.hero-banner-inline svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text-fallback {
  display: none;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--polaris-text);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-on-dark);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-subline {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

.hero-subline span {
  opacity: 0.5;
  margin: 0 10px;
}

/* ═══════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════ */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--polaris-text);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-on-dark-muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, background 0.25s;
}

.card:hover {
  border-color: rgba(203, 213, 245, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 122, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--polaris);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   APPROACH
   ═══════════════════════════════════════ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.approach-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--polaris);
  border-radius: 50%;
  margin-top: 8px;
}

.approach-item p {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.7;
}

.approach-item strong {
  color: var(--text-on-dark);
}

/* ═══════════════════════════════════════
   ABOUT (with photo)
   ═══════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  width: 200px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  box-shadow: 0 0 40px rgba(34, 122, 238, 0.12);
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-on-dark-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-targets h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.about-targets li {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  margin-bottom: 8px;
  list-style: none;
  padding-left: 20px;
  position: relative;
}

.about-targets li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--polaris);
}

/* ═══════════════════════════════════════
   QUOTE (optional, reserved)
   ═══════════════════════════════════════ */
.quote-section {
  border-top: 1px solid var(--divider-dark);
  border-bottom: 1px solid var(--divider-dark);
}

.quote-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-on-dark);
  font-style: italic;
}

/* ═══════════════════════════════════════
   CONTACT (Split Layout)
   ═══════════════════════════════════════ */
.contact-section {
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-left .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-on-dark-muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--polaris-text);
}

.contact-link-item svg {
  flex-shrink: 0;
}

.contact-email {
  color: var(--polaris-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-linkedin {
  color: var(--polaris-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-linkedin:hover {
  opacity: 0.8;
}

/* ═══════════════════════════════════════
   LEGAL PAGES (Legal Notice / Privacy)
   ═══════════════════════════════════════ */
.legal-page {
  padding-top: 168px;
  padding-bottom: 80px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-on-dark);
}

.legal-page p {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 720px;
}

.legal-page a {
  color: var(--polaris-text);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--text-on-dark);
}

/* ═════/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LANGUAGE SWITCHER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
}

.lang-link {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background-color 0.2s;
  padding: 4px 6px;
  border-radius: 4px;
}

.lang-link:hover {
  color: var(--polaris-text);
  background: rgba(75, 147, 245, 0.1);
}

.lang-link.active {
  color: var(--polaris-text);
  background: rgba(75, 147, 245, 0.15);
}

.lang-separator {
  color: var(--text-on-dark-muted);
  opacity: 0.5;
}

══════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--divider-dark);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--polaris-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: var(--divider-dark);
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   RESPONSIVE – TABLET (max 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .lang-switcher {
    margin-right: 12px;
  }
  .lang-link {
    font-size: 13px;
    padding: 2px 4px;
  }
  .hero-banner-inline {
    display: none;
  }

  .hero-text-fallback {
    display: block;
  }

  .hero {
    padding-top: 136px;
    padding-bottom: 64px;
  }

  .services-grid {
    gap: 16px;
  }

  .card {
    padding: 24px;
  }

  .approach-grid {
    gap: 16px;
  }

  .about-layout {
    grid-template-columns: 160px 1fr;
    gap: 40px;
  }

  .about-photo img {
    width: 160px;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    gap: 40px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE – MOBILE (max 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .lang-switcher {
    margin-right: 8px;
  }
  .lang-link {
    font-size: 12px;
    padding: 2px 4px;
  }
  .nav-links.open {
    padding-top: 12px;
  }
  html {
    scroll-padding-top: 108px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-inner {
    height: 88px;
  }

  .nav-logo img {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 18px;
    padding: 8px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero-banner-inline {
    display: none;
  }

  .hero-text-fallback {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-item p {
    font-size: 15px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }

  .about-photo img {
    width: 160px;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-right {
    padding-top: 0;
  }

  .section {
    padding: 56px 0;
  }

  .legal-page {
    padding-top: 120px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}