/* ===== Fonts (self-hosted) ===== */
@font-face {
  font-family: 'Superfortress';
  src: url('/assets/fonts/Superfortress.ttf') format('truetype');
  font-display: swap;
}
/* Manrope: variable weight 400..800 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk: variable weight 400..700 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Design tokens ===== */
:root {
  --periwinkle: #8794FE;
  --periwinkle-300: #C2C8FF;
  --periwinkle-400: #A3ADFF;
  --periwinkle-soft: #D6DAFF;
  --peach: #FFD594;
  --peach-200: #FFE4BA;
  --success: #6FCF97;
  --alert: #F19393;

  --ink-950: #0C0C12;
  --ink-925: #0F0F16;
  --ink-900: #14141C;
  --ink-880: #17171F;
  --ink-870: #191924;
  --ink-850: #1A1A26;
  --ink-830: #1C1C28;
  --ink-800: #23232F;
  --ink-780: #2E2E3D;
  --ink-500: #6E6E83;
  --ink-450: #8E8EA3;
  --ink-400: #A6A6BD;
  --ink-350: #A6A6BD;
  --ink-300: #CFCFDD;
  --ink-200: #E7E7F0;
  --ink-50:  #F6F5FB;

  --text: var(--ink-200);
  --text-hi: var(--ink-50);
  --text-mid: var(--ink-400);
  --text-quiet: var(--ink-450);
  --text-dim: #5A5A70;

  --border-neutral: rgba(208, 211, 234, 0.78);
  --border-neutral-soft: rgba(208, 211, 234, 0.55);
  --border-neutral-mid: rgba(208, 211, 234, 0.64);
  --border-hair: #1A1A26;
  --border-panel: #23232F;

  --section-alt: #0A0A10;
}

/* ===== Reset + globals ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(135, 148, 254, 0.32); color: #fff; }
img { display: block; }
a { color: inherit; }

/* Keyboard focus (pointer users unaffected) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--periwinkle);
  color: var(--ink-950);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

/* ===== Animations ===== */
@keyframes tailFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(12, 12, 18, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hair);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav__brand-icon { width: 32px; height: 32px; }
.nav__brand-name {
  font-family: 'Superfortress', sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text-hi);
}
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  padding: 9px 14px;
  border-radius: 5px;
  transition: color .16s ease;
}
.nav__link:hover { color: var(--text-hi); }
.nav__link--home { color: var(--ink-400); }
.nav__link--home:hover { color: var(--text-hi); }

