/* Modern Global Styles for SubRosa */

/* Import Inter and Söhne fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=sohne@400,500,600,700,800&display=swap');

/* CSS Variables */
:root {
  --modern-bg-primary: #F9F9F9;
  --modern-bg-secondary: #FFFFFF;
  --modern-text-primary: #0A0A0A;
  --modern-text-secondary: #2E2E2E;
  --modern-accent-red: #C1272D;
  --modern-gray-light: #EAEAEA;
  --modern-gray-medium: #B3B3B3;
  --modern-charcoal: #2E2E2E;
  --modern-spacing-unit: 8px;
  --homepage-text: #0B1020;
  --homepage-muted: #4B5563;
  --homepage-border: #E6E8EE;
  --homepage-surface: #FFFFFF;
  --homepage-shell: #F7F8FB;
  --homepage-gradient-start: #E4ECFF;
  --homepage-gradient-end: #FCE7F3;
}

/* Base Styles */
.modern-page {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--modern-bg-primary);
  color: var(--modern-text-primary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modern-page h1,
.modern-page h2,
.modern-page h3,
.modern-page h4 {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.modern-page h1 {
  font-size: clamp(48px, 6vw, 72px);
}

.modern-page h2 {
  font-size: clamp(36px, 5vw, 56px);
}

.modern-page h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.modern-page p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.modern-page a {
  color: var(--modern-accent-red);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.modern-page a:hover {
  opacity: 0.8;
}

/* Container */
.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--modern-spacing-unit) * 3);
}

/* Hero Section */
.modern-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modern-bg-secondary);
  overflow: hidden;
  padding: calc(var(--modern-spacing-unit) * 12) 0;
}

.modern-abstract-shape {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(193, 39, 45, 0.08), transparent 70%);
  top: -400px;
  right: -200px;
  animation: pulse 8s ease-in-out infinite;
}

.modern-shape-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(193, 39, 45, 0.12), transparent 70%);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.modern-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 calc(var(--modern-spacing-unit) * 3);
  text-align: center;
}

.modern-hero-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--modern-accent-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: calc(var(--modern-spacing-unit) * 4);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.modern-hero-heading {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
  color: var(--modern-text-primary);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.modern-hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--modern-text-secondary);
  margin: 0 auto calc(var(--modern-spacing-unit) * 5) auto;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

/* Section */
.modern-section {
  padding: calc(var(--modern-spacing-unit) * 15) 0;
  background: var(--modern-bg-primary);
}

.modern-section.alt {
  background: var(--modern-bg-secondary);
}

.modern-section-gray {
  background: var(--modern-bg-primary);
}

.modern-section-white {
  background: var(--modern-bg-secondary);
}

.modern-section-heading {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
  color: var(--modern-text-primary);
}

.modern-section-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--modern-text-secondary);
  margin-bottom: calc(var(--modern-spacing-unit) * 6);
  max-width: 800px;
}

/* Split Layout */
.modern-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--modern-spacing-unit) * 8);
  align-items: center;
}

.modern-split-content h3 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
}

.modern-split-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--modern-text-secondary);
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
}

.modern-split-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.modern-split-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats Grid */
.modern-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--modern-spacing-unit) * 4);
  margin-top: calc(var(--modern-spacing-unit) * 6);
}

.modern-stat-card {
  text-align: center;
  padding: calc(var(--modern-spacing-unit) * 4);
}

.modern-stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--modern-accent-red);
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
  font-family: 'Space Grotesk', sans-serif;
}

.modern-stat-label {
  font-size: 16px;
  color: var(--modern-text-secondary);
  line-height: 1.5;
}

/* Values List */
.modern-values-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--modern-spacing-unit) * 4);
  margin-top: calc(var(--modern-spacing-unit) * 6);
}

.modern-value-item {
  display: flex;
  gap: calc(var(--modern-spacing-unit) * 4);
  padding: calc(var(--modern-spacing-unit) * 4);
  border-radius: 12px;
  background: var(--modern-bg-secondary);
  border: 1px solid var(--modern-gray-light);
}

