/* Critical CSS for homepage first paint (header + hero). */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text-main: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --gradient-cta: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --header-offset: 5.5rem;
}

html {
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 9999;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  border-radius: 0.65rem;
}

.brand-mark-hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 36px;
  flex-shrink: 0;
}

.brand-mark-img,
.brand-mark-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-wordmark-accent {
  margin-left: 0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-main a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  margin-left: 25px;
  border-bottom: 2px solid transparent;
}

.nav-main a:first-child {
  margin-left: 0;
}

.nav-main a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: var(--gradient-cta);
  box-shadow: var(--shadow-md);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  min-width: 2.35rem;
  padding: 0.38rem 0.5rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #475569;
  background: transparent;
}

.lang-btn.is-active {
  color: #fff;
  background: var(--primary);
}

.dark-mode-toggle {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.hamburger,
.mobile-menu,
.mobile-menu-overlay {
  display: none;
}

main {
  overflow-x: clip;
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset);
}

.hero {
  position: relative;
  padding: 120px 10%;
  min-height: min(85vh, 48rem);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
  justify-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.hero p {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-subtitle,
.hero-lead {
  max-width: 42ch;
  margin-inline: auto;
}

.hero .hero-tagline {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  min-height: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.82rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.floating-shape {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --header-offset: 5rem;
  }

  header {
    padding: 16px 5%;
  }

  .nav-main a {
    margin-left: 18px;
  }

  .hero {
    padding: 100px 6%;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 4.2rem;
  }

  .nav-main {
    display: none !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    gap: 5px;
  }

  .hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
  }

  .header-cta,
  .header-inner > .lang-switch,
  .header-inner > .dark-mode-toggle {
    display: none;
  }

  .header-inner {
    padding: 12px 6%;
    gap: 0.5rem;
  }

  .hero {
    padding: 100px 6%;
  }
}

@media (max-width: 650px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    min-height: 8rem;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 72px 5%;
  }

  .brand-wordmark {
    font-size: clamp(0.92rem, 4.2vw, 1.05rem);
  }

  .brand-mark-hex {
    width: 44px;
    height: 31px;
  }
}