/* ===== Buttons (shared) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease;
  background: transparent;
}
.btn--primary {
  color: var(--text-hi);
  padding: 12px 20px;
  font-size: 15px;
  border-color: var(--periwinkle);
  box-shadow: 4px 4px 0 var(--periwinkle);
}
.btn--primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--periwinkle);
}
.btn--primary-sm {
  color: var(--text-hi);
  padding: 9px 16px;
  font-size: 14px;
  border-color: var(--periwinkle);
  box-shadow: 3px 3px 0 var(--periwinkle);
}
.btn--primary-sm:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--periwinkle);
}
.btn--secondary {
  color: var(--periwinkle-soft);
  background: var(--ink-900);
  padding: 12px 20px;
  font-size: 15px;
  border-color: var(--border-neutral);
  box-shadow: 4px 4px 0 var(--border-neutral);
}
.btn--secondary:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--border-neutral);
  border-color: var(--periwinkle);
}
.btn--ghost {
  color: var(--ink-400);
  padding: 12px 14px;
  font-size: 14px;
}
.btn--ghost:hover { color: var(--periwinkle-300); }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 28px 76px;
  text-align: center;
  border-bottom: 1px solid var(--border-hair);
}
.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(135, 148, 254, 0.28), rgba(135, 148, 254, 0));
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.hero__deco {
  position: absolute;
  border-radius: 7px;
  background: var(--ink-870);
  border: 2px solid var(--ink-780);
}
.hero__deco--corner  { top: 120px; left: 8%;  width: 26px; height: 26px; transform: rotate(18deg); }
.hero__deco--peach {
  top: 230px; right: 11%; width: 20px; height: 20px;
  background: var(--peach); border: none; border-radius: 6px;
  transform: rotate(-14deg); opacity: .5;
}
.hero__deco--periwinkle {
  bottom: 80px; left: 14%; width: 16px; height: 16px;
  background: var(--periwinkle); border: none; border-radius: 5px;
  transform: rotate(22deg); opacity: .6;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero__mascot {
  width: 172px;
  height: 172px;
  object-fit: contain;
  animation: tailFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
  margin: 0 auto;
}
.hero__title {
  font-family: 'Superfortress', sans-serif;
  font-weight: 400;
  font-size: 82px;
  line-height: 0.98;
  margin: 14px 0 0;
  color: var(--text-hi);
  letter-spacing: 0.01em;
}
.hero__tagline {
  font-size: 21px;
  line-height: 1.55;
  color: var(--periwinkle-300);
  margin: 20px auto 0;
  max-width: 560px;
  font-weight: 500;
}
.hero__meta {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-quiet);
  margin: 12px auto 0;
  max-width: 520px;
}
.hero__cta { margin-top: 30px; padding: 13px 22px; font-size: 15px; }

/* ===== Software section ===== */
.software {
  padding: 76px 28px 40px;
}
.software__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.software__header {
  text-align: center;
  margin-bottom: 44px;
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.software__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 40px;
  margin: 10px 0 0;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.software__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ===== Product card ===== */
.product {
  display: grid;
  grid-template-columns: minmax(0, 44%) 1fr;
  border-radius: 8px;
  border: 2px solid var(--border-neutral);
  background: var(--ink-900);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--border-neutral);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.product:hover {
  border-color: var(--periwinkle);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--periwinkle);
}
.product--soft {
  border-style: dashed;
  background: #121218;
  box-shadow: 6px 6px 0 var(--border-neutral-soft);
}
.product--soft:hover {
  /* placeholder card doesn't lift */
  border-color: var(--border-neutral);
  transform: none;
  box-shadow: 6px 6px 0 var(--border-neutral-soft);
}
.product__deck-panel {
  padding: 22px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(135, 148, 254, 0.14), rgba(135, 148, 254, 0) 60%),
    var(--ink-925);
  border-right: 1px solid var(--ink-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.product--soft .product__deck-panel {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(135, 148, 254, 0.10), rgba(135, 148, 254, 0) 60%),
    #0E0E14;
}
.product__body {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product__header {
  display: flex;
  align-items: center;
  gap: 15px;
}
.product__icon { width: 56px; height: 56px; object-fit: contain; }
.product__icon--zv { transform: rotate(-4deg); }
.product__icon--tb { transform: rotate(3deg); border-radius: 12px; }
.product__icon--fd { transform: rotate(4deg); width: 58px; height: 58px; }
.product__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 29px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  line-height: 1;
}
.product__name--muted { color: var(--text); }
.product__badges { display: flex; gap: 7px; margin-top: 9px; }
.product__desc {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  margin: 20px 0 16px;
  max-width: 460px;
  font-weight: 500;
}
.product__desc--muted { color: var(--ink-300); }
.product__features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.product__cta { align-self: flex-start; }
.product__cta-quiet {
  align-self: flex-start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6E6E83;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}
.badge--live {
  background: rgba(135, 148, 254, 0.12);
  border-color: rgba(135, 148, 254, 0.32);
  color: var(--periwinkle-400);
}
.badge--soon {
  background: rgba(255, 213, 148, 0.1);
  border-color: rgba(255, 213, 148, 0.3);
  color: var(--peach);
}
.badge--platform {
  background: var(--ink-870);
  border-color: var(--ink-780);
  color: var(--ink-400);
}

