/* U&I Jobs — design system from the UX brief
   Career Blue #2563EB · Purple AI #7C3AED · Emerald #10B981
   Inter font · 8pt spacing · radii 8/12/16 · subtle shadows */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --green: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Roboto", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 36px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #6d28d9; text-decoration: none; }
.btn-secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: #eff6ff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: #eff6ff; text-decoration: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---- inputs ---- */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: #fff;
  font-family: inherit; color: var(--text); outline: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field { margin-bottom: 16px; }

/* ---- cards ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 24px;
}
.card-hover { transition: box-shadow .15s ease, transform .1s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- badges / status ---- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* ---- top nav (public) ---- */
.topbar {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---- layout container ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 32px; }
.container-narrow { max-width: 460px; margin: 0 auto; padding: 40px 24px; }

/* ---- hero ---- */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 100%);
  border-radius: var(--r-lg); padding: 64px 48px; text-align: center;
}
.hero .eyebrow {
  display: inline-block; margin-bottom: 16px; color: var(--purple);
  font-weight: 600; font-size: 14px; background: #ede9fe; padding: 6px 14px; border-radius: 999px;
}
.hero h1 { max-width: 720px; margin: 0 auto 16px; }
.hero p { max-width: 620px; margin: 0 auto 28px; font-size: 18px; color: var(--muted); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.grad-text {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- feature grid ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px; background: #eff6ff;
}

/* ---- app shell ---- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--border); padding: 24px 16px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  color: #374151; font-weight: 500; font-size: 15px; cursor: pointer;
}
.side-link:hover { background: #f3f4f6; text-decoration: none; }
.side-link.active { background: #eff6ff; color: var(--blue); font-weight: 600; }
.side-link .ic { width: 20px; text-align: center; }
.main { padding: 32px 40px; overflow-y: auto; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; }

/* ---- stat cards ---- */
.stat { padding: 20px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 34px; font-weight: 700; margin-top: 6px; }
.stat .value.blue { color: var(--blue); }
.stat .value.purple { color: var(--purple); }
.stat .value.green { color: var(--green); }

/* ---- circular progress (resume score) ---- */
.score-ring { position: relative; width: 130px; height: 130px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: #f1f5f9; font-size: 13px; font-weight: 500; }
.chip.blue { background: #dbeafe; color: #1e40af; }
.chip.amber { background: #fef3c7; color: #b45309; }

/* ---- question / accordion ---- */
.q-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; background: #fff; overflow: hidden; }
.q-head { padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.q-head:hover { background: #fafafa; }
.q-title { font-weight: 600; flex: 1; }
.q-body { padding: 0 18px 18px; display: none; }
.q-item.open .q-body { display: block; }
.q-body .ans-block { margin-top: 14px; }
.q-body .ans-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.q-body .tip { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r-sm); padding: 12px 14px; margin-top: 12px; }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-weight: 500; z-index: 100; opacity: 0;
  transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--error); }
.toast.success { background: var(--green); }

/* ---- misc ---- */
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.list-clean { list-style: none; }
.list-check li { padding: 6px 0 6px 26px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.list-dot li { padding: 6px 0 6px 26px; position: relative; }
.list-dot li::before { content: "→"; position: absolute; left: 0; color: var(--warning); font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-dark { border-color: rgba(37,99,235,.25); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: grid; place-items: center; padding: 48px; gap: 12px; color: var(--muted); }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 12px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--r-md); padding: 40px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: #eff6ff; }

.mode-pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #ede9fe; color: var(--purple);
}

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .side-nav { flex-direction: row; margin-top: 0; }
  .main { padding: 20px; }
  .container { padding: 20px; }
  .hero { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}

/* =========================================================================
   Cinematic dark landing — animated colour-motion background + liquid glass
   (asme-hero inspired, in U&I brand colours)
   ========================================================================= */
.motion-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% -10%, #0b1220 0%, #06070f 55%, #050509 100%);
}
.motion-bg span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  will-change: transform;
}
.motion-bg .m1 { width: 46vw; height: 46vw; background: #2563eb; opacity: .30; top: -10vh; left: -8vw;  animation: drift1 24s ease-in-out infinite; }
.motion-bg .m2 { width: 42vw; height: 42vw; background: #7c3aed; opacity: .30; top: 18vh;  right: -10vw; animation: drift2 28s ease-in-out infinite; }
.motion-bg .m3 { width: 40vw; height: 40vw; background: #10b981; opacity: .20; bottom: -14vh; left: 22vw; animation: drift3 32s ease-in-out infinite; }
.motion-bg .m4 { width: 34vw; height: 34vw; background: #ec4899; opacity: .16; top: 38vh;  left: 8vw;   animation: drift4 36s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); }   50% { transform: translate(18vw, 12vh); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); }   50% { transform: translate(-16vw, 16vh); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); }   50% { transform: translate(14vw, -14vh); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0); }   50% { transform: translate(-12vw, -10vh); } }
@media (prefers-reduced-motion: reduce) { .motion-bg span { animation: none; } }

/* Liquid glass surface */
.liquid-glass {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Landing layout (sits above the motion background) */
.landing { position: relative; z-index: 1; min-height: 100vh; color: #fff; }
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 12px 20px; border-radius: 999px;
}
.landing-links { display: flex; gap: 28px; }
.landing-links a { color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; text-decoration: none; }
.landing-links a:hover { color: #fff; }
.glass-pill {
  border-radius: 999px; padding: 10px 20px; color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .08s ease, background .15s ease;
}
.glass-pill:hover { text-decoration: none; }
.glass-pill:active { transform: translateY(1px); }

/* Soft dark scrim directly behind the hero text so the white heading stays
   readable no matter where the bright colour blobs drift behind it. */
.landing-hero {
  position: relative; text-align: center; padding: 72px 24px 60px; max-width: 880px; margin: 0 auto;
  background: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(5, 6, 13, 0.80), rgba(5, 6, 13, 0) 72%);
}
.landing-hero h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
.landing-hero p { font-size: 18px; color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 32px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.grad-text-2 {
  background: linear-gradient(120deg, #60a5fa, #a78bfa, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.glass-card { border-radius: 20px; padding: 26px; transition: transform .12s ease, background .15s ease; }
.glass-card:hover { transform: translateY(-3px); }
.glass-card h5 { color: #fff; margin-bottom: 8px; font-size: 17px; }
.glass-card p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.5; }

@media (max-width: 760px) {
  .landing-links { display: none; }
  .landing-hero h1 { font-size: 40px; }
}

/* =========================================================================
   GLOBAL DARK GLASS THEME — applies the cinematic look across the whole app
   (dashboard, resume, questions, mock interview, admin, auth pages).
   Achieved by re-pointing the design tokens to dark values + glassifying the
   components that hardcode light colours.
   ========================================================================= */
:root {
  --bg: #05060d;
  /* Card = dark tint + slight translucency: keeps the glass feel but stays
     readable over the bright moving blobs. */
  --card: rgba(17, 22, 38, 0.72);
  --text: #f1f4fa;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* App content sits above the fixed moving background */
#app { position: relative; z-index: 1; }

/* Cards → frosted glass (dark-tinted for contrast over the glow) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.card-hover:hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 14px 34px rgba(0, 0, 0, 0.45); }

/* Sidebar + public topbar → glass */
.sidebar {
  background: rgba(13, 17, 30, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
}
.topbar {
  background: rgba(13, 17, 30, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.side-link { color: rgba(255, 255, 255, 0.72); }
.side-link:hover { background: rgba(255, 255, 255, 0.08); }
.side-link.active { background: rgba(37, 99, 235, 0.20); color: #fff; }

/* Form controls → dark glass (incl. native dropdown list) */
.input, select, textarea {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
select option { background: #0b1220; color: #fff; }

/* Secondary / ghost buttons on dark */
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Chips → glass (they had light bg + inheriting light text = invisible) */
.chip { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); }
.chip.blue { background: rgba(37, 99, 235, 0.22); color: #bfdbfe; }
.chip.amber { background: rgba(245, 158, 11, 0.20); color: #fcd34d; }

/* Question accordion → glass */
.q-item {
  background: rgba(17, 22, 38, 0.66);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.q-head:hover { background: rgba(255, 255, 255, 0.06); }
.q-body .tip { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: rgba(255, 255, 255, 0.85); }

/* Dropzone on dark */
.dropzone { border: 2px dashed var(--border); }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: rgba(37, 99, 235, 0.12); }

/* Toast used var(--text) (now light) as its background — restore contrast */
.toast { background: rgba(15, 23, 42, 0.96); color: #fff; }
.toast.error { background: var(--error); }
.toast.success { background: var(--green); }

/* Feature icon tiles on dark (used on landing) */
.feature-icon { background: rgba(255, 255, 255, 0.06); }

/* ---- Mock Test: quiz options + answer review ---- */
.test-q { padding: 16px 18px; }
.test-q.answered { border-color: rgba(124, 58, 237, 0.55); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.25); }
.test-opts { display: flex; flex-direction: column; gap: 8px; }
.test-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.test-opt:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(96, 165, 250, 0.5); }
.test-opt input { width: auto; min-height: 0; margin: 0; accent-color: var(--purple); flex: none; }
.test-opt span { font-size: 14px; line-height: 1.4; }

.rev-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rev-opt {
  padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  font-size: 14px; color: rgba(255, 255, 255, 0.82);
}
.rev-opt.correct { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.55); color: #bbf7d0; }
.rev-opt.wrong { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.55); color: #fecaca; }
.rev-mark { font-weight: 800; margin-right: 6px; display: inline-block; min-width: 12px; }
.q-item.rev-ok { border-left: 3px solid var(--green); }
.q-item.rev-bad { border-left: 3px solid var(--error); }

/* ---- Matched roles (multi-role recommendations) ---- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.role-match {
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}
.role-match:hover { border-color: rgba(96, 165, 250, 0.45); }

/* ---- Dashboard interactive 3D hero (Spline + spotlight) ---- */
.spline-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 380px;
  border: 1px solid var(--border);
  background:
    radial-gradient(130% 130% at 82% -10%, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.10) 40%, rgba(5, 6, 13, 0.98) 68%),
    #05060d;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 14px 36px rgba(0, 0, 0, 0.45);
}
/* mouse-follow spotlight — sits above the base but below content, pure glow */
.spline-spot { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.spline-hero-inner { position: relative; z-index: 2; display: flex; min-height: 380px; }
.spline-hero-text {
  flex: 1 1 50%; max-width: 54%; padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.spline-eyebrow {
  align-self: flex-start; font-size: 13px; font-weight: 600; color: #c7d2fe;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}
.spline-hero-text h1 {
  font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0;
  background: linear-gradient(180deg, #f8fafc, #93a4c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spline-hero-text p { color: rgba(255, 255, 255, 0.74); font-size: 15px; line-height: 1.55; max-width: 460px; margin: 0; }
.spline-hero-3d { flex: 1 1 50%; position: relative; min-height: 380px; }
.spline-hero-3d spline-viewer { width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
  .spline-hero-inner { flex-direction: column; }
  .spline-hero-text { max-width: 100%; padding: 30px 24px 8px; }
  .spline-hero-text h1 { font-size: 32px; }
  .spline-hero-3d { min-height: 300px; }
}

/* ---- Auth (login) split layout with 3D ---- */
.auth-split {
  display: flex; max-width: 980px; margin: 40px auto; border-radius: 22px; overflow: hidden;
  min-height: 480px;
}
.auth-form-side {
  flex: 1 1 46%; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  background: rgba(17, 22, 38, 0.55);
}
.auth-3d-side {
  flex: 1 1 54%; position: relative; min-height: 480px;
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(37, 99, 235, 0.24), rgba(124, 58, 237, 0.10) 42%, rgba(5, 6, 13, 0.98) 70%),
    #05060d;
}
.auth-3d-side spline-viewer { width: 100%; height: 100%; display: block; }

@media (max-width: 820px) {
  .auth-split { flex-direction: column-reverse; margin: 20px auto; }
  .auth-form-side { padding: 28px 24px; }
  .auth-3d-side { min-height: 300px; }
}

/* Belt-and-suspenders: hide the Spline watermark badge if the JS strip is late. */
spline-viewer::part(logo) { display: none !important; }

/* ---- Landing hero: split layout with 3D robot ---- */
.landing-hero {
  display: flex; align-items: center; gap: 36px; text-align: left;
  max-width: 1160px; padding: 52px 24px 32px;
}
.landing-hero-copy { flex: 1 1 52%; }
.landing-hero-copy h1 { margin-bottom: 20px; }
.landing-hero-copy p { margin: 0 0 28px; }
.landing-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.landing-hero-3d {
  flex: 1 1 48%; position: relative; align-self: stretch; min-height: 440px;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.10) 42%, rgba(5, 6, 13, 0.0) 72%);
}
.landing-hero-3d spline-viewer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .landing-hero { flex-direction: column; text-align: center; max-width: 880px; }
  .landing-hero-copy { flex: none; width: 100%; }
  .landing-hero-cta { justify-content: center; }
  .landing-hero-3d { width: 100%; flex: none; min-height: 320px; }
}