.modern-value-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--modern-accent-red);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
  line-height: 1;
}

.modern-value-content h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
  color: var(--modern-text-primary);
}

.modern-value-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--modern-text-secondary);
  margin: 0;
}

/* Team Grid */
.modern-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--modern-spacing-unit) * 4);
  margin-top: calc(var(--modern-spacing-unit) * 6);
}

.modern-team-card {
  background: var(--modern-bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--modern-gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.modern-team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.modern-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-team-info {
  padding: calc(var(--modern-spacing-unit) * 3);
}

.modern-team-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: calc(var(--modern-spacing-unit) * 1);
  color: var(--modern-text-primary);
}

.modern-team-role {
  font-size: 14px;
  color: var(--modern-text-secondary);
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
}

.modern-team-social {
  display: flex;
  gap: calc(var(--modern-spacing-unit) * 2);
}

.modern-team-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--modern-bg-primary);
  color: var(--modern-text-secondary);
  transition: all 0.3s ease;
}

.modern-team-social a:hover {
  background: var(--modern-accent-red);
  color: white;
}

.modern-team-social svg {
  width: 16px;
  height: 16px;
}

/* Global Grid */
.modern-global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--modern-spacing-unit) * 4);
  margin-top: calc(var(--modern-spacing-unit) * 6);
}

.modern-global-card {
  background: var(--modern-bg-secondary);
  border-radius: 16px;
  padding: calc(var(--modern-spacing-unit) * 5);
  text-align: center;
  border: 1px solid var(--modern-gray-light);
}

.modern-global-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--modern-accent-red);
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
  font-family: 'Space Grotesk', sans-serif;
}

.modern-global-label {
  font-size: 16px;
  line-height: 1.5;
  color: var(--modern-text-secondary);
}

/* Contact Form */
.modern-contact-form {
  width: 100%;
}

.modern-contact-form input,
.modern-contact-form textarea,
.modern-contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--modern-gray-light);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus,
.modern-contact-form select:focus {
  border-color: var(--modern-accent-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

/* Service Grid */
.modern-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: calc(var(--modern-spacing-unit) * 4);
  max-width: 1200px;
  margin: 0 auto;
}

.modern-service-card {
  background: var(--modern-bg-secondary);
  border-radius: 16px;
  padding: calc(var(--modern-spacing-unit) * 5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--modern-gray-light);
}

.modern-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.modern-service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
  color: var(--modern-accent-red);
}

.modern-service-title {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
  color: var(--modern-text-primary);
}

.modern-service-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--modern-text-secondary);
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
}

.modern-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--modern-spacing-unit) * 1);
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
}

.modern-service-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(193, 39, 45, 0.1);
  color: var(--modern-accent-red);
  border-radius: 20px;
}

.modern-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--modern-accent-red);
  transition: gap 0.3s ease;
}

.modern-service-link:hover {
  gap: 12px;
}

.modern-service-link svg {
  width: 20px;
  height: 20px;
}

/* Buttons - Updated to ChatGPT-style */
.modern-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #2E2E2E;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  min-width: 160px;
}

.modern-button:hover {
  background: #F5F5F5;
  color: #2E2E2E;
  border-color: #EAEAEA;
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.3);
  transform: translateY(-1px);
}

/* Homepage: use the same button styling as service pages; only adjust font color */
.homepage-std-button,
.homepage-std-button:hover {
  color: var(--modern-accent-red);
}

.modern-button-primary {
  background: #FFFFFF;
  color: #2E2E2E;
  border-color: #EAEAEA;
}

.modern-button-primary:hover {
  background: #F5F5F5;
  color: #2E2E2E;
  border-color: #EAEAEA;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.35);
}

.modern-button-secondary {
  background: #FFFFFF;
  color: #2E2E2E;
  border: 1px solid #EAEAEA;
}

.modern-button-secondary:hover {
  background: #F5F5F5;
  color: #2E2E2E;
  border-color: #EAEAEA;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.35);
}

.modern-button-icon {
  width: 20px;
  height: 20px;
}

