/* Janet mascot home — static, system fonts, no trackers */

:root {
  --bg-deep: #070a0f;
  --bg-card: rgba(18, 24, 38, 0.55);
  --text: #e8eef7;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.15);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --green: #4ade80;
  --border: rgba(148, 163, 184, 0.2);
  --radius: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mascot-wrap img,
  .orb {
    animation: none !important;
  }
  .video-frame video {
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: #000;
  font-weight: 600;
  z-index: 9999;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.hero-promise {
  margin: 0.75rem 0 1rem;
  max-width: 36ch;
}
.hero-promise-equation {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.hero-promise-w {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: var(--apex-radius-pill, 999px);
  background: var(--apex-tagline-w-bg);
  color: var(--apex-tagline-w-fg);
  font-weight: 800;
  margin-left: 0.15rem;
  vertical-align: middle;
  box-shadow: var(--apex-mascot-glow);
}
.hero-promise-gloss {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hero-promise-nocap {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--apex-sage-gold, #d4a857);
  letter-spacing: 0.04em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 22s ease-in-out infinite alternate;
}
.orb-a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: var(--teal);
  top: -8%;
  right: -5%;
}
.orb-b {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: var(--violet);
  bottom: 5%;
  left: -10%;
  animation-delay: -8s;
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-30px, 40px) scale(1.08);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 4rem;
}

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(
    from 220deg,
    #ef4444,
    #f97316,
    #eab308,
    #22c55e,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #ef4444
  );
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}
nav.site-nav .site-nav-sep {
  width: 1px;
  height: 1rem;
  background: var(--border);
  align-self: center;
  margin: 0 0.15rem;
}
nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal);
  outline: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 3rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding: 2rem 0 4rem;
  }
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero-copy h1 span {
  background: linear-gradient(120deg, var(--teal), var(--violet), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  color: #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.mascot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
@media (min-width: 880px) {
  .mascot-wrap {
    min-height: 420px;
  }
}

.mascot-glow {
  position: absolute;
  width: min(90%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  z-index: 0;
}

.mascot-wrap .hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  animation: mascot-float 6s ease-in-out infinite;
}

/* Video */
.video-section .video-lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.video-frame {
  max-width: min(100%, 420px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #030508;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Cards */
section.block {
  margin-top: 3rem;
}
section.block h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(16px);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--teal);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.links-grid a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.links-grid a:hover,
.links-grid a:focus-visible {
  border-color: var(--violet);
  background: var(--violet-dim);
  outline: none;
}

footer.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
footer.site-footer a {
  color: var(--teal);
  text-decoration: none;
}
footer.site-footer a:hover {
  text-decoration: underline;
}
