/* ==========================================================================
   BUMAI — shared design system
   Inspired by the confident-type / pill-nav / color-blocked studio look of
   studiomodular.be, reskinned around BUMAI's own night-sky photography
   (aurora, moon phases, satellite imagery) and set in Noto Sans (free,
   OFL/Apache-licensed, no paid webfonts).
   ========================================================================== */

:root {
  color-scheme: light;

  /* -- Palette -- */
  --c-bg: #f7f3ea;              /* paper / beige, default page surface */
  --c-bg-dark: #0b0f14;         /* deep space navy, hero + footer */
  --c-primary: #14322c;         /* deep aurora-teal green, dark UI surfaces */
  --c-primary-hover: rgba(20, 50, 44, 0.88);
  --c-secondary: #bcd8ff;       /* moonlight blue accent */
  --c-aurora: #33d6a6;          /* aurora teal accent, links / highlights */
  --c-aurora-soft: rgba(51, 214, 166, 0.16);
  --c-ember: #ff8a4c;           /* warm accent, used sparingly */
  --c-grey: #ece7da;            /* card / divider surface on beige */
  --c-line: rgba(11, 15, 20, 0.12);
  --c-line-dark: rgba(255, 255, 255, 0.16);
  --c-text: #0b0f14;
  --c-text-soft: rgba(11, 15, 20, 0.68);
  --c-text-on-dark: #f5f7f2;
  --c-text-on-dark-soft: rgba(245, 247, 242, 0.72);

  --radius-sm: 10px;
  --radius-md: clamp(16px, 1.6vw, 28px);
  --radius-lg: clamp(24px, 3vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-base: "Noto Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;

  --container: 1400px;
  --pad-page: clamp(1.1rem, 3vw, 2.5rem);
  --gap-section: clamp(4rem, 9vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--c-bg);
  font-family: var(--font-base);
  -webkit-text-size-adjust: 100%;
}

@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.75rem, 4.4vw + 1.4rem, 6.25rem); font-weight: 800; }
h2, .h2 { font-size: clamp(2rem, 2.6vw + 1rem, 4rem); }
h3, .h3 { font-size: clamp(1.4rem, 1.4vw + 0.9rem, 2.25rem); }
h4, .h4 { font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.5rem); font-weight: 600; }

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  border-radius: var(--radius-sm);
}

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

:focus-visible {
  outline: 2px solid var(--c-aurora);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-page);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-aurora);
  box-shadow: 0 0 0 0 var(--c-aurora-soft);
  animation: pulse 3.2s var(--ease) infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 0 var(--c-aurora-soft); }
  50% { opacity: 1; box-shadow: 0 0 0 7px var(--c-aurora-soft); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  background: transparent;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
}

.btn:hover { border-color: var(--c-aurora); background: var(--c-aurora-soft); }

.btn--solid {
  background: var(--c-bg-dark);
  border-color: var(--c-bg-dark);
  color: var(--c-text-on-dark);
}

.btn--solid:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.btn--on-dark {
  border-color: var(--c-line-dark);
  color: var(--c-text-on-dark);
}

.btn--on-dark:hover {
  border-color: var(--c-aurora);
  background: rgba(51, 214, 166, 0.14);
}

.btn__arrow { transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ==========================================================================
   Floating pill navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding-top: clamp(0.9rem, 1.5vw, 1.5rem);
  pointer-events: none;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  pointer-events: all;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 15, 20, 0.08);
}

.site-header__nav {
  pointer-events: all;
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 15, 20, 0.08);
}

@media (min-width: 860px) {
  .site-header__nav { display: flex; }
}

.site-header__nav a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--c-text);
  background: var(--c-secondary);
}

.site-header__cta {
  pointer-events: all;
  display: none;
}

@media (min-width: 860px) {
  .site-header__cta { display: inline-flex; }
}

.site-header__toggle {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 15, 20, 0.08);
  cursor: pointer;
}

@media (min-width: 860px) {
  .site-header__toggle { display: none; }
}

.site-header__toggle svg { width: 18px; height: 18px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  clip-path: circle(0% at calc(100% - 2.4rem) 2.4rem);
  transition: clip-path 420ms var(--ease);
  pointer-events: none;
}

html.nav-open .nav-overlay {
  clip-path: circle(150% at calc(100% - 2.4rem) 2.4rem);
  pointer-events: all;
}

.nav-overlay a {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
}

.nav-overlay a:hover { color: var(--c-aurora); }

html.nav-open { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: var(--gap-section);
}

.site-footer__top {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer__brand h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.site-footer__brand p {
  color: var(--c-text-on-dark-soft);
  max-width: 30rem;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer nav a {
  color: var(--c-text-on-dark-soft);
  font-size: 1.05rem;
  transition: color 180ms var(--ease);
}

.site-footer nav a:hover { color: var(--c-aurora); }

.site-footer__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-on-dark-soft);
  margin-bottom: 1rem;
  display: block;
}

.site-footer__bottom {
  border-top: 1px solid var(--c-line-dark);
  padding: 1.5rem 0 clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--c-text-on-dark-soft);
}

.site-footer__bottom a:hover { color: var(--c-aurora); }

.site-footer__socials {
  display: flex;
  gap: 0.6rem;
}

.site-footer__socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 247, 242, 0.08);
  transition: background 180ms var(--ease);
}

.site-footer__socials a:hover { background: var(--c-aurora); color: var(--c-bg-dark); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
