/*
 * Executive Dark Mode - Modular CSS Design System
 * Single file to control all pages: /fi, /en, /es, and root index
 * 
 * Usage: Link this file in all HTML pages:
 * <link rel="stylesheet" href="../assets/css/executive-dark.css">
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Executive Dark */
  --void: #0a0a0f;
  --void-light: #12121a;
  --void-lighter: #1a1a25;
  --void-border: #2a2a3a;
  --void-border-subtle: rgba(255, 255, 255, 0.06);
  
  /* Accent Colors */
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.1);
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-purple: #7c3aed;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  --gradient-card: linear-gradient(180deg, var(--void-lighter) 0%, var(--void-light) 100%);
  --gradient-border: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 50%, transparent 100%);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-sm: 0 0 20px var(--accent-glow);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --container-max: 72rem;
  --container-narrow: 48rem;
  --nav-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--void);
  min-height: 100vh;
}

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

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-hero {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .heading-hero { font-size: var(--text-5xl); }
}

@media (min-width: 1024px) {
  .heading-hero { font-size: var(--text-6xl); }
}

.heading-section {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

@media (min-width: 640px) {
  .heading-section { font-size: var(--text-3xl); }
}

.heading-card {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section-sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--void-border-subtle);
}

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

.nav-brand {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-brand:hover {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--accent);
  color: var(--void);
}

.btn-primary:hover {
  background: rgba(0, 212, 255, 0.9);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--accent-dim);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  padding: var(--space-8);
  background: var(--void-light);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent-dim);
  border-radius: var(--radius-xl);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.card-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.card-body {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.card-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--void-border);
}

.card-metric {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--accent);
}

.card-metric-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-16);
  text-align: center;
}

.hero-content {
  max-width: 48rem;
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .hero-title { font-size: var(--text-5xl); }
}

@media (min-width: 1024px) {
  .hero-title { font-size: var(--text-6xl); }
}

.hero-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  background: rgba(18, 18, 26, 0.5);
  border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
}

.trust-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.trust-grid {
  display: grid;
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.trust-title {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-1);
}

.trust-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.services-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   CASE STUDY
   ============================================ */
.case {
  padding: var(--space-16) 0;
  background: rgba(18, 18, 26, 0.3);
}

.case-card {
  padding: var(--space-8);
  background: linear-gradient(180deg, var(--void-lighter) 0%, var(--void-light) 100%);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-2xl);
}

@media (min-width: 640px) {
  .case-card {
    padding: var(--space-12);
  }
}

.case-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.case-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.case-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--accent);
}

/* ============================================
   GUARANTEE
   ============================================ */
.guarantee {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
}

.guarantee-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.guarantee-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   CONTACT / CALENDLY
   ============================================ */
.contact {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  background: rgba(18, 18, 26, 0.5);
  border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.contact-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.contact-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .contact-title { font-size: var(--text-4xl); }
}

.contact-description {
  color: var(--text-secondary);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.calendly-wrapper {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--void-border);
  background: var(--void);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-top: 1px solid var(--void-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ============================================
   LANGUAGE PICKER (Root index.html)
   ============================================ */
.picker-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.picker-card {
  padding: var(--space-12) var(--space-6);
  max-width: 30rem;
}

.picker-glyph {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.picker-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.picker-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.picker-grid {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.picker-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-7);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  min-width: 7rem;
}

.picker-option:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-sm);
}

.picker-flag {
  font-size: var(--text-3xl);
}

.picker-lang {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.02em;
}

.picker-lang-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-purple) 50%, var(--void-border) 100%);
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) - 7px);
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--void);
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  z-index: 1;
}

.timeline-step.completed .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-step.active .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50% { box-shadow: 0 0 24px rgba(0, 212, 255, 0.4); }
}

.timeline-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.progress-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.progress-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent);
}

.progress-track {
  height: 8px;
  background: var(--void-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  transition: width 1.5s ease-out;
}

/* ============================================
   TECH STACK BADGES
   ============================================ */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--void-light);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   STAT COUNTER
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--void-light);
  border: 1px solid var(--void-border-subtle);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================
   SERVICES EXPANDED (with sub-detail)
   ============================================ */
.svc-detail-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.svc-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.svc-detail-icon {
  color: var(--accent);
  font-size: var(--text-base);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   APPROACH SECTION
   ============================================ */
.approach-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

/* ============================================
   CALENDLY OVERRIDE (Dark mode compatibility)
   ============================================ */
.calendly-inline-widget iframe {
  background: var(--void) !important;
}
