:root {
  --bg: #f7f8fb;
  --bg-alt: #eef1f7;
  --text: #0c1220;
  --muted: #5b6475;
  --accent: #0b59d8;
  --accent-soft: #e6efff;
  --card: #ffffff;
  --border: rgba(12, 18, 32, 0.1);
  --shadow: 0 24px 60px rgba(12, 18, 32, 0.12);
  --radius: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}

.nav-cta:focus-visible {
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.bg-orbit {
  position: fixed;
  inset: -40% auto auto -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle at 30% 30%, rgba(11, 89, 216, 0.2), transparent 60%);
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(12, 18, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 32, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at top right, black, transparent 70%);
  z-index: -3;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 251, 0.85);
  border-bottom: 1px solid rgba(12, 18, 32, 0.06);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  line-height: 1;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  height: auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.72rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn.primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-sheen {
  position: absolute;
  inset: -40% auto auto -40%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 20% 20%, rgba(11, 89, 216, 0.25), transparent 60%);
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card-sub {
  color: var(--muted);
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 80px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(12, 18, 32, 0.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-lead {
  color: var(--text);
  font-weight: 600;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.8;
}

.external-icon {
  display: inline-block;
  font-size: 0.85em;
  margin-left: 2px;
}

.split {
  background: var(--bg-alt);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: center;
}

.mission-body {
  padding-left: 28px;
  border-left: 1px solid rgba(12, 18, 32, 0.12);
}

.why {
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.why-copy {
  max-width: 440px;
  padding-right: 24px;
  border-right: 1px solid rgba(12, 18, 32, 0.08);
}

.why-cards {
  display: grid;
  gap: 12px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  box-shadow: 0 14px 30px rgba(12, 18, 32, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.12);
}

.why-card h3 {
  margin-bottom: 8px;
}

.why-card p {
  margin-bottom: 0;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.08);
}

.panel-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.site-footer {
  background: #0c1220;
  color: #e6ebf5;
  padding: 60px 0 30px;
}

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

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-text {
  color: rgba(230, 235, 245, 0.8);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: rgba(230, 235, 245, 0.8);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(230, 235, 245, 0.2);
  padding-top: 18px;
  font-size: 0.9rem;
  color: rgba(230, 235, 245, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 248, 251, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 15;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
  }

  .nav-cta {
    margin-top: 16px;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mission-body {
    padding-left: 0;
    border-left: none;
  }

  .why-copy {
    padding-right: 0;
    border-right: none;
  }
}