/* CTA Section */
.modern-cta-section {
  background: var(--modern-text-primary);
  color: white;
  text-align: center;
  padding: calc(var(--modern-spacing-unit) * 12) calc(var(--modern-spacing-unit) * 3);
}

.modern-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.modern-cta-heading {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: calc(var(--modern-spacing-unit) * 3);
  color: white;
}

.modern-cta-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: calc(var(--modern-spacing-unit) * 5);
}

/* Button Container */
.modern-button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animation Classes */
.modern-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.modern-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.modern-delay-1 {
  animation-delay: 0.2s;
}

.modern-delay-2 {
  animation-delay: 0.4s;
}

/* Section Label */
.modern-section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--modern-accent-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: calc(var(--modern-spacing-unit) * 2);
  display: block;
}

.modern-cta-section .modern-section-label {
  color: rgba(193, 39, 45, 0.8);
}

/* Glassmorphic Link (for service cards) */
.modern-glass-link {
  background: rgba(255, 255, 255, 0.2);
  color: #C1272D;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  align-self: flex-start;
}

.modern-service-card:hover .modern-glass-link {
  opacity: 1;
  transform: translateY(0);
}

.modern-glass-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  gap: 0.75rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .modern-services-grid,
  .modern-stats-grid,
  .modern-team-grid,
  .modern-global-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-split-layout {
    grid-template-columns: 1fr;
    gap: calc(var(--modern-spacing-unit) * 4);
  }
  
  .modern-value-item {
    flex-direction: column;
    gap: calc(var(--modern-spacing-unit) * 2);
  }
  
  .modern-hero {
    min-height: 60vh;
    padding: calc(var(--modern-spacing-unit) * 8) 0;
  }
  
  .modern-section {
    padding: calc(var(--modern-spacing-unit) * 8) 0;
  }
  
  .modern-hero-heading {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .modern-section-heading {
    font-size: clamp(28px, 6vw, 36px);
  }
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */

/* Base glass effect */
.glass-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2rem;
}

/* Glassmorphic pill/tag */
.glass-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  font-size: 14px;
  color: #0A0A0A;
}

/* Glass effect on dark backgrounds */
.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
}

/* Gradient card base (for use with gradient backgrounds) */
.modern-gradient-card {
  background-size: cover;
  background-position: center;
  border: none;
  padding: 4rem 2rem 2rem 2rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-gradient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Glass stat on gradient cards */
.modern-gradient-card .glass-stat {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  font-size: 14px;
  color: #0A0A0A;
  margin-top: 1rem;
}

/* ============================================
   MODERN NAVIGATION - OpenAI Style
   ============================================ */

/* Top Navigation Bar */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-bottom: 1px solid #EAEAEA;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav-header {
  max-width: 100%;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modern-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.modern-nav-logo-img {
  height: 32px;
  width: auto;
}

.modern-nav-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.modern-nav-toggle:hover {
  background-color: #F5F5F5;
}

.modern-nav-toggle-icon {
  width: 24px;
  height: 2px;
  background-color: #0A0A0A;
  position: relative;
  display: block;
  transition: background-color 0.3s ease;
}

.modern-nav-toggle-icon::before,
.modern-nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #0A0A0A;
  left: 0;
  transition: transform 0.3s ease;
}

.modern-nav-toggle-icon::before {
  top: -8px;
}

.modern-nav-toggle-icon::after {
  top: 8px;
}

/* Sidebar active state - animate toggle icon to X */
body.modern-sidebar-open .modern-nav-toggle-icon {
  background-color: transparent;
}

body.modern-sidebar-open .modern-nav-toggle-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

body.modern-sidebar-open .modern-nav-toggle-icon::after {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Slide-out Sidebar */
.modern-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #C1272D;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.modern-sidebar-open .modern-sidebar {
  right: 0;
}

/* Push content when sidebar opens */
body.modern-sidebar-open .modern-page {
  transform: translateX(-300px);
}

/* Keep navigation bar fixed in place */
body.modern-sidebar-open .modern-nav {
  transform: translateX(0);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--modern-text-secondary);
}

.language-switcher-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
}

