/* Reset and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Partnership Colors */
  --qonto-primary: #667EEA;
  --qonto-secondary: #764BA2;
  --partnership-bg: #f8faff;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.full-width {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero-title {
  margin-bottom: var(--space-md);
  font-weight: 700;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: var(--space-3xl) 0;
  background: var(--background-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.text-block {
  margin-bottom: var(--space-xl);
}

.text-block h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.about-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Partnership Section */
.partnership {
  padding: var(--space-3xl) 0;
  background: var(--partnership-bg);
  position: relative;
  overflow: hidden;
}

.partnership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--qonto-primary), transparent);
}

.partnership-content {
  position: relative;
}

.partnership-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.partnership-badge {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.badge-text {
  background: linear-gradient(135deg, var(--qonto-primary), var(--qonto-secondary));
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partnership-title {
  background: linear-gradient(135deg, var(--qonto-primary), var(--qonto-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.partnership-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.partnership-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

.partnership-info {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.partnership-logo {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.qonto-logo {
  display: inline-block;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.partnership-description h3 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.partnership-description > p {
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
  line-height: 1.7;
}

.partnership-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.benefit-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--qonto-primary), var(--qonto-secondary));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.benefit-content h4 {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.benefit-content p {
  color: var(--text-secondary);
  margin: 0;
}

.partnership-features {
  position: sticky;
  top: 100px;
}

.feature-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.feature-header h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.feature-list li:hover {
  background: var(--partnership-bg);
}

.check-icon {
  color: var(--qonto-primary);
  font-weight: bold;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list span:last-child {
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-section {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--qonto-primary), var(--qonto-secondary));
  border: none;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.partnership-testimonial {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.partnership-testimonial blockquote {
  margin: 0;
}

.partnership-testimonial p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.partnership-testimonial cite {
  color: var(--qonto-primary);
  font-weight: 600;
  font-style: normal;
}

/* Insights Section */
.insights {
  padding: var(--space-3xl) 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.insight-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.insight-card.featured {
  grid-column: span 2;
}

.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.insight-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--space-xl);
}

.card-category {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.card-title {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.card-full-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-full-content.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.card-full-content p {
  margin-bottom: var(--space-md);
}

.card-full-content strong {
  color: var(--secondary);
  font-weight: 600;
}

.read-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--space-md);
}

.read-more-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Contact Section */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--background-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: var(--radius-lg);
}

.contact-item h4 {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .insight-card.featured {
    grid-column: span 1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .partnership-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .partnership-features {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 200px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-image {
    order: -1;
  }
  
  .about-image img {
    height: 300px;
  }
  
  .partnership-info {
    padding: var(--space-lg);
  }
  
  .partnership-benefits {
    gap: var(--space-md);
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card-content {
    padding: var(--space-lg);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .partnership-info {
    padding: var(--space-md);
  }
  
  .feature-card {
    padding: var(--space-lg);
  }
}