:root {
  /* Color Palette - Accessible High Contrast & Premium Feel */
  /* Dark "Nordic Night" Theme for Hero/Footer */
  --color-bg-dark: #0B1120; 
  --color-bg-dark-secondary: #1E293B;
  
  /* Light "Clean Tech" Theme for Content */
  --color-bg-light: #FFFFFF;
  --color-bg-light-alt: #F8FAFC; /* Slate 50 */
  
  /* Accents & Brand Colors */
  --color-primary: #0F172A; /* Slate 900 - Primary Text/Headings */
  --color-primary-light: #334155; /* Slate 700 - Body Text */
  
  --color-accent: #0369A1; /* Sky 700 - Primary Brand Color (AA compliant on white) */
  --color-accent-hover: #075985; /* Sky 800 */
  --color-accent-light: #E0F2FE; /* Sky 100 - Backgrounds */
  
  --color-secondary: #4F46E5; /* Indigo 600 - Secondary Brand Color */
  
  /* Functional Colors */
  --color-border: #E2E8F0; /* Slate 200 */
  --color-focus: #0EA5E9; /* Sky 500 - Focus Ring */
  --color-error: #DC2626;
  --color-success: #16A34A;

  /* Typography */
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-family-heading: var(--font-family-base);
  
  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.125rem; /* 18px */
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-primary-light);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-5xl)); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-6);
  max-width: 70ch;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.text-center { text-align: center; }
.text-light { color: #94A3B8; }
.text-white { color: white; }
.text-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

.section {
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.bg-light-alt { background-color: var(--color-bg-light-alt); }
.bg-dark { background-color: var(--color-bg-dark); color: white; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: var(--text-base);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(2, 132, 199, 0.3);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-bg-light-alt);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-outline-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-8);
}

.main-nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-accent);
  text-decoration: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background-color: var(--color-bg-dark);
  color: white;
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  mix-blend-mode: luminosity; /* Blends nicely with the dark theme */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 17, 32, 0.95), rgba(11, 17, 32, 0.8));
  z-index: 1;
}

/* Abstract Tech Background */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0) 2px, transparent 2px), 
    linear-gradient(90deg, rgba(15, 23, 42, 0) 2px, transparent 2px), 
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  pointer-events: none;
  z-index: 1; /* Overlay on top of image */
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero p {
  font-size: var(--text-lg);
  color: #94A3B8; /* Slate 400 */
  margin-bottom: var(--space-8);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.card-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
}

.card-logo svg,
.card-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.card:hover .card-logo svg,
.card:hover .card-logo img {
  transform: scale(1.05);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--space-4);
}

.card p {
  flex-grow: 1;
  color: var(--color-primary-light);
  margin-bottom: var(--space-6);
}

.card-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stat-item p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
  color: var(--color-primary-light);
  margin: 0;
}

/* Footer */
footer {
  background-color: var(--color-bg-dark);
  color: #94A3B8;
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  color: white;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

/* Forms */
form {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-6);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg-light-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1100;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    padding: var(--space-24) var(--space-4);
    z-index: 1000;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }
  
  .main-nav a {
    font-size: var(--text-xl);
  }

  .hero {
    text-align: center;
    padding: var(--space-12) 0;
  }
  
  .hero-content {
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

/* Legal Entity Suffix Styling */
.oy-symbol {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 0.1em;
  font-weight: normal; /* Ensure it's not too bold in headings */
}