.language-switcher-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--modern-gray-light);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.35rem 1.75rem 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--modern-text-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.65rem;
}

.language-switcher-select:focus {
  outline: none;
  border-color: var(--modern-accent-red);
  box-shadow: 0 0 0 2px rgba(193, 39, 45, 0.1);
}

.language-switcher[data-language-theme="dark"] {
  color: rgba(255, 255, 255, 0.85);
}

.language-switcher[data-language-theme="dark"] .language-switcher-label {
  color: rgba(255, 255, 255, 0.85);
}

.language-switcher[data-language-theme="dark"] .language-switcher-select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.language-switcher[data-language-theme="dark"] .language-switcher-select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .language-switcher-label {
    display: none;
  }

  .language-switcher-select {
    padding-right: 1.35rem;
  }
}


.modern-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 60px;
  min-height: 60px;
}

.modern-sidebar-logo {
  display: flex;
  align-items: center;
}

.modern-sidebar-logo-img {
  height: 32px;
  width: auto;
}

.modern-sidebar-close {
  background: none;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.modern-sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modern-sidebar-close svg {
  width: 20px;
  height: 20px;
}

.modern-sidebar-content {
  flex: 1;
  padding: 2rem 0;
  overflow-y: auto;
  display: block !important;
  visibility: visible !important;
}

.modern-sidebar-section {
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  display: block !important;
  visibility: visible !important;
}

.modern-sidebar-section-label {
  display: none !important;
}

.modern-sidebar-links {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  visibility: visible !important;
}

.modern-sidebar-link {
  color: white !important;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  visibility: visible !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border-bottom: none;
  position: relative;
}

.modern-sidebar-link::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  font-size: 14px;
  margin-left: 0.5rem;
}

