:root {
  --background: #f9f9ff;
  --foreground: #151b2a;
  --surface: #ffffff;
  --surface-muted: #f1f3ff;
  --surface-low: #f1f3ff;
  --surface-highest: #dce2f6;
  --primary: #021938;
  --primary-2: #1a2e4e;
  --secondary: #a73826;
  --secondary-2: #fe785f;
  --text-muted: #44474e;
  --outline: #75777f;
  --inverse-surface: #2a3040;
  --shadow-ambient: 0 10px 20px rgba(26, 46, 78, 0.08);
  --shadow-deep: 0 24px 55px rgba(2, 25, 56, 0.2);
  --container: 1280px;
  --nav-height: 4rem;
  --radius-xl: 2rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.95rem;
  --radius-sm: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100dvh;
}

.site-content {
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

.section {
  width: 100%;
}

.section-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section-dark {
  background: var(--primary);
  color: #fff;
  position: relative;
}

.section-light {
  background: var(--surface);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}

.navbar {
  width: 100%;
  height: var(--nav-height);
  margin: 0;
  padding: 0 max(1rem, calc((100% - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 25, 56, 0.95);
  box-shadow: 0 8px 30px rgba(2, 25, 56, 0.18);
  backdrop-filter: blur(14px);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.4rem;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-nav {
  width: auto;
  height: 2.35rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.9rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 12px 28px rgba(167, 56, 38, 0.3);
}

.btn-primary:hover {
  background: #8f2e1f;
}

.btn-outline-on-dark,
.btn-ghost-on-dark {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost-on-dark {
  border-color: transparent;
  background: transparent;
  padding-inline: 0.25rem;
}

.btn-outline {
  color: var(--primary);
  border: 1px solid rgba(117, 119, 127, 0.28);
  background: #fff;
}

/* Footer styles from home.css */
.app-site-footer {
  background: var(--primary);
  color: #fff;
  position: relative;
  width: 100%;
}

.footer-top {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.25fr 2fr 1fr;
  gap: 3rem;
}

.footer-brand-block {
  display: grid;
  gap: 1.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
}

.footer-logo {
  height: 2.35rem;
  width: auto;
}

.footer-brand-block p,
.footer-app-block p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 26rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.globe-icon {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-column,
.footer-app-block {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.footer-column h3,
.footer-app-block h3 {
  margin: 0;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.05rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms ease;
}

.footer-column a:hover,
.legal-links a:hover {
  color: var(--secondary-2);
}

.footer-app-block .store-link {
  justify-content: flex-start;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.copyright {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms ease;
}

@media (max-width: 1200px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .nav-links {
    gap: 1.25rem;
    font-size: 0.95rem;
  }

  .desktop-only {
    display: none;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section-inner {
    width: min(calc(100% - 1rem), var(--container));
  }

  .navbar {
    height: auto;
    flex-wrap: wrap;
    padding: 0.85rem 0.9rem;
  }

  .brand-logo-nav {
    height: 2rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-actions {
    margin-left: auto;
  }

  .btn {
    min-height: 2.6rem;
    padding: 0.75rem 1rem;
  }
}
