/* styles.css - Main styles for approof.no */

/* Import shared design tokens */
@import url('design-tokens.css');

/* ================================
   Website-specific Custom Properties
   ================================ */
:root {
  /* Gradient extensions for website */
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);
  
  /* 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;
  --text-7xl: 4.5rem;
  
  /* Additional spacing */
  --space-5: 1.25rem;
  --space-10: 2.5rem;
  --space-20: 5rem;
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

/* ================================
   Reset & Base Styles
   ================================ */
*,
*::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-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}

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

/* ================================
   Layout Utilities
   ================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
}

/* ================================
   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-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-brand-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-gray-800);
  border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn.success {
  background: #10B981;
}

/* ================================
   Header & Navigation
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

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

.logo img {
  height: 36px;
  filter: brightness(0) invert(1); /* white on transparent hero */
  transition: filter var(--transition-base);
}

.header.scrolled .logo img {
  filter: none; /* colored logo on white background */
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-900);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: none;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.nav-links a {
  font-weight: 500;
  color: var(--color-gray-600);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-gray-900);
}

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

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

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.lang-btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-white);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-sm);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-link {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gray-800);
}

.mobile-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.btn-full {
  width: 100%;
}

@media (max-width: 968px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* ================================
   Hero Section
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Hero Layout Update */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
}

@media (max-width: 968px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none; /* Optional: Hide on mobile or adjust size */
  }
  
  .hero-features, .hero-ctas {
    justify-content: center;
  }
}

/* Dynamic Figure Styling */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}

.shield-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Shield */
.shield-core {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

/* Orbits */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 280px;
  height: 280px;
  animation: spin 20s linear infinite;
}

.orbit-inner {
  width: 200px;
  height: 200px;
  animation: spin 15s linear infinite reverse;
  border-color: rgba(255, 107, 53, 0.1);
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 5s ease-in-out infinite;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.card-1 {
  top: 20%;
  right: 0;
  animation-delay: 0.5s;
}

.card-2 {
  bottom: 20%;
  left: 0;
  animation-delay: 1s;
}

.card-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 12px;
}

.card-line {
  width: 40px;
  height: 4px;
  background: var(--color-gray-100);
  border-radius: 2px;
  margin-bottom: 4px;
}

.card-check svg {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawCheck 2s ease forwards infinite;
  animation-delay: 2s;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drawCheck {
  0% { stroke-dashoffset: 20; opacity: 0; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Hero Layout Update */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
}

@media (max-width: 968px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none; /* Optional: Hide on mobile or adjust size */
  }
  
  .hero-features, .hero-ctas {
    justify-content: center;
  }
}

/* Dynamic Figure Styling */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}

.shield-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Shield */
.shield-core {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

/* Orbits */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 280px;
  height: 280px;
  animation: spin 20s linear infinite;
}

.orbit-inner {
  width: 200px;
  height: 200px;
  animation: spin 15s linear infinite reverse;
  border-color: rgba(255, 107, 53, 0.1);
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 5s ease-in-out infinite;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.card-1 {
  top: 20%;
  right: 0;
  animation-delay: 0.5s;
}

.card-2 {
  bottom: 20%;
  left: 0;
  animation-delay: 1s;
}

.card-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 12px;
}

.card-line {
  width: 40px;
  height: 4px;
  background: var(--color-gray-100);
  border-radius: 2px;
}

/* Animations */
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Hero Background: Purple (top-left) to Orange (bottom-right) */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(255, 107, 53, 0.20) 100%);
  z-index: -2;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.20) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-background::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-content-centered {
  text-align: center;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-sm);
}

.hero-tagline-badge {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline-text {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  font-weight: 500;
}

.hero h1 {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  max-width: 650px;
  line-height: 1.7;
}

.hero-content-centered .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.hero-trust-badge .trust-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-content-centered .hero-ctas {
  justify-content: center;
}

/* Hero Feature Pills - Inspired by Fronted */
.hero-features {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-content-centered .hero-features {
  justify-content: center;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: var(--text-base);
}

.hero-feature-pill svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

/* Trusted By Section */
.trusted-section {
  padding: var(--space-16) 0;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-100);
}

.trusted-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-8);
  font-weight: 600;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trusted-logo-placeholder {
  padding: var(--space-4) var(--space-6);
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Logo image styling */
.trusted-logos img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all var(--transition-base);
}