.modern-sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modern-sidebar-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.modern-sidebar-footer {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modern-sidebar-contact {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modern-sidebar-contact:hover {
  opacity: 0.9;
}

/* Sidebar Overlay - Hidden, no dark backdrop */
.modern-sidebar-overlay {
  display: none;
}

/* Ensure page content transitions smoothly */
.modern-page {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-sidebar {
    width: 280px;
    right: -280px;
  }
  
  body.modern-sidebar-open .modern-page {
    transform: translateX(-280px);
  }
  
  body.modern-sidebar-open .modern-nav {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .modern-sidebar {
    width: 100%;
    right: -100%;
  }
  
  body.modern-sidebar-open .modern-page {
    transform: translateX(0);
  }
  
  body.modern-sidebar-open .modern-nav {
    transform: translateX(0);
  }
}

/* ============================================
   RELATED RESOURCES SECTION - OpenAI Style
   ============================================ */

.related-resources-section {
  background: #FFFFFF;
  padding: 5rem 1.5rem;
  color: #0A0A0A;
}

.related-resources-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.related-resources-header h2 {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #0A0A0A;
  margin: 0;
}

.related-resources-view-all {
  color: #2E2E2E;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-resources-view-all:hover {
  color: #0A0A0A;
  opacity: 1;
}

.related-resources-view-all::after {
  content: '→';
  font-size: 18px;
}

.related-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.resource-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.resource-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Gradient variations inspired by OpenAI */
.resource-card[data-gradient="1"] .resource-card-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.resource-card[data-gradient="2"] .resource-card-gradient {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resource-card[data-gradient="3"] .resource-card-gradient {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.resource-card[data-gradient="4"] .resource-card-gradient {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.resource-card[data-gradient="5"] .resource-card-gradient {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.resource-card[data-gradient="6"] .resource-card-gradient {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.resource-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
}

.resource-card-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  margin-bottom: auto;
  width: fit-content;
}

.resource-card-title {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin: 3rem 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.resource-card-meta span {
  display: flex;
  align-items: center;
}

.resource-card-meta span:not(:last-child)::after {
  content: '•';
  margin-left: 1rem;
  opacity: 0.5;
}

/* Responsive adjustments for Related Resources */
@media (max-width: 1024px) {
  .related-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-resources-section {
    padding: 4rem 1rem;
  }
  
  .related-resources-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .related-resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .resource-card {
    min-height: 240px;
  }
  
  .resource-card-content {
    min-height: 240px;
    padding: 1.5rem;
  }
  
  .resource-card-title {
    font-size: 1.1rem;
    margin: 2rem 0 0.75rem 0;
  }
}

/* ============================================
   OPENAI-STYLE FOOTER
   ============================================ */

.openai-footer {
  background: #FFFFFF;
  border-top: 1px solid #EAEAEA;
  padding: 4rem 2rem 2rem 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.openai-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.openai-footer-column {
  display: flex;
  flex-direction: column;
}

.openai-footer-heading {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.openai-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.openai-footer-link {
  color: #0A0A0A;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.openai-footer-link:hover {
  opacity: 0.6;
}

/* Footer Bottom */
.openai-footer-bottom {
  border-top: 1px solid #EAEAEA;
  padding-top: 2rem;
}

.openai-footer-bottom-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.openai-footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.openai-social-link {
  color: #666;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.openai-social-link:hover {
  color: #0A0A0A;
}

.openai-footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 13px;
}

.openai-footer-copyright {
  color: #666;
}

.openai-footer-legal-link {
  color: #0A0A0A;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.openai-footer-legal-link:hover {
  opacity: 0.6;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .openai-footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .openai-footer {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }
  
  .openai-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .openai-footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .openai-footer-legal {
    flex-wrap: wrap;
  }
}

/* ============================================
   MINIMAL FOOTER
   ============================================ */

.minimal-footer {
  background: #FFFFFF;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid #E5E5E5;
}

.minimal-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.minimal-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.minimal-footer-column {
  display: flex;
  flex-direction: column;
}

.minimal-footer-heading {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #D1D5DB !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 1rem 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.minimal-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.minimal-footer-link {
  font-size: 14px;
  color: #0A0A0A;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.2s ease;
}

.minimal-footer-link:hover {
  opacity: 0.6;
}

.minimal-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #E5E5E5;
}

/* ============================================
   HOMEPAGE - OpenAI Inspired Layout
   ============================================ */

.homepage {
  background: var(--homepage-shell);
  color: var(--homepage-text);
}

.homepage section {
  padding: clamp(8.75rem, 12vw, 11rem) 0;
}

.section-shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(40px, 5vw, 48px);
  margin-bottom: 1rem;
  color: var(--homepage-text);
}

.section-heading p {
  color: var(--homepage-muted);
  font-size: 1.125rem;
  margin: 0;
}

/* Hero */
.home-hero {
  position: relative;
  background: var(--homepage-surface);
}

.home-hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}

.homepage .home-hero-inner {
  gap: clamp(2rem, 5vw, 4rem);
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.homepage .home-hero-content {
  background: transparent !important;
  padding: 0 !important;
  max-width: 520px;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  box-shadow: none !important;
  border: none !important;
  min-height: auto !important;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--homepage-muted);
}

.home-hero-title {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--homepage-text);
}

.home-hero-description {
  font-size: 1.2rem;
  color: var(--homepage-muted);
  margin: 0;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button.primary {
  background: var(--homepage-text);
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 16, 32, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--homepage-text);
  border-color: var(--homepage-border);
}

.button.tertiary {
  padding: 0.25rem 0;
  border: none;
  color: var(--homepage-text);
  font-weight: 600;
}

.button.tertiary::after {
  content: '→';
  margin-left: 0.35rem;
}

.home-hero-trustline {
  color: var(--homepage-muted);
  font-size: 0.95rem;
  margin: 0;
}

.home-hero-atmosphere {
  flex: 1 1 320px;
  max-width: 420px;
  margin-left: auto;
  opacity: 0.9;
}

.home-hero-atmosphere svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-ambient-line {
  stroke: rgba(11,16,32,0.18);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.hero-ambient-dot {
  fill: rgba(11,16,32,0.4);
}

/* LLM Proof */
.llm-proof {
  background: var(--homepage-surface);
}

.llm-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: flex-start;
}

.homepage .llm-grid {
  grid-template-columns: minmax(0, 720px);
}

.llm-copy p {
  color: var(--homepage-muted);
}

.llm-bullets {
  padding-left: 1rem;
  margin: 1.5rem 0 1.25rem 0;
  color: var(--homepage-text);
  display: grid;
  gap: 0.75rem;
}

.llm-bullets li {
  list-style: disc;
  margin-left: 1rem;
}

.llm-atmosphere {
  opacity: 0.85;
}

.llm-atmosphere svg {
  width: 100%;
  height: auto;
  display: block;
}

.llm-dots circle {
  fill: rgba(11,16,32,0.35);
}

.llm-ambient-line {
  stroke: rgba(11,16,32,0.18);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* Approach */
.approach {
  background: var(--homepage-shell);
}

.approach-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

@media (max-width: 1100px) {
  .approach-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .approach-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.approach-card {
  border-radius: 12px;
  border: 1px solid rgba(11,16,32,0.08);
  padding: 2.75rem 2.75rem 4.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  min-height: 480px;
  box-shadow: 0 32px 68px rgba(15,23,42,0.08);
}

.approach-card header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.approach-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,16,32,0.6);
  margin: 0;
  font-weight: 600;
}

.approach-placeholder {
  flex: 1;
  border-radius: 12px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.approach-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Approach SVG animation */
.approach-svg--discovery .disc-glow {
  transform-origin: 110px 78px;
  transform-box: fill-box;
  animation: discGlowPulse 9s ease-in-out infinite;
}

.approach-svg--discovery .disc-dots circle {
  animation: discPulse 6s ease-in-out infinite;
}

.approach-svg--discovery .disc-dots circle:nth-child(2) { animation-delay: 0.4s; }
.approach-svg--discovery .disc-dots circle:nth-child(3) { animation-delay: 0.8s; }
.approach-svg--discovery .disc-dots circle:nth-child(4) { animation-delay: 1.2s; }

.approach-svg--analysis .analysis-scanbar {
  animation: analysisScan 6.5s ease-in-out infinite;
}

.approach-svg--analysis .analysis-lens {
  transform-origin: 160px 96px;
  transform-box: fill-box;
  animation: lensFloat 7.5s ease-in-out infinite;
}


@keyframes discGlowPulse {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
}

@keyframes discPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.08); }
}

@keyframes analysisScan {
  0% { transform: translateX(-10px); opacity: 0; }
  15% { opacity: 0.06; }
  50% { transform: translateX(260px); opacity: 0.06; }
  85% { opacity: 0.02; }
  100% { transform: translateX(280px); opacity: 0; }
}

@keyframes lensFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-2px, -2px) scale(1.02); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .approach-svg--discovery .disc-glow,
  .approach-svg--discovery .disc-dots circle,
  .approach-svg--analysis .analysis-scanbar,
  .approach-svg--analysis .analysis-lens {
    animation: none !important;
  }
}

