/* ============================================
   Smart Business Solutions - SmartCheck Landing
   Design System: ki.join.de inspired
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary-blue: #2085ff;
  --primary-blue-dark: #1a6fd9;
  --primary-orange: #ec5427;
  --primary-orange-dark: #d44820;

  /* Override SmartCheck cyan with blue */
  --primary-cyan: #2085ff;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Header */
  --header-height: 64px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === Animated Background === */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.bg-animation::before {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #60a5fa 100%);
  top: -200px;
  right: -100px;
  animation: float-blob 20s ease-in-out infinite;
}

.bg-animation::after {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #fbbf24 100%);
  bottom: -150px;
  left: -100px;
  animation: float-blob 25s ease-in-out infinite reverse;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  will-change: transform;
}

.bg-blob--1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  top: 40%;
  left: 30%;
  animation: float-blob 22s ease-in-out infinite 2s;
}

.bg-blob--2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  top: 60%;
  right: 20%;
  animation: float-blob 18s ease-in-out infinite 5s;
}

@keyframes float-blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  25% {
    transform: translate(30px, -40px) scale(1.05) rotate(5deg);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
  }

  75% {
    transform: translate(40px, 30px) scale(1.02) rotate(3deg);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .bg-animation::before,
  .bg-animation::after,
  .bg-blob {
    animation: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-blue-dark);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 700px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  display: none;
}

@media (min-width: 640px) {
  .logo span {
    display: inline;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--gray-600);
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation (Sidebar) */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.nav-mobile-header span {
  font-weight: 600;
  color: var(--gray-900);
}

.nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.nav-mobile-links a {
  display: block;
  padding: var(--space-4) 0;
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile-links a:hover {
  color: var(--primary-blue);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* === Hero Section === */
.hero {
  padding: calc(var(--header-height) + var(--space-16)) var(--space-6) var(--space-16);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-20)) var(--space-6) var(--space-20);
  }
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-12);
    min-height: 60vh;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
    flex: 1;
    max-width: 50%;
  }
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.hero-headline .highlight {
  color: var(--primary-blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
  }
}

.hero-benefits {
  list-style: none;
  margin-bottom: var(--space-8);
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--gray-700);
  font-size: 1.1rem;
}

@media (min-width: 1024px) {
  .hero-benefits li {
    justify-content: flex-start;
  }
}

.hero-benefits li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.hero-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    flex: 1;
    max-width: 55%;
    margin-right: -var(--space-6);
  }
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-banner-img:hover {
  transform: scale(1.02);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  justify-content: center;
}

@media (min-width: 1024px) {
  .trust-indicators {
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.trust-item strong {
  color: var(--gray-900);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 133, 255, 0.35);
  color: var(--white);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1.1rem;
}

/* === SmartCheck Section === */
.smartcheck {
  padding: var(--space-16) var(--space-6);
  background: var(--gray-50);
}

@media (min-width: 768px) {
  .smartcheck {
    padding: var(--space-20) var(--space-6);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
}

/* SmartCheck Box Container */
#smart-check-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
}

/* === FAQ Section === */
.faq {
  padding: var(--space-16) var(--space-6);
  background: var(--white);
}

@media (min-width: 768px) {
  .faq {
    padding: var(--space-20) var(--space-6);
  }
}

.faq .section-title {
  text-align: center;
  margin-bottom: var(--space-10);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--space-5) 0;
  color: var(--gray-600);
  line-height: 1.7;
}

/* === Footer === */
.footer {
  padding: var(--space-8) var(--space-6);
  background: var(--gray-900);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* === SmartCheck System Overrides === */
/* Override dark theme styles from smart-check-system.js */
#smart-check-container,
#smart-check-container * {
  color: var(--gray-900) !important;
}

#smart-check-container {
  background: var(--white) !important;
}

.smart-check-wrapper {
  background: transparent !important;
  color: var(--gray-700) !important;
}

.smart-check-wrapper .smart-check-progress-bar {
  background: var(--gray-200) !important;
}

.smart-check-wrapper .smart-check-progress-fill {
  background: var(--primary-blue) !important;
}

.smart-check-wrapper .smart-check-question {
  color: var(--gray-900) !important;
  font-weight: 600 !important;
}

.smart-check-wrapper .smart-check-option {
  background: var(--gray-50) !important;
  border: 1px solid var(--gray-200) !important;
  color: var(--gray-700) !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.2s !important;
}

.smart-check-wrapper .smart-check-option:hover {
  border-color: var(--primary-blue) !important;
  background: var(--white) !important;
}

.smart-check-wrapper .smart-check-option.selected {
  border-color: var(--primary-blue) !important;
  background: rgba(32, 133, 255, 0.1) !important;
}

.smart-check-wrapper .smart-check-btn,
#smart-check-container button,
#smart-check-container .btn {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
}

.smart-check-wrapper .smart-check-btn:hover {
  background: var(--primary-blue-dark) !important;
}

/* Form inputs in SmartCheck */
.smart-check-wrapper input[type="text"],
.smart-check-wrapper input[type="email"],
.smart-check-wrapper input[type="tel"],
.smart-check-wrapper textarea {
  background: var(--white) !important;
  border: 1px solid var(--gray-300) !important;
  color: var(--gray-900) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-3) var(--space-4) !important;
}

.smart-check-wrapper input::placeholder,
.smart-check-wrapper textarea::placeholder {
  color: var(--gray-400) !important;
}

.smart-check-wrapper input:focus,
.smart-check-wrapper textarea:focus {
  border-color: var(--primary-blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(32, 133, 255, 0.15) !important;
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Print Styles === */
@media print {

  .header,
  .nav-mobile,
  .nav-overlay {
    display: none;
  }

  .hero {
    padding-top: var(--space-8);
  }
}