/* =========================================================
   FINAL VISUAL SYSTEM PATCH
   Restores dark themed lower sections, cinematic panels,
   proof layouts, and consistent premium site surfaces
   ========================================================= */

/* ---------- Base helpers ---------- */
.site-bg {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f8fafc 45%, #f5f7fb 100%);
}

.nav-link {
  color: #475569;
  transition: all 180ms ease;
}
.nav-link:hover {
  color: #0f172a;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f97316;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 2rem;
  align-items: start;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-top: 0.4rem;
}

.section-copy {
  color: #64748b;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- Premium cards ---------- */
.soft-card,
.universe-card,
.project-card,
.metric-card,
.cred-card,
.hero-side-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
}

/* ---------- Universe / project helpers ---------- */
.universe-card,
.project-card {
  border-radius: 1.9rem;
  padding: 1.5rem;
}

.universe-card h3,
.project-card h3 {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.8rem;
}

.universe-card p,
.project-card p {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #64748b;
}

.universe-accent {
  width: 56px;
  height: 6px;
  border-radius: 999px;
}

.universe-accent.orange {
  background: linear-gradient(90deg, #f97316, #fb923c);
}
.universe-accent.blue {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.universe-accent.mix {
  background: linear-gradient(90deg, #f97316, #3b82f6);
}

.project-badge,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,0.24);
  background: rgba(255,247,237,0.86);
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-pill {
  border-color: rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.86);
  color: #334155;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.20);
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  font-weight: 700;
  transition: all 180ms ease;
  box-shadow: 0 10px 24px rgba(15,23,42,0.04);
}

.project-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.08);
  border-color: rgba(59,130,246,0.25);
}

/* ---------- Metrics ---------- */
.metric-card {
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-label {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.98rem;
}

/* ---------- Proof / CTA DARK SYSTEM ---------- */
.proof-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow:
    0 24px 70px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
}

.proof-box {
  border-radius: 1.7rem;
  padding: 1.7rem 1.7rem 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.18), transparent 28%),
    linear-gradient(135deg, #111827 0%, #0b1c48 55%, #09122d 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.proof-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfdbfe;
  opacity: 0.95;
}

.proof-box h3 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.proof-box p {
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.86);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.proof-mini {
  border-radius: 1.35rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 16px 36px rgba(15,23,42,0.04);
}

.proof-mini span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.7rem;
}

.proof-mini b {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 800;
}

@media (max-width: 980px) {
  .proof-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Standalone dark CTA panel ---------- */
.cta-panel {
  border-radius: 2rem;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.18), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #081633 55%, #071126 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 30px 70px rgba(15,23,42,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: white;
}

.cta-panel .eyebrow {
  color: #fdba74;
}

.cta-panel h2,
.cta-panel h3 {
  color: #ffffff;
}

.cta-panel p {
  color: rgba(255,255,255,0.82);
}

/* ---------- Credibility cards ---------- */
.cred-card {
  border-radius: 2rem;
  padding: 1.6rem;
}

.cred-metric {
  border-radius: 1.4rem;
  padding: 1.2rem 1.25rem;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 16px 32px rgba(15,23,42,0.04);
}

.cred-metric strong {
  display: block;
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 800;
}

.cred-metric span {
  display: block;
  margin-top: 0.55rem;
  color: #64748b;
  line-height: 1.75;
}

/* ---------- Hero ORBS visual ---------- */
.hero-visual-shell {
  display: grid;
  gap: 1.25rem;
}

.hero-holo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.72)),
    radial-gradient(circle at top right, rgba(96,165,250,0.16), transparent 38%),
    radial-gradient(circle at top left, rgba(249,115,22,0.12), transparent 32%);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(18px);
}

.hero-holo-header {
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.1rem 0;
}

.hero-holo-header span {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  display: block;
}
.hero-holo-header span:nth-child(1) { background: #f97316; }
.hero-holo-header span:nth-child(2) { background: #3b82f6; }
.hero-holo-header span:nth-child(3) { background: #cbd5e1; }

.hero-holo-core {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0.5rem 1rem 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at center, rgba(59,130,246,0.08), transparent 34%),
    radial-gradient(circle at center, rgba(249,115,22,0.07), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,252,0.88));
}

.holo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 86%);
  opacity: 0.7;
}