.approach-card-footer {
  position: absolute;
  bottom: 1.6rem;
  right: 1.6rem;
}

.approach-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(11,16,32,0.08);
  background: #F2F4F8;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--homepage-text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 18px 34px rgba(15,23,42,0.14);
}

.approach-plus-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.approach-plus-icon path {
  stroke: rgba(11,16,32,0.75);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.approach-plus:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 55px rgba(15,23,42,0.18);
}

.approach-plus:focus-visible {
  outline: 2px solid rgba(193,39,45,0.4);
  outline-offset: 2px;
}

.approach-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.approach-modal[hidden] {
  display: none;
}

.approach-modal.is-visible {
  opacity: 1;
  pointer-events: all;
}

.approach-modal-backdrop {
  position: absolute;
  inset: 0;
}

.approach-modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 4rem));
  padding: clamp(1.5rem, 4vw, 3rem);
}

.approach-modal-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,16,32,0.55);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.approach-modal-content h3 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 1.25rem;
}

.approach-modal-content p {
  margin: 0;
  color: rgba(11,16,32,0.7);
  font-size: 1.125rem;
  max-width: 68ch;
}

.approach-modal-list {
  margin: 1.25rem 0 0 0;
  padding-left: 1.2rem;
  color: rgba(11,16,32,0.7);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 72ch;
}

