/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

:root {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-border: #e5e7eb;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-accent: #0f172a;
  --color-accent-hover: #1e293b;
  --color-muted: #6b7280;
  --color-elev-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
html.theme-dark {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-alt: #334155;
  --color-border: #334155;
  --color-text: #f1f5f9;
  --color-text-soft: #cbd5e1;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-muted: #94a3b8;
  --color-elev-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-alt: #334155;
    --color-border: #334155;
    --color-text: #f1f5f9;
    --color-text-soft: #cbd5e1;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-muted: #94a3b8;
    --color-elev-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: 0 0 .5rem 0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--color-accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.15s ease-out;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
}
html.theme-dark .site-header {
  background: rgba(15,23,42,0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.875rem;
}
.nav a:hover {
  color: var(--color-text);
}
.nav .nav-cta {
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: background-color 0.3s ease;
}
.nav .nav-cta:hover {
  background-color: var(--color-accent-hover);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}
.theme-toggle:hover { color: var(--color-text); }
.theme-toggle:focus { outline:2px solid var(--color-accent); outline-offset:2px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.btn.primary {
  background-color: #0f172a;
  color: #ffffff;
}
.btn.primary:hover {
  background-color: #1e293b;
}
.btn.secondary {
  border: 1px solid #d1d5db;
  color: #374151;
  background-color: transparent;
}
.btn.secondary:hover {
  background-color: #f3f4f6;
}

/* Hero section */
.hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: var(--color-surface);
}
.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}
.blob-1 {
  top: -40px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #c7d2fe, transparent);
}
.blob-2 {
  bottom: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 70% 70%, #fbcfe8, transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--color-text), var(--color-text-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-x 8s linear infinite;
  background-size: 200% 100%;
}
@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-subtext { font-size: 0.875rem; color: var(--color-muted); }
.logos-section {
  margin-top: 2rem;
}
.logos-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}
.logos-wrapper {
  overflow: hidden;
}
.logos-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.logos-track span {
  background-color: var(--color-surface-alt);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Highlights */
.highlights { background-color: var(--color-surface); padding: 4rem 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--color-elev-shadow);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card-icon {
  margin-bottom: 0.5rem;
}
.icon-circle {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text); }
.card-desc { font-size: 0.875rem; color: var(--color-text-soft); }

/* Section title */
.section-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--color-text); }

/* Steps */
.how { background-color: var(--color-bg); padding: 4rem 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.step-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
}
.step-desc {
  font-size: 0.875rem;
  color: #475569;
}

/* Products */
.products { background-color: var(--color-surface); padding: 4rem 0; }
.products-grid .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
}
.products-grid .card-link span {
  transition: transform 0.3s ease;
}
.products-grid .card-link:hover span {
  transform: translateX(3px);
}

/* Principles */
.principles { background-color: var(--color-bg); padding: 4rem 0; }
.principles-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.principles-subtext {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Trust */
.trust { background-color: var(--color-surface); padding: 4rem 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.trust-card { background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--color-elev-shadow); }
.trust-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--color-text); }
.trust-list { list-style: disc inside; color: var(--color-text-soft); font-size: 0.875rem; }
.stats-grid {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.stat-item { flex: 1; background-color: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 600; color: var(--color-text); }
.stat-label { font-size: 0.75rem; color: var(--color-muted); }

/* Contact */
.contact { background-color: var(--color-bg); padding: 4rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.contact-desc { font-size: 0.9rem; color: var(--color-text-soft); margin-top: 0.5rem; }
.contact-sub { font-size: 0.75rem; color: var(--color-muted); margin-top: 1rem; }

/* Additional contact options */
.contact-options {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-options .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.contact-form { background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--color-elev-shadow); }
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-field label { font-size: 0.875rem; font-weight: 500; color: var(--color-text); margin-bottom: 0.25rem; }
.req {
  color: #dc2626;
  margin-left: 0.25rem;
}
.form-field input,
.form-field textarea { padding: 0.6rem 0.8rem; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: 0.5rem; background-color: var(--color-surface); color: var(--color-text); }
.form-field input:focus,
.form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,0.35); border-color: var(--color-accent); }
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-status { font-size: 0.875rem; color: var(--color-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-surface); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted); }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: var(--color-text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--color-text); }

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 1rem 1rem 0.75rem;
  font-size: 0.75rem;
  z-index: 11000;
}
.consent-inner { display: flex; flex-direction: column; gap: .75rem; }
.consent-text { margin: 0; line-height: 1.3; color: #334155; font-size: 0.75rem; }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-actions .btn { font-size: 0.7rem; padding: 0.45rem .9rem; }
.consent-close { position:absolute; top:4px; right:6px; background:none; border:none; cursor:pointer; font-size:1rem; line-height:1; color:#475569; }
.consent-close:hover { color:#0f172a; }
.consent-banner[hidden] { display:none; }

/* Media queries */
@media (min-width: 768px) {
  .header-inner {
    height: 4.5rem;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}