@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ededed;
  --muted: #8f8f8f;
  --muted-2: #6b6b6b;
  --accent: #5eead4;
  --warm: #e8a87c;
  --violet: #a78bfa;
  --px: 50vw;
  --py: 18vh;
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 10px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* ---------- Stage: Linear/Supabase ambient + 3D grid ---------- */
.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Corner washes only — never a centered blob that reads as a logo */
.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.fx-glow-tl {
  top: -18%;
  left: -12%;
  width: 52vw;
  height: 42vh;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 68%);
}

.fx-glow-tr {
  top: -22%;
  right: -16%;
  width: 48vw;
  height: 38vh;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 70%);
}

.fx-glow-card {
  left: 50%;
  top: 62%;
  width: 70vw;
  max-width: 720px;
  height: 52vh;
  transform: translate(-50%, -42%);
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.28) 0%,
    rgba(167, 139, 250, 0.12) 42%,
    transparent 70%
  );
  filter: blur(56px);
}

.fx-horizon {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.4) 22%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(167, 139, 250, 0.35) 78%,
    transparent
  );
  box-shadow: 0 0 28px 2px rgba(94, 234, 212, 0.2);
  opacity: 0.7;
}

.fx-grid3d {
  position: absolute;
  inset: 0;
  perspective: 720px;
  perspective-origin: 50% 26%;
}

.fx-grid3d-plane {
  position: absolute;
  left: -50%;
  top: 26%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotateX(64deg) translate3d(var(--gtx, 0px), var(--gty, 0px), 0);
  transform-origin: center top;
  will-change: transform;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 12%,
    #000 28%,
    rgba(0, 0, 0, 0.35) 62%,
    transparent 88%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 12%,
    #000 28%,
    rgba(0, 0, 0, 0.35) 62%,
    transparent 88%
  );
}

.fx-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 110% 80% at 50% 28%, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
}

.fx-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.07) 0%, transparent 70%);
  transform: translate3d(50vw, 18vh, 0) translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* Splash on tap / on entering */
.fx-ripples {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
}

.ripple::before,
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ripple::before {
  border: 1px solid rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.18);
  animation: ringOut 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ripple::after {
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.22),
    rgba(232, 168, 124, 0.08) 50%,
    transparent 72%
  );
  animation: bloomOut 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ripple.is-entry::before {
  border-color: rgba(255, 255, 255, 0.35);
  animation-duration: 0.9s;
}

.ripple.is-entry::after {
  animation-duration: 0.9s;
}

@keyframes ringOut {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(4.6); opacity: 0; }
}

@keyframes bloomOut {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(6.2); opacity: 0; }
}

.fx-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  background-size: 160px 160px;
}

.bg-glow {
  display: none;
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px clamp(18px, 3vw, 34px);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(94, 234, 212, 0.45),
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent
  );
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  flex: none;
  background: #070b12;
}

.mark3d {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
}

.nav-brand:hover .mark3d-glow {
  opacity: 1;
  filter: blur(8px);
}

.mark3d-scene {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  perspective: 180px;
  display: grid;
  place-items: center;
}

.mark3d-cube {
  width: 20px;
  height: 20px;
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(-22deg + var(--rx, 0deg)))
    rotateY(calc(-34deg + var(--ry, 0deg)));
  animation: markFloat 6.5s ease-in-out infinite;
}

.mark3d-face {
  position: absolute;
  inset: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  backface-visibility: hidden;
}

.mark3d-front {
  display: grid;
  place-items: center;
  color: #f4fffc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(145deg, #1a1a1a, #0a0a0a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateZ(10px);
  overflow: hidden;
}

.mark3d-front svg {
  width: 14px;
  height: 14px;
}

.mark3d-glow {
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.5), transparent 68%);
  filter: blur(7px);
  opacity: 0.75;
  animation: markGlow 4.8s ease-in-out infinite;
}

.mark3d-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 64%
  );
  background-size: 220% 100%;
  animation: markShine 5.8s ease-in-out infinite;
}