.approach-modal-list li {
  line-height: 1.6;
}

.approach-modal-x {
  position: fixed;
  top: calc(60px + 16px + env(safe-area-inset-top));
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--homepage-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.approach-modal-x:focus-visible {
  outline: 2px solid rgba(193,39,45,0.4);
  outline-offset: 2px;
}

/* Services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

@media (max-width: 1100px) {
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .service-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* The gradient tile IS the card (copy/button sit below it) */
.service-tile {
  border-radius: 12px;
  border: 1px solid rgba(11,16,32,0.10);
  height: 240px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15,23,42,0.10);
}

.service-media--mss {
  /* Provided image asset */
  background-color: #F3F4F6;
  background-image: url("/images/BGManaged%20Security%20Services.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.service-media--offensive {
  /* Provided image asset */
  background-color: #F3F4F6;
  background-image: url("/images/BGOffensive%20Security.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.service-media--advisory {
  /* Provided image asset */
  background-color: #F3F4F6;
  background-image: url("/images/BGAdvisory%20and%20Assurance.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.service-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.55), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.35), transparent 52%);
  opacity: 0.28;
  pointer-events: none;
}

.service-media-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(11,16,32,0.10);
  border-radius: 14px;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  color: var(--homepage-text);
  box-shadow: 0 18px 45px rgba(15,23,42,0.10);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  white-space: nowrap;
}

.service-item-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-item-body p {
  margin: 0;
  color: rgba(11,16,32,0.75);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7;
}

/* Keep CTAs aligned without forcing copy to be unnaturally long */
@media (min-width: 900px) {
  .service-item-body p {
    min-height: calc(1.7em * 4);
  }
}


/* Services modal (matches approach overlay style) */
.services-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.services-modal[hidden] {
  display: none;
}

.services-modal.is-visible {
  opacity: 1;
  pointer-events: all;
}

.services-modal-backdrop {
  position: absolute;
  inset: 0;
}

.services-modal-x {
  position: fixed;
  top: calc(60px + 16px + env(safe-area-inset-top));
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--homepage-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.services-modal-x:focus-visible {
  outline: 2px solid rgba(193,39,45,0.4);
  outline-offset: 2px;
}

.services-modal-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 4rem));
  padding: clamp(1.5rem, 4vw, 3rem);
}

.services-modal-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,16,32,0.55);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.services-modal-content h3 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 1.25rem;
}

.services-modal-content p {
  margin: 0;
  color: rgba(11,16,32,0.7);
  font-size: 1.125rem;
  max-width: 70ch;
}

.services-modal-list {
  margin: 1.25rem 0 0 0;
  padding-left: 1.2rem;
  color: rgba(11,16,32,0.7);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 72ch;
}

.services-modal-actions {
  margin-top: 1.75rem;
}


/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.industries {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,16,32,0.55);
  margin: 0 0 1rem 0;
}

/* Industries: OpenAI-style borderless tiles */
.industries-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 1100px) {
  .industries-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .industries-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.industry-tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.industry-image {
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  aspect-ratio: 16 / 10;
  position: relative;
}

.industry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.industry-icon-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  line-height: 0;
}

.industry-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  color: rgba(11,16,32,0.55) !important;
  filter: none;
}

.industry-meta h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem 0;
  color: var(--homepage-text);
}

.industry-meta p {
  margin: 0;
  color: rgba(11,16,32,0.72);
  max-width: 52ch;
}

.industry-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: rgba(11,16,32,0.7);
  font-weight: 600;
  text-decoration: none;
}

.industry-learn:hover {
  opacity: 0.8;
}

