/* Fonts (self-hosted, SIL Open Font License — see fonts/OFL.txt) */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #fdfdfd;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --text: #2b3644;
  --text-muted: #6b727c;
  --border: #e3e5e8;
  --accent-1: #2b3644;
  --accent-2: #4e555e;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --accent-solid: #2b3644;
  --shadow-sm: 0 1px 2px rgba(43, 54, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 54, 68, 0.08);
  --shadow-lg: 0 24px 64px rgba(43, 54, 68, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161c24;
    --bg-alt: #1d2530;
    --surface: #232c38;
    --text: #f3f4f6;
    --text-muted: #a3a9b1;
    --border: #2f3946;
    --accent-1: #fdfdfd;
    --accent-2: #a3a9b1;
    --accent-solid: #cbd0d6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #2b3644;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-full {
  height: 20px;
}

.logo-mark {
  height: 26px;
  width: auto;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #d5d9de;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #d5d9de;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:not(.active):hover {
  color: #fff;
}

.lang-btn.active {
  background: #4e555e;
  color: #fff;
}

.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 6px;
  background: #fdfdfd;
  color: #2b3644;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #e3e5e8;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2b3644;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #1f2833;
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  z-index: -1;
}

.hero::before {
  background: var(--accent-1);
  top: -220px;
  left: -140px;
}

.hero::after {
  background: var(--accent-2);
  top: -160px;
  right: -160px;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-solid);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section shared */

section h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Features */

.features {
  background: var(--bg-alt);
  padding: 100px 24px;
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-solid);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #2b3644;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid var(--accent-solid);
  border-radius: 999px;
  color: var(--accent-solid);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Enterprise */

.enterprise {
  padding: 100px 24px;
}

.enterprise-inner {
  max-width: 900px;
  margin: 0 auto;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.enterprise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.enterprise-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-solid);
}

.enterprise-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.enterprise-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* CTA */

.cta {
  padding: 100px 24px;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--accent-gradient);
  border-radius: 28px;
  padding: 72px 40px;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  margin: 0 0 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.cta .btn-primary {
  background: #fff;
  color: #2b3644;
}

.cta .btn-primary:hover {
  background: #e3e5e8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.footer-logo img {
  height: 16px;
  width: auto;
}

.footer-logo .logo-mark {
  height: 20px;
}

/* Responsive */

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .logo-full {
    display: none;
  }


  .hero {
    padding: 90px 20px 70px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .cta-inner {
    padding: 48px 24px;
    border-radius: 20px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer links */

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Legal pages */

a.logo {
  text-decoration: none;
}

.legal {
  padding: 64px 24px 96px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.legal h1 {
  font-size: 2.25rem;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 36px 0 8px;
}

.legal p {
  margin: 0 0 12px;
}

.legal a {
  color: var(--text);
}

.legal-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

mark.todo {
  background: #fde68a;
  color: #2b3644;
  padding: 0 4px;
  border-radius: 3px;
}

/* Dark mode adjustments */

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: #fdfdfd;
    color: #2b3644;
  }

  .btn-primary:hover {
    background: #e3e5e8;
  }

  .feature-icon {
    background: #4e555e;
  }

  .cta-inner {
    background: linear-gradient(135deg, #2b3644, #3a4553);
    border: 1px solid var(--border);
  }
}

/* Side nav (small screens) */

.menu-toggle,
.menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle svg,
.menu-close svg {
  width: 22px;
  height: 22px;
  stroke: #fdfdfd;
}

.side-nav,
.side-nav-backdrop {
  display: none;
}

@media (max-width: 640px) {
  .nav-right {
    display: none;
  }

  .menu-toggle,
  .menu-close {
    display: inline-flex;
  }

  .side-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(31, 40, 51, 0.5);
  }

  .side-nav-backdrop[hidden] {
    display: none;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(300px, 85vw);
    padding: 16px 20px 24px;
    background: #2b3644;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  .side-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .side-nav-logo {
    height: 18px;
    width: auto;
  }

  .side-nav-links {
    display: flex;
    flex-direction: column;
  }

  .side-nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #d5d9de;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
  }

  .side-nav-link:hover {
    color: #fff;
  }

  .side-nav-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .side-nav-cta {
    align-self: stretch;
    text-align: center;
    padding: 12px 18px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-nav {
    transition: none;
  }
}