.trusted-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .trusted-logos {
    gap: var(--space-6);
  }
  
  .hero-features {
    gap: var(--space-4);
  }
  
  .hero-feature-pill {
    font-size: var(--text-sm);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .hero-description {
    font-size: var(--text-lg);
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ================================
   Services Section
   ================================ */
.services {
  background: var(--color-white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

/* Services Intro Layout */
.services-intro {
  margin-bottom: var(--space-12);
}

.services-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.intro-headline {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-subtext {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* Nordic Hub Animation */
.services-intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.nordic-hub-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.hub-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-line {
  stroke: rgba(139, 92, 246, 0.3);
  stroke-width: 2;
  stroke-dasharray: 6;
  animation: dash 1s linear infinite;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hub-core {
  width: 20px;
  height: 20px;
  background: var(--gradient-brand);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  z-index: 2;
  border: 2px solid rgba(139, 92, 246, 0.1);
  transition: transform 0.3s ease;
}

.node:hover {
  transform: scale(1.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  cursor: default;
}

/* Node Positions */
.node-no { top: 80px; left: 50px; }
.node-se { top: 80px; left: 210px; }
.node-dk { top: 210px; left: 110px; }
.node-fi { top: 30px; left: 230px; }

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

@media (max-width: 768px) {
  .services-intro-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .services-intro-visual {
    margin-top: var(--space-8);
    transform: scale(0.9);
  }
  
  .intro-headline {
    font-size: var(--text-2xl);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

/* Service Price Highlight */
.service-price-highlight {
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: center;
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.price-amount {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.price-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  font-weight: 500;
}

/* Service Features List */
.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

.service-features .check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-primary);
}

.service-price {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Other Checks Section */
.other-checks-section {
  display: none;
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 2px solid var(--color-gray-200);
}

.other-checks-title {
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-10);
  color: var(--color-gray-800);
}

.other-checks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1200px) {
  .other-checks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .other-checks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .other-checks-grid {
    grid-template-columns: 1fr;
  }
}

.other-check-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.other-check-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.3);
}

.other-check-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-gray-900);
}

.other-check-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.other-check-price {
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.other-price-amount {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.other-price-label {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  font-weight: 500;
}

/* Stagger animations for other checks */
.other-checks-grid .other-check-card:nth-child(1) { transition-delay: 0ms; }
.other-checks-grid .other-check-card:nth-child(2) { transition-delay: 50ms; }
.other-checks-grid .other-check-card:nth-child(3) { transition-delay: 100ms; }
.other-checks-grid .other-check-card:nth-child(4) { transition-delay: 150ms; }
.other-checks-grid .other-check-card:nth-child(5) { transition-delay: 200ms; }

/* ================================
   Calculator Section
   ================================ */
.calculator-section,
.calculator-wrapper,
.calculator-header,
.calculator-body,
.calculator-inputs,
.calculator-checks,
.calculator-results,
.calculator-cta,
.range-wrapper {
  display: none;
}

/* ================================
   Why Section
   ================================ */
.why-section {
  background: var(--color-gray-50);
}

/* How It Works */
.how-it-works {
  margin-bottom: var(--space-20);
}

.how-it-works h3 {
  text-align: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-12);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 0;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .steps-grid::before {
    display: none;
  }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.step-card h4 {
  margin-bottom: var(--space-2);
}

.step-card p {
  color: var(--color-gray-600);
  max-width: 280px;
  margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-20);
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

.benefit-card h4 {
  margin-bottom: var(--space-2);
}

.benefit-card p {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

/* Testimonials */
.testimonials {
  padding: var(--space-16);
  background: var(--gradient-subtle);
  border-radius: var(--radius-2xl);
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials {
    padding: var(--space-8);
  }
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  margin-bottom: var(--space-5);
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: var(--space-2);
}

.testimonial-quote p {
  color: var(--color-gray-700);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-white);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  color: var(--color-gray-900);
}

.author-info span {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ================================
   Contact Section
   ================================ */
.contact {
  background: var(--color-white);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

.form-group input,
.form-group textarea {
  padding: var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 150px;
}

.contact-form .btn {
  width: 100%;
  margin-top: var(--space-4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info-block h3 {
  margin-bottom: var(--space-4);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  color: var(--color-gray-700);
}

.contact-email svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.demo-block {
  background: var(--gradient-subtle);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.demo-block h4 {
  margin-bottom: var(--space-2);
}

.demo-block p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-5);
}

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-tagline {
  max-width: 300px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .footer-tagline {
    margin: 0 auto;
  }
}

.footer-links h4 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-800);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--gradient-brand);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gray-300);
}

.social-link:hover svg {
  fill: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-800);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ================================
   Animations
   ================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 300ms; }

.steps-grid .step-card:nth-child(1) { transition-delay: 0ms; }
.steps-grid .step-card:nth-child(2) { transition-delay: 150ms; }
.steps-grid .step-card:nth-child(3) { transition-delay: 300ms; }

.benefits-grid .benefit-card:nth-child(1) { transition-delay: 0ms; }
.benefits-grid .benefit-card:nth-child(2) { transition-delay: 100ms; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 200ms; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: 300ms; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 100ms; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 200ms; }

/* Loading animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ================================
   Cookie Consent Banner
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: var(--space-6);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.cookie-banner-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  white-space: nowrap;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.cookie-learn-more {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cookie-learn-more:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: var(--space-4);
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-banner-actions .btn {
    width: 100%;
  }
  
  .cookie-learn-more {
    order: -1;
    text-align: center;
    padding: var(--space-2) 0;
  }
}