.holo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.25);
}

.ring-1 { width: 24%; height: 24%; animation: holoSpin 18s linear infinite; }
.ring-2 { width: 42%; height: 42%; animation: holoSpinReverse 22s linear infinite; }
.ring-3 { width: 60%; height: 60%; animation: holoSpin 30s linear infinite; }
.ring-4 { width: 78%; height: 78%; animation: holoSpinReverse 36s linear infinite; }

.holo-sweep {
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 305deg,
    rgba(59,130,246,0.20) 330deg,
    rgba(249,115,22,0.16) 346deg,
    transparent 360deg
  );
  mask-image: radial-gradient(circle at center, transparent 0 18%, black 26% 74%, transparent 82%);
  animation: holoSweep 7s linear infinite;
  opacity: 0.9;
}

.holo-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.holo-center-inner {
  width: 19%;
  height: 19%;
  min-width: 110px;
  min-height: 110px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.95), rgba(226,232,240,0.88));
  border: 1px solid rgba(59,130,246,0.20);
  box-shadow:
    0 0 30px rgba(59,130,246,0.14),
    0 0 60px rgba(249,115,22,0.08);
  animation: corePulse 4.8s ease-in-out infinite;
}

.holo-core-label {
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f172a;
}

.holo-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.holo-links line {
  stroke: rgba(100,116,139,0.42);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}

.holo-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  animation: nodeFloat 5.5s ease-in-out infinite;
}

.holo-node .node-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #3b82f6);
  box-shadow:
    0 0 0 6px rgba(59,130,246,0.06),
    0 0 24px rgba(59,130,246,0.20);
}

.holo-node .node-label {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148,163,184,0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}

.node-qbaix { top: 12%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-xlp   { top: 28%; right: 9%; animation-delay: 0.8s; }
.node-xpadi { bottom: 22%; right: 14%; animation-delay: 1.6s; }
.node-xaipt { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.node-mos   { bottom: 22%; left: 9%; animation-delay: 3.2s; }
.node-unios { top: 28%; left: 7%; animation-delay: 4s; }

.hero-holo-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.holo-stat {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.62);
  padding: 0.9rem 1rem;
}

.holo-stat .stat-k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.holo-stat strong {
  font-size: 1rem;
  color: #0f172a;
}

.hero-side-panel {
  display: grid;
  gap: 1rem;
}

.hero-side-box {
  border-radius: 1.7rem;
  padding: 1.25rem;
}

.hero-side-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.hero-side-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(148,163,184,0.25);
}

.hero-side-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-side-row span {
  color: #64748b;
  font-weight: 700;
}

.hero-side-row b {
  color: #0f172a;
  font-weight: 800;
}

.hero-world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.85rem;
}

.hero-world-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.82);
  font-weight: 800;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

/* ---------- Mahira cover ---------- */
.mahira-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.4rem;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}

/* ---------- Motion ---------- */
@keyframes holoSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes holoSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to   { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes holoSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 30px rgba(59,130,246,0.14),
      0 0 60px rgba(249,115,22,0.08);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 42px rgba(59,130,246,0.20),
      0 0 84px rgba(249,115,22,0.12);
  }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.node-qbaix,
.node-xaipt {
  animation-name: nodeFloatCenter;
}

@keyframes nodeFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-visual-shell {
    margin-top: 2rem;
  }

  .hero-holo-core {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .hero-holo-footer {
    grid-template-columns: 1fr;
  }

  .hero-world-grid {
    grid-template-columns: 1fr 1fr;
  }

  .holo-node .node-label {
    font-size: 0.68rem;
    padding: 0.35rem 0.6rem;
  }

  .holo-core-label {
    font-size: 0.58rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}
.nav-link.is-active {
  color: #0f172a;
  font-weight: 800;
}

.nav-link.is-active::after {
  width: 100%;
}

.mobile-nav-link.is-active {
  background: linear-gradient(90deg, rgba(249,115,22,0.10), rgba(59,130,246,0.10));
  border-color: rgba(59,130,246,0.22);
}
body {
  animation: pageFadeIn 280ms ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-link,
.mobile-nav-link,
.back-to-top,
a[class*="rounded-2xl"] {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.project-link:hover,
a[class*="rounded-2xl"]:hover {
  transform: translateY(-1px);
}