/* ===== Feature chips ===== */
.chip {
  padding: 6px 12px;
  border-radius: 5px;
  background: var(--ink-870);
  border: 1px solid var(--ink-800);
  color: var(--ink-400);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.chip--muted {
  background: var(--ink-880);
  color: var(--ink-450);
}

/* ===== Deck (fanned screenshot cards) ===== */
.deck {
  position: relative;
  width: 100%;
  height: 340px;
}
.deck__card {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 184px;
  height: 286px;
  transform-origin: bottom center;
  transition: transform .75s cubic-bezier(.34, 1.16, .5, 1), box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: #101018;
  border: 2px solid var(--border-neutral);
}
.deck__card:hover { border-color: var(--periwinkle); }
.deck__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.deck__card-img--center { object-position: top center; }
.deck__triangle {
  position: absolute;
  top: 9px;
  left: 10px;
  color: var(--periwinkle);
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.deck__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(to top, rgba(8, 8, 13, 0.96), rgba(8, 8, 13, 0));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deck__caption-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-hi);
}
.deck__caption-expand {
  font-size: 12px;
  color: var(--periwinkle-300);
}
.deck__hint {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 6, 10, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
}
.lightbox--open { display: flex; }
.lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 74vh;
}
.lightbox__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .2s ease;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lightbox__meta {
  text-align: center;
  min-width: 260px;
}
.lightbox__meta-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
}
.lightbox__meta-cap {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 2px;
}
.lightbox__meta-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.lightbox__btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--ink-870);
  border: 2px solid var(--border-neutral-mid);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .12s ease;
}
.lightbox__btn:hover { border-color: var(--periwinkle); }
.lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border-hair);
  padding: 44px 28px 40px;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.footer__brand { max-width: 320px; }
.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer__brand-icon { width: 30px; height: 30px; }
.footer__brand-name {
  font-family: 'Superfortress', sans-serif;
  font-size: 18px;
  color: var(--text-hi);
}
.footer__blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-quiet);
  margin: 14px 0 0;
}
.footer__columns {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer__col-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__link {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink-400);
  transition: color .12s ease;
}
.footer__link:hover { color: var(--periwinkle-300); }
.footer__link--dim {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
}
.footer__bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Under-construction page (About / Contact) ===== */
.uc-shell {
  min-height: 100vh;
  background: var(--ink-950);
  display: flex;
  flex-direction: column;
}
.uc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-hair);
}
.uc-nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.uc-nav__brand-icon { width: 32px; height: 32px; }
.uc-nav__brand-name {
  font-family: 'Superfortress', sans-serif;
  font-size: 19px;
  color: var(--text-hi);
}
.uc-nav__home {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  padding: 9px 14px;
  border-radius: 5px;
  transition: color .12s ease;
}
.uc-nav__home:hover { color: var(--text-hi); }
.uc-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  position: relative;
  overflow: hidden;
}
.uc-main__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 440px;
  background: radial-gradient(closest-side, rgba(135, 148, 254, 0.22), rgba(135, 148, 254, 0));
  pointer-events: none;
}
.uc-card {
  position: relative;
  text-align: center;
  max-width: 520px;
}
.uc-card__mascot {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: tailFloat 6s ease-in-out infinite;
  margin: 0 auto;
}
.uc-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(255, 213, 148, 0.1);
  border: 2px solid rgba(255, 213, 148, 0.35);
  box-shadow: 3px 3px 0 rgba(255, 213, 148, 0.35);
  color: var(--peach);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.uc-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 42px;
  margin: 20px 0 0;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.uc-card__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-400);
  margin: 16px 0 0;
}
.uc-card__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.uc-card__mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--periwinkle-300);
  background: var(--ink-900);
  border: 2px solid var(--border-neutral);
  box-shadow: 4px 4px 0 var(--border-neutral);
  padding: 14px 22px;
  border-radius: 6px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.uc-card__mail:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--border-neutral);
  border-color: var(--periwinkle);
}
.uc-card__back {
  margin-top: 30px;
  display: inline-block;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-quiet);
  transition: color .12s ease;
}
.uc-card__back:hover { color: var(--periwinkle-300); }
