/* CSS Variables */
:root {
  /* MetricSystems Brand Colors */
  --friendly-yellow-darker-2: #c48417;
  --friendly-yellow-darker-1: #dc941a;
  --friendly-yellow-base: #ffff4c;
  --friendly-yellow-brighter-1: #f8c060;
  --friendly-yellow-brighter-2: #fbdba4;
  --friendly-yellow-brighter-3: #fdedd1;
  --friendly-footer-brown: #2d2d2d;

  /* Core Colors */
  --primary: #2054a2;
  --primary-dark: #152238;
  --primary-light: #536c92;
  --secondary: #dc941a;
  --success: #139d82;
  --warning: #f5a51d;
  --danger: #f51d1d;
  --info: #7447b0;

  /* Primary Scale */
  --primary-900: #050e1d;
  --primary-800: #0c1729;
  --primary-700: #152238;
  --primary-600: #303e54;
  --primary-500: #536c92;
  --primary-400: #7d92b3;
  --primary-300: #bfc9d9;
  --primary-200: #dadee4;
  --primary-100: #e7e8ea;

  /* Grayscale */
  --white: #ffffff;
  --black: #000000;
  --gray-900: #1b1b1b;
  --gray-800: #2d2c2c;
  --gray-700: #5e5f62;
  --gray-600: #747a82;
  --gray-500: #9097a2;
  --gray-400: #b1b5bd;
  --gray-300: #d0d2d7;
  --gray-200: #d9dadd;
  --gray-100: #f1f2f3;
  --gray-50: #f8f9fa;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2054a2 0%, #536c92 100%);
  --gradient-secondary: linear-gradient(135deg, #dc941a 0%, #f8c060 100%);
  --gradient-text: linear-gradient(135deg, #2054a2 0%, #dc941a 100%);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 2rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Borders */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  width: 100%;
  max-width: 100vw;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  line-height: 1;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--gray-300);
  color: var(--gray-700);
  background: var(--white);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.lead {
  font-size: 1.125rem;
  font-weight: var(--font-weight-normal);
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 15, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  padding: 1rem 0;
}

.navbar-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  color: var(--gray-900);
  transition: var(--transition);
}

.header.scrolled .brand-logo {
  color: var(--white);
}

.logo-icon {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

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

.header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.header.scrolled .nav-toggle {
  color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
  margin-top: 0;
  flex: 1;
}

/* Page Banner sections */
.page-banner {
  padding: 140px 0 8rem 0;
  margin: 0 !important;
  position: relative;
  z-index: 1;
  overflow: visible;
  background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23f8f9fa'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 2;
}

.page-banner .page-banner-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
  z-index: 0;
  opacity: 0.8;
}

.page-banner .page-banner-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(32, 84, 162, 0.15) 0%,
    transparent 60%
  );
  z-index: 0;
}

.page-header {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 3.25rem !important;
  font-weight: var(--font-weight-extrabold) !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1.1 !important;
  color: var(--white) !important;
  letter-spacing: -0.02em !important;
  position: relative !important;
  z-index: 1 !important;
  width: auto !important;
  max-width: none !important;
}

.page-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, rgba(255,255,255,0.95) 100%);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(32, 84, 162, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 84, 162, 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  z-index: -2;
  opacity: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(32, 84, 162, 0.06) 0%,
    transparent 40%,
    rgba(32, 84, 162, 0.02) 100%
  );
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.dashboard-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--gray-500);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.tab.active {
  background: var(--primary);
  color: var(--white);
}

.dashboard-content {
  padding: 0;
  display: flex;
  align-items: center;
}

.visual-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.visual-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(32, 84, 162, 0.06);
  border-top: 3px solid var(--gray-300);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.visual-icon-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(32, 84, 162, 0.1);
  border-color: rgba(32, 84, 162, 0.1);
}