.mark3d-right {
  background: linear-gradient(180deg, #5eead4 0%, #2a9d8f 42%, #0d3d38 100%);
  transform: rotateY(90deg) translateZ(10px);
}

.mark3d-top {
  background: linear-gradient(135deg, #f5f5f5, #c7c7c7 55%, #8ee8dc);
  transform: rotateX(90deg) translateZ(10px);
}

@keyframes markFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@keyframes markShine {
  0%, 58% { background-position: 140% 0; }
  78%, 100% { background-position: -30% 0; }
}

@keyframes markGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.nav-word {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 18%, #d4d4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 12px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  color: #9a9a9a;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

[data-rise] {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(90deg, rgba(94, 234, 212, 0.7), rgba(255, 255, 255, 0.18), rgba(232, 168, 124, 0.65)) border-box;
  color: #d8d8d8;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(94, 234, 212, 0.12);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.hero-pill:hover {
  color: #fff;
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.22);
}

.hero-pill svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.hero-pill:hover svg {
  transform: translateX(2px);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18), 0 0 12px #5eead4;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16), 0 0 10px #5eead4; }
  50% { box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.08), 0 0 18px #5eead4; }
}

.hero-title {
  margin: 26px 0 0;
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
  background-image: linear-gradient(
    105deg,
    #ffffff 0%,
    #ffffff 22%,
    #7ff6e4 38%,
    #ffffff 52%,
    #f3c19a 68%,
    #c4b5fd 82%,
    #ffffff 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    rise 0.6s var(--ease) forwards,
    titleFlow 8s ease-in-out 0.6s infinite;
}

@keyframes titleFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lede {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--muted);
}

/* ---------- Card ---------- */
.card {
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    420px circle at var(--x, 50%) var(--y, 0%),
    rgba(94, 234, 212, 0.16),
    rgba(232, 168, 124, 0.08) 32%,
    transparent 52%
  );
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--spin),
    rgba(255, 255, 255, 0.06),
    rgba(94, 234, 212, 0.95),
    rgba(255, 255, 255, 0.1),
    rgba(232, 168, 124, 0.85),
    rgba(167, 139, 250, 0.7),
    rgba(94, 234, 212, 0.5),
    rgba(255, 255, 255, 0.06)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinHue 7s linear infinite;
}

@keyframes spinHue {
  to { --spin: 360deg; }
}

.card.is-lit::before {
  opacity: 1;
}

.card.is-lit {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(94, 234, 212, 0.12);
}

/* Frosted glass — Tailwind-equivalent: bg-white/5 border-white/10 backdrop-blur-md */
.auth {
  width: 100%;
  max-width: 400px;
  margin: 34px 0 0;
  padding: 20px;
  text-align: left;
  isolation: isolate;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth::before {
  opacity: 0.35;
  background: radial-gradient(
    320px circle at var(--x, 50%) var(--y, 0%),
    rgba(255, 255, 255, 0.12),
    transparent 58%
  );
}

.auth::after {
  display: none;
}

.auth.is-lit {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- Segmented role control ---------- */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.35);
}

.seg-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 7px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.seg[data-role="student"] .seg-thumb {
  transform: translateX(calc(100% + 4px));
}

.seg-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.seg-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}

.seg-item.active {
  background: transparent;
  color: #09090b;
  font-weight: 600;
  box-shadow: none;
}

.seg-item.active svg {
  opacity: 1;
  color: #111;
}

.seg-item:not(.active):hover {
  color: #ececec;
}

@media (prefers-reduced-motion: reduce) {
  .seg-thumb {
    transition: none;
  }
}

/* ---------- Tabs ---------- */
.auth-tabs {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  padding: 0 0 10px;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: color 0.18s ease;
}

.auth-tab:hover {
  color: #c4c4c4;
}

.auth-tab.active {
  color: #fff;
}

.auth-tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, #5eead4, #fff, #e8a87c);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.55);
  transition: transform 0.24s var(--ease), width 0.24s var(--ease);
}

/* ---------- Fields ---------- */
.field {
  position: relative;
  margin-bottom: 10px;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: -0.012em;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.field input:focus {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12), 0 0 24px rgba(94, 234, 212, 0.08);
}

.toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.toggle-pass:hover {
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.06);
}

.toggle-pass svg {
  width: 16px;
  height: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  margin-top: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    opacity 0.18s ease;
}

.btn:active {
  transform: translateY(0.5px);
}

.btn-primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 36px rgba(94, 234, 212, 0.18);
}

.btn-primary:hover {
  background: #f2f2f2;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 44px rgba(94, 234, 212, 0.32);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.7) 48%,
    rgba(94, 234, 212, 0.35) 52%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
  animation: sweep 2.8s var(--ease) infinite;
}

.btn-primary:hover::after {
  animation-duration: 0.85s;
}

@keyframes sweep {
  to {
    transform: translateX(110%);
  }
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-primary.is-success {
  background: #4ade80;
  color: #062314;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #d4d4d4;
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-ghost svg {
  width: 15px;
  height: 15px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: -0.011em;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chips li:hover {
  border-color: rgba(94, 234, 212, 0.35);
  color: #d9d9d9;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.12);
}

.chips kbd {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #b4b4b4;
  font-family: var(--mono);
  font-size: 0.68rem;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 0.76rem;
}

.foot a {
  color: inherit;
  text-decoration: none;
}
.foot a:hover { color: var(--text, #ededed); }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 100%;
  max-width: 340px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #131313;
  color: #ededed;
  font-size: 0.85rem;
  letter-spacing: -0.012em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.28s var(--ease);
}

.toast.success { border-color: rgba(74, 222, 128, 0.35); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast.is-out { animation: toastOut 0.22s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 28px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .nav {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .nav-meta {
    display: none;
  }
  .auth {
    margin-bottom: 8px;
  }
  #launch-btn {
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-rise] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-title,
  .hero-pill-dot,
  .card::after,
  .btn-primary::after,
  .nav-status-dot {
    animation: none;
  }
  .fx-cursor {
    display: none;
  }
  .fx-grid3d-plane {
    transform: rotateX(64deg);
  }
  .mark3d-cube,
  .mark3d-front::after,
  .mark3d-glow {
    animation: none;
  }
}
