/* ============================================================
   WeFill B.V. – Design System & Styles
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --green: #16A34A;
  --green-hover: #15803D;
  --green-active: #166534;
  --green-light: #F0FDF4;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-900: #111827;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-py: 96px;
  --section-py-mobile: 64px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-hover); }

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

/* --- Typography --- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

h1, .h1 { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3, .h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
h4, .h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }

.body-lg { font-size: 20px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.5; }

.text-gray { color: var(--gray-500); }
.text-green { color: var(--green); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-hover);
  color: var(--white);
}
.btn-primary:active { background: var(--green-active); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green-light);
  border-color: var(--green-hover);
  color: var(--green-hover);
}

.btn-link {
  background: none;
  color: var(--green);
  padding: 0;
  font-weight: 600;
  border: none;
}
.btn-link:hover { text-decoration: underline; color: var(--green-hover); }

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.0);
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--gray-200);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .logo-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--gray-900); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: all .3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--green); }

/* --- Sections --- */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--gray-500);
  margin-top: 16px;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 var(--section-py);
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  margin-bottom: 24px;
}

.hero .body-lg {
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.proof-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.proof-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green);
}

.proof-point h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.proof-point p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- Cards Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all .2s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.card p {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 16px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 8px;
  line-height: 1.5;
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Use-case cards */
.use-case-card {
  border-top: 3px solid var(--green);
}

/* --- Qualität --- */
.quality-block h3 { margin-bottom: 8px; }
.quality-block p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Integration --- */
.integration-main {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 32px;
}

.integration-main h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.integration-main p {
  color: var(--gray-300);
  margin-bottom: 24px;
  max-width: 600px;
}

.integration-main ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.integration-main ul li {
  padding-left: 24px;
  position: relative;
  color: var(--gray-300);
  font-size: 15px;
}

.integration-main ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.integration-note {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.integration-note p {
  color: var(--gray-500);
  font-size: 15px;
}

/* Onboarding Steps */
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.onboarding-step {
  text-align: center;
  position: relative;
}

.onboarding-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.onboarding-step h4 { margin-bottom: 8px; }
.onboarding-step p { color: var(--gray-500); font-size: 14px; }

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.process-step {
  position: relative;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.process-step .step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  gap: 24px;
}

.faq-question:hover { color: var(--green); }

.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: var(--gray-500);
  transition: transform .25s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.form-helper {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  color: var(--gray-900);
  transition: border-color .15s ease, box-shadow .15s ease;
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-300);
}

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

.form-checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-checkbox-group label {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

.form-checkbox-group label a {
  color: var(--green);
  text-decoration: underline;
}

.contact-info {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: var(--green);
  margin-top: 2px;
}

.contact-info-item p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

.contact-info-item a {
  color: var(--gray-900);
  font-weight: 500;
}

.contact-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-trust svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
}

/* Form Messages */
.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  background: var(--green-light);
  color: var(--green-active);
  border: 1px solid rgba(22,163,74,0.2);
  display: block;
}

.form-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(153,27,27,0.2);
  display: block;
}

.form-input.input-error,
.form-textarea.input-error {
  border-color: #EF4444;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 10px;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--gray-500);
}
.footer-legal a:hover { color: var(--white); }

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 var(--section-py);
}

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

.legal-content h1 {
  font-size: 40px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  color: var(--gray-500);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content strong { color: var(--gray-900); }

.legal-content a {
  color: var(--green);
  text-decoration: underline;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
  box-shadow: var(--shadow-lg);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--green-hover); }

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  display: none;
}

.cookie-banner.visible { display: block; }

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

.cookie-inner p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  flex: 1;
}

.cookie-inner p a { color: var(--green); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1, .h1 { font-size: 42px; }
  h2, .h2 { font-size: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .integration-main ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 20px; }
  .body-lg { font-size: 18px; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 120px 0 64px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .proof-points { grid-template-columns: 1fr; gap: 20px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .onboarding-steps { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .integration-main { padding: 32px 24px; }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons { width: 100%; justify-content: center; flex-wrap: wrap; }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
