/* CACHE-BUSTING: this file is linked as `home.css?v=<date>` from every page that
   uses it. **Bump that query string in each linking page whenever you edit this
   file**, or returning visitors keep a stale copy for up to four hours.

   That window is not adjustable: Cloudflare Pages ignores `_headers` for static
   assets — measured 2026-08-16, see web/_headers. The query string is the only
   lever, and forgetting it ships a page that is correct on the server and broken
   in the browser, which is a genuinely hard bug to see.

   Linked from: index.html, 404.html
*/

/* Baltiq Apps — parent-brand homepage.

   This sheet is deliberately separate from styles.css. That one carries the
   Cadens product palette (the app's Nocturne tokens); this one carries the
   parent brand's own palette from the homepage design, and the two token sets
   would collide if merged into a single :root.

   Do not write a path containing a star-slash sequence in a CSS comment — it
   closes the comment early and swallows the :root block below. */

:root {
  --bg: #0d0d12;
  --surface: #16161c;
  --surface-hi: #1d1d24;

  --text: #f4f4f7;
  --text-dim: #c9c9d1;
  --text-muted: #9a9aa6;
  --text-faint: #6e6e78;

  --violet: #8b5cf6;
  --violet-light: #b79cff;
  --magenta: #d6409f;
  --lime: #b4ff39;

  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --measure: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(60px, 10vw, 140px);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet-light); text-decoration: none; }
a:hover { color: var(--magenta); }

::selection { background: var(--violet); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---------- brand mark ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--violet), var(--magenta), var(--lime));
  flex: 0 0 auto;
}

/* ---------- fixed nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) var(--pad-x);
  background: rgba(13, 13, 18, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  width: 52px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.nav-toggle:hover { border-color: var(--violet); }

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* ---------- fullscreen menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.menu-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  opacity: 0.18;
  filter: blur(60px);
  pointer-events: none;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) var(--pad-x);
}

.menu-close {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.menu-close:hover { border-color: var(--magenta); color: var(--magenta); }

.menu-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
  padding: var(--pad-x);
  overflow-y: auto;
  position: relative;
}

.menu-col {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.menu-col--primary { gap: 18px; }
.menu-col--apps { gap: 14px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
}

.menu-link:hover { color: var(--violet); }

.menu-app {
  font-size: 20px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-app:hover { color: var(--text); }

.menu-app .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

.menu-app .cat {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 14vw, 160px) var(--pad-x) clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.orb--a {
  top: 10%;
  left: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--violet), transparent 65%);
  opacity: 0.5;
  animation: orbFloatA 14s ease-in-out infinite;
}

.orb--b {
  bottom: 5%;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--magenta), transparent 65%);
  opacity: 0.45;
  animation: orbFloatB 16s ease-in-out infinite;
}

.orb--c {
  top: 40%;
  right: 20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--lime), transparent 65%);
  opacity: 0.25;
  animation: orbFloatC 12s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.pill .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  background: linear-gradient(120deg, var(--text) 40%, var(--violet-light) 70%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--violet);
  color: var(--bg);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover { background: var(--violet-light); color: var(--bg); }

.btn--dark {
  background: var(--bg);
  color: var(--text);
}

.btn--dark:hover { background: var(--surface-hi); color: var(--text); }

.btn--text {
  padding: 14px 20px;
  color: var(--text-dim);
}

.btn--text:hover { color: var(--text); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  animation: bounceDown 2.2s ease-in-out infinite;
}

.scroll-cue .line {
  width: 1px;
  height: 24px;
  background: linear-gradient(var(--violet), transparent);
}

/* ---------- sections ---------- */

.section {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--measure);
  margin: 0 auto;
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 80px);
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker--violet { color: var(--violet); }
.kicker--magenta { color: var(--magenta); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.prose p { margin: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

/* ---------- app cards ---------- */

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

.app-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

a.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  color: inherit;
}

.app-card__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--bg);
  background: var(--violet);
}

.app-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.app-card__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.app-card__cat {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* A placeholder slot, not a product: dashed edge and no hover lift, so it can
   never be mistaken for something shippable. */
.app-card--soon {
  border-style: dashed;
  border-color: var(--hairline-strong);
  background: transparent;
}

.app-card--soon .app-card__badge {
  background: transparent;
  border: 1px dashed var(--hairline-strong);
  color: var(--text-faint);
}

/* ---------- cta band ---------- */

.cta-band {
  margin: 0 auto clamp(60px, 10vw, 120px);
  max-width: var(--measure);
  padding: clamp(48px, 8vw, 80px) var(--pad-x);
  border-radius: 28px;
  background: linear-gradient(120deg, var(--violet), var(--magenta) 60%, var(--lime));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--bg);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(48px, 8vw, 72px) var(--pad-x) clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-blurb {
  max-width: 340px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col .eyebrow { margin-bottom: 6px; }

.footer-col a {
  font-size: 15px;
  color: var(--text-dim);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- motion ---------- */

@keyframes orbFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

@keyframes orbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.12); }
}

@keyframes orbFloatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 25px) scale(0.95); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

.fadein { animation: fadeUp 0.9s var(--ease) both; }

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

/* ---------- 404 ---------- */

/* Cloudflare Pages serves web/404.html for any unmatched route, with a real 404
   status. Its presence is also what turns OFF the SPA fallback that was serving
   index.html at 200 for every junk path. */

.notfound {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 14vw, 160px) var(--pad-x) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.notfound-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.notfound-code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  background: linear-gradient(120deg, var(--text) 30%, var(--violet-light) 65%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.notfound-lede {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 36px;
}

.notfound-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: 15px;
}

.notfound-links a { color: var(--text-dim); }
.notfound-links a:hover { color: var(--text); }