/* Colored top accents per icon */
.visual-icon-item:nth-child(1) { border-top-color: #dc941a; }
.visual-icon-item:nth-child(2) { border-top-color: #3b82f6; }
.visual-icon-item:nth-child(3) { border-top-color: #10b981; }
.visual-icon-item:nth-child(4) { border-top-color: #8b5cf6; }
.visual-icon-item:nth-child(5) { border-top-color: #f59e0b; }
.visual-icon-item:nth-child(6) { border-top-color: #0891b2; }

.hero-svg-icon {
  width: 52px;
  height: 52px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-icon-item:hover .hero-svg-icon {
  transform: scale(1.12);
}

.icon-label {
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-600);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.visual-icon-item:hover .icon-label {
  color: var(--gray-800);
}

.metric-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  text-align: center;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0.25rem 0;
}

.metric-change {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.metric-change.positive {
  color: var(--success);
}

.chart-area {
  height: 80px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 2px 2px 0 0;
  min-height: 10px;
}

/* Products Showcase Section */
.products-showcase {
  padding: 6rem 0 8rem;
  background: #111827;
  position: relative;
  overflow: visible;
}

/* SVG curve at top - dark shape extending into light hero above */
.products-showcase::before {
  content: '';
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23111827'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

/* SVG curve at bottom - white shape transitioning to light content below */
.products-showcase::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23f8f9fa'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

/* Services page: no curves needed (banner connects directly to dark products) */
.products-page::before {
  display: none;
}

/* Grid pattern on dark products section */
.products-showcase .container {
  position: relative;
  z-index: 1;
}

.products-showcase .section-header {
  margin-bottom: 4rem;
}

.products-showcase .section-title {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

/* Product Card Hero */
.product-card-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: clip;
}

.product-card-hero:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.product-card-hero:last-child {
  margin-bottom: 0;
}

/* Product Card Visual */
.product-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}

.product-card-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-hero:hover .product-card-glow {
  opacity: 0.5;
  transform: scale(1.15);
}

.product-energymeter .product-card-glow {
  background: #dc941a;
}

.product-watermeter .product-card-glow {
  background: #2054a2;
}

.product-forecaster .product-card-glow {
  background: #139d82;
}

.product-card-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.product-card-hero:hover .product-card-icon {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.product-card-icon img {
  border-radius: 4px;
}

/* Product Card Content */
.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.product-card-name {
  font-size: 2rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}

.product-energymeter .product-card-name {
  background: linear-gradient(135deg, #f5a51d, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-watermeter .product-card-name {
  background: linear-gradient(135deg, #4a8ade, #7db3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-forecaster .product-card-name {
  background: linear-gradient(135deg, #1cc4a0, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 500px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  transition: var(--transition);
}

.product-card-link i {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.product-card-hero:hover .product-card-link {
  color: var(--white);
}

.product-card-hero:hover .product-card-link i {
  transform: translateX(4px);
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  margin-top: 3rem;
}

.feature-section {
  margin-bottom: 4rem;
}

.section-label {
  text-align: center;
  margin-bottom: 2rem;
}

.label-text {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 2rem;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-modules,
.service-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: block;
  color: inherit;
  text-decoration: none;
}

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

.feature-card.module-link {
  cursor: pointer;
}

.feature-card.module-link:hover .feature-title {
  color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-icon i,
.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-icon img {
  border-radius: 4px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Service cards styling to distinguish from product modules */
.feature-card.service-highlight {
  border: 2px solid var(--secondary);
  background: linear-gradient(135deg, #fef7e7 0%, #fff9f0 100%);
  position: relative;
}

.feature-card.service-highlight::before {
  content: "TJÄNST";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
}

.feature-card.service-highlight .feature-icon {
  background: var(--gradient-secondary);
}

/* Modern Image Styling */
.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Showcase Section */
.image-showcase {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.showcase-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: clip;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  min-height: 300px;
}

.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.showcase-item.large {
  min-height: 350px;
}

.showcase-item.accent {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.showcase-item:hover .showcase-image {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  padding: 2rem;
  transition: var(--transition-slow);
}

.showcase-overlay h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.stats-card {
  text-align: center;
  color: white;
}

.stats-card .stat-item {
  margin-bottom: 1.5rem;
}

.stats-card .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.stats-card .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* References Page */
.references {
  margin-top: 3rem;
}

.references-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.reference-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  position: relative;
  border: 1px solid var(--gray-200);
}

.reference-card:hover {
  box-shadow: var(--shadow-lg);
}

.reference-card.featured {
  border-color: var(--gray-200);
}

.reference-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.company-name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: 0;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  font-size: 1.1rem;
}

.author-title {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.reference-content {
  line-height: 1.8;
}

.reference-content::after {
  content: "";
  display: table;
  clear: both;
}

.reference-text {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.reference-text:last-child {
  margin-bottom: 0;
}

.references-cta {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
  background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
  border-radius: var(--border-radius-xl);
  color: white;
}

.references-cta h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.references-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Reference photo floating right with text wrap */
.reference-photo-container {
  float: right;
  max-width: 250px;
  margin: 0 0 1rem 2rem;
  text-align: center;
  clear: right;
}

.reference-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 0.5rem;
}

.image-caption {
  text-align: center;
  padding: 0.25rem 0;
}

.caption-name {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.caption-title {
  display: block;
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* Simple reference author without divider */
.reference-author-simple {
  margin-top: 1.5rem;
  text-align: right;
}

.reference-author-simple .author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  font-size: 1.1rem;
  font-style: italic;
}

/* Portal Showcase - Laptop Frame */
.portal-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.laptop-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.laptop-screen {
  position: relative;
  width: 92%;
  margin: 0 auto;
  padding-bottom: 51.75%; /* 16:9 aspect ratio adjusted for 92% width */
  background: #1a1a1a;
  border-radius: 10px 10px 0 0;
  border: 10px solid #2d2d2d;
  border-bottom: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #1a1a1a,
    0 15px 40px rgba(0, 0, 0, 0.25);
}

.screenshot-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
  z-index: 0;
}

.screenshot.active {
  transform: translateX(0);
  z-index: 1;
}

.screenshot.previous {
  transform: translateX(-100%);
  z-index: 0;
}

.screenshot.next {
  transform: translateX(100%);
  z-index: 0;
}

.laptop-base {
  position: relative;
  width: 105%;
  left: 50%;
  transform: translateX(-50%);
  height: 18px;
  background: linear-gradient(to bottom, #3d3d3d 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 0 0 8px 8px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.portal-feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portal-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portal-feature-item i {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.portal-feature-item h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.portal-feature-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* Video Section */
.video-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA Section */
.cta {
  padding: var(--section-padding);
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: #2054a2;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: visible;
}

.cta::before {
  content: '';
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%232054a2'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23111827'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Page Hero - styles moved up to avoid duplication */

/* Mission Section */
.mission {
  padding: var(--section-padding);
  margin-top: 0 !important; /* Ensure no top margin */
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.value-card i {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.value-card h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Team Section */
.team {
  padding: var(--section-padding);
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: #111827;
  position: relative;
  overflow: visible;
}

.team::before {
  content: '';
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23111827'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.team::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23f8f9fa'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.team .section-title {
  color: var(--white);
}

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

.team-member {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.member-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-icon img {
  border-radius: 4px;
}

.avatar-placeholder {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
}

.member-name {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
  color: var(--white);
}

.member-role {
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.member-email a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: var(--transition);
}

.member-email a:hover {
  color: var(--white);
}

.member-bio {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.5);
  padding: 5rem 0 2rem;
  position: relative;
  margin-top: 80px;
}

/* When footer follows a page ending with CTA, the CTA::after curve bridges the gap */
main:has(> .cta:last-child) + .footer {
  margin-top: 0;
}

main:has(> .cta:last-child) + .footer::before {
  display: none;
}

.footer::before {
  content: '';
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C480,0 960,0 1440,64 L1440,96 L0,96 Z' fill='%23111827'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-title {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* Services page - dark banner flows into dark products */
.main-content.services .page-banner {
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
}

.main-content.services .page-banner::after {
  display: none;
}

.products-page {
  padding-top: 3rem;
  position: relative;
}

/* Services Page */
.services {
  margin-top: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

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

.service-card.featured {
  border-color: var(--primary);
  position: relative;
}

.service-card.featured::before {
  content: 'Populär';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.service-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
}

.service-subtitle {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.service-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.service-features i {
  color: var(--success);
  width: 16px;
  height: 16px;
}

.service-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.service-actions .btn {
  width: 100%;
  justify-content: center;
}

.service-price {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  text-align: center;
}

.price {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
}

.price-period {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Process Section */
.process {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.process-step:hover .step-number {
  border-color: var(--primary);
  color: var(--primary);
}

.step-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.step-description {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Contact Page */
.contact {
  margin-top: 3rem;
  margin-bottom: 6rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.contact-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.contact-method:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.method-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.method-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.method-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.method-icon svg,
.method-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.method-info h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.method-info p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* FAQ Section */
.faq {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: clip;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question i {
  transition: var(--transition);
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Error Page */
.error-section {
  padding: 5rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.error-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.error-icon i {
  width: 40px;
  height: 40px;
}

.error-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.error-message {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile navigation */
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  .nav-item {
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
    width: 100%;
    display: block;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    color: var(--gray-600) !important;
  }

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

  .nav-link.active::after {
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle i {
    width: 24px;
    height: 24px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  /* Container padding adjustment */
  .container {
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Prevent horizontal scroll */
  * {
    max-width: 100%;
  }

  img, svg, video {
    max-width: 100%;
    height: auto;
  }

  /* Hero section mobile */
  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 120px;
  }

  /* Product cards mobile */
  .products-showcase {
    padding: 4rem 0 6rem;
  }

  .products-showcase .section-title {
    font-size: 1.75rem;
  }

  .product-card-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .product-card-visual {
    height: 120px;
  }

  .product-card-glow {
    width: 120px;
    height: 120px;
  }

  .product-card-name {
    font-size: 1.5rem;
  }

  .product-card-tagline {
    font-size: 0.95rem;
  }

  .product-card-link {
    justify-content: center;
  }

  .visual-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .visual-icon-item {
    padding: 1rem 0.5rem;
  }

  .hero-svg-icon {
    width: 44px;
    height: 44px;
  }

  .icon-label {
    font-size: 0.72rem;
  }

  /* Mobile image styles */
  .hero-image {
    height: 250px;
  }

  /* Page banner mobile styles */
  .page-banner {
    padding: 100px 0 5rem 0;
  }

  .page-banner::after {
    height: 50px;
  }

  .page-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .products-page {
    padding-top: 3rem;
  }

  .page-title {
    font-size: 2rem !important;
  }

  .page-description {
    font-size: 1rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  .showcase-item.large {
    min-height: 250px;
  }

  .mission-photo {
    height: 200px;
  }

  /* References mobile styles */
  .reference-card {
    padding: 2rem 1.5rem;
  }

  .company-name {
    font-size: 1.5rem;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
  }

  .references-cta {
    padding: 3rem 1.5rem;
  }

  .references-cta h2 {
    font-size: 1.75rem;
  }

  .references-cta p {
    font-size: 1rem;
  }

  /* Reference image mobile styles */
  .reference-photo-container {
    float: none;
    max-width: 200px;
    margin: 0 auto 1rem auto;
  }

  .reference-photo {
    max-height: 120px;
  }

  .caption-name {
    font-size: 0.85rem;
  }

  .caption-title {
    font-size: 0.75rem;
  }

  /* Reference author mobile styles */
  .reference-author-simple {
    text-align: center;
    margin-top: 1rem;
  }

  .reference-author-simple .author-name {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

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

  .product-modules,
  .service-modules {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .feature-section {
    margin-bottom: 3rem;
  }

  .section-label {
    margin-bottom: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-description {
    margin: 0 auto;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer {
    padding: 4rem 0 1.5rem;
  }

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

  /* Portal showcase mobile styles */
  .laptop-frame {
    max-width: 100%;
    padding: 0 1rem;
  }

  .laptop-screen {
    border-width: 8px;
    border-radius: 10px 10px 0 0;
    width: 88%;
    padding-bottom: 49.5%;
  }

  .laptop-base {
    height: 14px;
    width: 112%;
    left: 50%;
    transform: translateX(-50%);
  }

  .portal-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact page mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-methods {
    gap: 1.5rem;
  }

  .contact-method {
    padding: 1rem;
  }

  .method-icon {
    width: 50px;
    height: 50px;
  }

  /* Team grid mobile */
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet responsive (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .product-modules,
  .service-modules {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    gap: 3rem;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  .brand-logo {
    font-size: 1rem;
  }

  .logo-text {
    display: none;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 1.75rem !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    width: 100%;
  }

  .visual-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .visual-icon-item {
    padding: 0.875rem 0.5rem;
  }

  /* Portal showcase mobile styles */
  .laptop-frame {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .laptop-screen {
    border-width: 6px;
    border-radius: 8px 8px 0 0;
    width: 85%;
    padding-bottom: 47.8125%;
  }

  .laptop-base {
    height: 12px;
    width: 108%;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-svg-icon {
    width: 36px;
    height: 36px;
  }

  .icon-label {
    font-size: 0.68rem;
  }

  /* Footer stacks to 1 column on small screens */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand,
  .footer-section {
    text-align: center;
  }

  .footer {
    padding: 3.5rem 0 1.5rem;
  }

  /* Contact form needs less padding on small screens */
  .contact-form {
    padding: 1.25rem;
  }

  /* Services grid fix for small screens */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Article titles */
  .article-title {
    font-size: 1.25rem;
  }

  .article-excerpt {
    font-size: 1rem;
  }

  /* Viz footer horizontal on small screens */
  .viz-footer {
    gap: 1rem;
  }

  .stat-big {
    font-size: 1.75rem;
  }

  .stat-desc {
    font-size: 0.8rem;
  }
}

/* Articles Page */
.articles {
  margin-top: 3rem;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.article-card.featured {
  border-color: var(--gray-200);
}

.article-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.article-header .toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 0.25rem;
}

.article-header .toggle-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  color: var(--gray-600);
}

.article-card.open .article-header .toggle-icon svg {
  transform: rotate(180deg);
}

.article-card.open .article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-header-text {
  flex: 1;
  min-width: 0;
}

.article-card:not(.open):hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-date {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.article-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.article-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 0;
}

.article-content {
  line-height: 1.7;
  color: var(--gray-700);
  display: none;
}

.article-card.open .article-content {
  display: block;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin: 2rem 0 1rem 0;
}

.article-content h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  margin: 1.5rem 0 0.75rem 0;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

@media (max-width: 768px) {
  .article-card {
    padding: 2rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .articles-grid {
    gap: 2rem;
  }
}
/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert-success::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.75rem;
}

.alert-error::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Spotprisprognos Visualization Section */
.forecaster-viz {
  padding: 4rem 0 5rem;
  background: var(--gray-50);
  overflow: clip;
}

.viz-header {
  text-align: center;
  margin-bottom: 4rem;
}

.viz-header .section-title {
  font-size: 2.25rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.viz-header .section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* The Machine Layout */
.forecaster-machine {
  display: grid;
  grid-template-columns: 1fr 80px 260px 80px 1fr;
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 400px;
}

/* Input/Output Cards */
.machine-inputs,
.machine-outputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-card,
.output-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  animation: cardSlideIn 0.6s ease-out backwards;
  animation-delay: var(--delay);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: clip;
}

.input-card::before,
.output-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.output-card::before {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform-origin: right;
}

.input-card:hover::before,
.output-card:hover::before {
  transform: scaleX(1);
}

.input-card:hover,
.output-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.output-card:hover {
  transform: translateX(-5px);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.machine-outputs .output-card {
  animation-name: cardSlideInRight;
}

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

.input-icon,
.output-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #d1fae5;
  color: #059669;
}

.input-icon svg,
.output-icon svg {
  width: 22px;
  height: 22px;
}

.input-icon.weather-icon {
  background: #fef3c7;
  color: #d97706;
}

.input-icon.price-icon {
  background: #d1fae5;
  color: #059669;
}

.input-icon.history-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.input-icon.user-icon {
  background: #fce7f3;
  color: #db2777;
}

.output-icon.forecast-icon {
  background: #d1fae5;
  color: #059669;
}

.output-icon.optimize-icon {
  background: #d1fae5;
  color: #059669;
}

.output-icon.alert-icon {
  background: #fef3c7;
  color: #d97706;
}

.output-icon.savings-icon {
  background: #dcfce7;
  color: #16a34a;
}

.input-label,
.output-label {
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  color: var(--gray-800);
  flex: 1;
}

.output-value {
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

/* Data Stream Animation */
.data-stream {
  display: flex;
  gap: 4px;
}

.data-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: dataPulse 1.5s ease-in-out infinite;
}

.data-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.data-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dataPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Flow Lines Section */
.flow-section {
  position: relative;
  height: 100%;
  min-height: 350px;
}

.flow-lines {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.flow-line {
  fill: none;
  stroke: var(--gray-300);
  stroke-width: 2;
  stroke-dasharray: 8 4;
  animation: flowDash 1s linear infinite;
}

.flow-input .flow-line {
  animation-direction: normal;
  stroke: #6ee7b7;
}

.flow-output .flow-line {
  animation-direction: normal;
  stroke: #6ee7b7;
}

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

/* Flowing Particles */
.flowing-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.flow-output .particle {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.flow-input .particle {
  animation: particleFlowIn 2s ease-in-out infinite;
}

.flow-output .particle {
  animation: particleFlowOut 2s ease-in-out infinite;
}

.particle.p1 {
  animation-delay: 0s;
  top: 10%;
}

.particle.p2 {
  animation-delay: 0.4s;
  top: 30%;
}

.particle.p3 {
  animation-delay: 0.8s;
  top: 50%;
}

.particle.p4 {
  animation-delay: 1.2s;
  top: 70%;
}

.particle.p5 {
  animation-delay: 1.6s;
  top: 90%;
}

@keyframes particleFlowIn {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: 100%;
    top: 50%;
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes particleFlowOut {
  0% {
    left: 0;
    top: 50%;
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: scale(0.5);
  }
}

.flow-output .particle.p1 { animation-delay: 0.2s; top: 25%; }
.flow-output .particle.p2 { animation-delay: 0.8s; top: 50%; }
.flow-output .particle.p3 { animation-delay: 1.4s; top: 75%; }

/* Machine Core */
.machine-core {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.ring-outer {
  width: 240px;
  height: 240px;
  border-style: dashed;
  animation: rotateRing 20s linear infinite;
}

.ring-inner {
  width: 200px;
  height: 200px;
  border-color: rgba(16, 185, 129, 0.3);
  animation: rotateRing 15s linear infinite reverse;
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

.ring-segment {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(16, 185, 129, 0.5);
  border-radius: 50%;
}

.ring-segment:nth-child(1) { top: -8px; left: 50%; transform: translateX(-50%); }
.ring-segment:nth-child(2) { bottom: -8px; left: 50%; transform: translateX(-50%); }
.ring-segment:nth-child(3) { left: -8px; top: 50%; transform: translateY(-50%); }
.ring-segment:nth-child(4) { right: -8px; top: 50%; transform: translateY(-50%); }

.core-center {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.3);
  z-index: 2;
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.3);
  }
  50% {
    box-shadow: 0 10px 60px rgba(5, 150, 105, 0.5);
  }
}

.brain-icon {
  width: 48px;
  height: 48px;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.brain-icon .neuron {
  animation: neuronFlash 2s ease-in-out infinite;
}

.brain-icon .n1 { animation-delay: 0s; }
.brain-icon .n2 { animation-delay: 0.5s; }
.brain-icon .n3 { animation-delay: 1s; }
.brain-icon .n4 { animation-delay: 1.5s; }

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

.core-label {
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.3;
  max-width: 100px;
}

.processing-indicators {
  position: absolute;
  bottom: -30px;
  display: flex;
  gap: 8px;
}

.proc-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: procBlink 1s ease-in-out infinite;
}

.proc-dot:nth-child(2) {
  animation-delay: 0.33s;
}

.proc-dot:nth-child(3) {
  animation-delay: 0.66s;
}

@keyframes procBlink {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Viz Footer Stats */
.viz-footer {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.stat-highlight {
  text-align: center;
}

.stat-big {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Spotprisprognos Viz Responsive */
@media (max-width: 1024px) {
  .forecaster-machine {
    grid-template-columns: 1fr 60px 210px 60px 1fr;
  }

  .machine-core {
    width: 210px;
    height: 210px;
  }

  .core-glow {
    width: 200px;
    height: 200px;
  }

  .ring-outer {
    width: 190px;
    height: 190px;
  }

  .ring-inner {
    width: 165px;
    height: 165px;
  }

  .core-center {
    width: 135px;
    height: 135px;
  }

  .brain-icon {
    width: 34px;
    height: 34px;
  }

  .core-label {
    font-size: 0.6rem;
  }
}

/* Forecaster How It Works */
.forecaster-how-it-works {
  padding: var(--section-padding);
}

.forecaster-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.forecaster-step {
  text-align: center;
}

.forecaster-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: #6d28d9;
  margin-bottom: 1.25rem;
}

.forecaster-step h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.forecaster-step p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .forecaster-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================
   EnergyMeter Visualization
   ============================ */

.energymeter-viz {
  padding: 4rem 0 5rem;
  background: var(--gray-50);
  overflow: clip;
}

.energy-machine {
  display: grid;
  grid-template-columns: 1fr 80px 260px 80px 1fr;
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 350px;
}

/* EnergyMeter icon colors (yellow/amber profile) */
.energy-solar-icon {
  background: #fef3c7;
  color: #d97706;
}

.energy-battery-icon {
  background: #fef9c3;
  color: #ca8a04;
}

.energy-grid-icon {
  background: #fff7ed;
  color: #ea580c;
}

.energy-ev-icon {
  background: #fefce8;
  color: #a16207;
}

.energy-apt-icon {
  background: #fef3c7;
  color: #d97706;
}

.energy-dash-icon {
  background: #fff7ed;
  color: #ea580c;
}

.energy-bill-icon {
  background: #fefce8;
  color: #ca8a04;
}

/* EnergyMeter data dots */
.data-dot.energy-dot {
  background: #f59e0b;
}

/* EnergyMeter flow lines */
.flow-energy .flow-line {
  stroke: #fcd34d;
}

.flow-energy .particle {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.flow-energy-out .flow-line {
  stroke: #fcd34d;
}

.flow-energy-out .particle {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

/* EnergyMeter core */
.energy-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%) !important;
}

.energy-center {
  background: linear-gradient(135deg, #78350f 0%, #b45309 100%) !important;
  box-shadow: 0 10px 40px rgba(217, 119, 6, 0.3) !important;
}

/* EnergyMeter rings & hover */
.energymeter-viz .core-ring {
  border-color: rgba(245, 158, 11, 0.4);
}

.energymeter-viz .ring-inner {
  border-color: rgba(245, 158, 11, 0.3);
}

.energymeter-viz .ring-segment {
  background: rgba(245, 158, 11, 0.5);
}

.energymeter-viz .input-card::before,
.energymeter-viz .output-card::before {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

/* EnergyMeter stat gradient */
.stat-big.energy-stat {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* EnergyMeter "How it works" */
.energy-how-it-works {
  padding: var(--section-padding);
}

.energy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.energy-step {
  text-align: center;
}

.energy-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: #d97706;
  margin-bottom: 1.25rem;
}

.energy-step h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.energy-step p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* EnergyMeter Responsive */
@media (max-width: 1024px) {
  .energy-machine {
    grid-template-columns: 1fr 60px 210px 60px 1fr;
  }
}

@media (max-width: 768px) {
  .energy-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================
   WaterMeter Visualization
   ============================ */

.watermeter-viz {
  padding: 4rem 0 5rem;
  background: var(--gray-50);
  overflow: clip;
}

.water-machine {
  display: grid;
  grid-template-columns: 1fr 80px 260px 80px 1fr;
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 300px;
}

/* WaterMeter icon colors (blue profile) */
.water-main-icon {
  background: #dbeafe;
  color: #2563eb;
}

.water-hot-icon {
  background: #e0e7ff;
  color: #4f46e5;
}

.water-sensor-icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.water-apt-icon {
  background: #dbeafe;
  color: #2563eb;
}

.water-leak-icon {
  background: #fef3c7;
  color: #d97706;
}

.water-report-icon {
  background: #e0e7ff;
  color: #4f46e5;
}

/* WaterMeter data dots */
.data-dot.water-dot {
  background: #3b82f6;
}

/* WaterMeter flow lines */
.flow-water .flow-line {
  stroke: #93c5fd;
}

.flow-water .particle {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

.flow-water-out .flow-line {
  stroke: #93c5fd;
}

.flow-water-out .particle {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

/* WaterMeter core */
.water-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%) !important;
}

.water-center {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%) !important;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3) !important;
}

/* WaterMeter rings & hover */
.watermeter-viz .core-ring {
  border-color: rgba(59, 130, 246, 0.4);
}

.watermeter-viz .ring-inner {
  border-color: rgba(59, 130, 246, 0.3);
}

.watermeter-viz .ring-segment {
  background: rgba(59, 130, 246, 0.5);
}

.watermeter-viz .input-card::before,
.watermeter-viz .output-card::before {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* WaterMeter stat gradient */
.stat-big.water-stat {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WaterMeter "How it works" */
.water-how-it-works {
  padding: var(--section-padding);
}

.water-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.water-step {
  text-align: center;
}

.water-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: #2563eb;
  margin-bottom: 1.25rem;
}

.water-step h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.water-step p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* WaterMeter Responsive */
@media (max-width: 1024px) {
  .water-machine {
    grid-template-columns: 1fr 60px 210px 60px 1fr;
  }
}

@media (max-width: 768px) {
  .water-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================
   All Visualizations - Mobile
   ============================ */
@media (max-width: 768px) {
  .forecaster-viz,
  .energymeter-viz,
  .watermeter-viz {
    padding: 3rem 0 4rem;
  }

  .viz-header .section-title {
    font-size: 1.75rem;
  }

  /* All machine layouts: vertical pipeline on mobile */
  .forecaster-machine,
  .energy-machine,
  .water-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 100%;
    min-height: auto;
  }

  /* Hide SVG flow lines and data stream dots */
  .flow-section,
  .data-stream {
    display: none;
  }

  /* Inputs: 2-column grid */
  .machine-inputs {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
  }

  /* Center the last card if odd number of inputs */
  .machine-inputs > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 0.25rem);
  }

  /* Core: centered with vertical connector lines */
  .machine-core {
    order: 2;
    width: 180px;
    height: 180px;
    margin: 1.5rem auto;
  }

  .machine-core::before,
  .machine-core::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 1px;
  }

  .machine-core::before {
    bottom: 100%;
    height: 1.5rem;
    background: linear-gradient(to bottom, transparent, var(--primary-300));
  }

  .machine-core::after {
    top: 100%;
    height: 1.5rem;
    background: linear-gradient(to bottom, var(--primary-300), transparent);
  }

  /* Themed connector colors */
  .machine-core.energy-core::before {
    background: linear-gradient(to bottom, transparent, #fcd34d);
  }
  .machine-core.energy-core::after {
    background: linear-gradient(to bottom, #fcd34d, transparent);
  }

  .machine-core.water-core::before {
    background: linear-gradient(to bottom, transparent, #93c5fd);
  }
  .machine-core.water-core::after {
    background: linear-gradient(to bottom, #93c5fd, transparent);
  }

  /* Scale core internals */
  .core-glow { width: 170px; height: 170px; }
  .ring-outer { width: 162px; height: 162px; }
  .ring-inner { width: 140px; height: 140px; }
  .core-center { width: 120px; height: 120px; }
  .brain-icon { width: 30px; height: 30px; }
  .core-label { font-size: 0.6rem; }

  /* Outputs: 3-column grid */
  .machine-outputs {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
  }

  /* Cards: compact vertical layout */
  .input-card,
  .output-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    min-width: 0;
  }

  /* Hide colored side accent bars on mobile */
  .input-card::before,
  .output-card::before {
    display: none;
  }

  .input-card:hover,
  .output-card:hover {
    transform: translateY(-2px);
  }

  .input-icon,
  .output-icon {
    width: 32px;
    height: 32px;
  }

  .input-icon svg,
  .output-icon svg {
    width: 16px;
    height: 16px;
  }

  .input-label,
  .output-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .output-value {
    font-size: 0.65rem;
  }

  .viz-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .stat-big {
    font-size: 2rem;
  }
}

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

  .machine-outputs > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 0.25rem);
  }

  .machine-inputs {
    max-width: 280px;
  }

  .machine-outputs {
    max-width: 280px;
  }

  .machine-core {
    width: 155px;
    height: 155px;
    margin: 1.25rem auto;
  }

  .core-glow { width: 145px; height: 145px; }
  .ring-outer { width: 138px; height: 138px; }
  .ring-inner { width: 118px; height: 118px; }
  .core-center { width: 100px; height: 100px; }
  .brain-icon { width: 26px; height: 26px; }
  .core-label { font-size: 0.55rem; }

  .machine-core::before,
  .machine-core::after {
    height: 1.25rem;
  }
}