.industry-learn:focus-visible {
  outline: 2px solid rgba(193,39,45,0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Outcomes */
.outcomes {
  background: var(--homepage-shell);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.outcomes-visual {
  margin-bottom: 2.5rem;
}

.svg-window {
  background: linear-gradient(160deg, rgba(228,236,255,0.65), rgba(252,231,243,0.65));
  border-radius: 24px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  position: relative;
}

.svg-window-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.svg-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(11,16,32,0.2);
}

.outcome-connector {
  stroke: rgba(11,16,32,0.35);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.outcome-arrow {
  fill: rgba(11,16,32,0.45);
}

.outcome-dots-left circle,
.outcome-dots-right circle {
  fill: rgba(11,16,32,0.45);
}

.outcome-icon-outline {
  stroke: rgba(11,16,32,0.22);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outcome-icon-line {
  stroke: rgba(11,16,32,0.22);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outcome-icon-node {
  fill: rgba(11,16,32,0.28);
}

.outcome-icon {
  opacity: 0.9;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.outcome-card {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--homepage-surface);
  border: 1px solid var(--homepage-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outcome-card p {
  margin: 0;
  color: var(--homepage-muted);
}

/* Outcomes: match Industries tile layout (no buttons) */
.outcomes-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 1100px) {
  .outcomes-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .outcomes-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.outcome-tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.outcome-image {
  border-radius: 8px;
  overflow: hidden;
  background: #F3F4F6;
  aspect-ratio: 16 / 10;
}

.outcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.outcome-meta h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem 0;
  color: var(--homepage-text);
}

.outcome-meta p {
  margin: 0;
  color: rgba(11,16,32,0.72);
  max-width: 52ch;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  position: relative;
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: auto;
  /* override legacy homepage-content-fix blog-card demo styles */
  aspect-ratio: auto;
  overflow: visible;
  box-shadow: none;
  justify-content: flex-start;
}

.blog-card-media {
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  aspect-ratio: 1 / 1;
  box-shadow: none;
}

/* Ensure legacy demo styles can't bleed into homepage blog preview */
.homepage .blog-preview .blog-card {
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  margin: 0;
  color: var(--homepage-text);
}

.blog-card p {
  color: rgba(11,16,32,0.75);
  margin: 0;
}

.blog-meta {
  font-size: 0.95rem;
  color: rgba(11,16,32,0.65);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.blog-category {
  font-weight: 600;
  color: rgba(11,16,32,0.75);
}

.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 1024px) {
  .home-hero-inner {
    flex-direction: column;
  }

  .home-hero-atmosphere {
    order: -1;
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .home-hero-actions {
    flex-direction: column;
  }

  .section-shell {
    width: calc(100% - 1.5rem);
  }
}

.minimal-footer-social {
  display: flex;
  gap: 1rem;
}

.minimal-footer-social-language {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-language-selector {
  position: relative;
}

.footer-language-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13px;
  font-weight: 500;
  padding: 0.4rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-language-trigger svg {
  width: 14px;
  height: 14px;
  color: #6B7280;
}

.footer-language-trigger-label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-language-selector.is-open .footer-language-trigger {
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.footer-language-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 260px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 0.4rem 0;
  display: none;
  z-index: 25;
}

.footer-language-selector.is-open .footer-language-panel {
  display: block;
}

.footer-language-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.6rem 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background 0.15s ease;
}

.footer-language-option:hover {
  background: #F9FAFB;
}

.footer-language-option.is-active {
  background: #F3F4F6;
}

.footer-language-name {
  font-size: 13px;
  color: #0F172A;
  font-weight: 500;
}

.footer-language-region {
  font-size: 11px;
  color: #6B7280;
}

.minimal-social-link {
  color: #6B7280;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimal-social-link:hover {
  opacity: 0.6;
}

.minimal-footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.minimal-footer-copyright {
  font-size: 13px;
  color: #6B7280;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.minimal-footer-legal-link {
  font-size: 13px;
  color: #6B7280;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.2s ease;
}

.minimal-footer-legal-link:hover {
  opacity: 0.6;
}

/* Responsive Minimal Footer */
@media (max-width: 1024px) {
  .minimal-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .minimal-footer {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }
  
  .minimal-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .minimal-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .minimal-footer-legal {
    flex-wrap: wrap;
  }

  .footer-language-panel {
    top: calc(100% + 0.5rem);
    bottom: auto;
  }
}
