/* =========================================================
   System Interface Mockups — sleek browser-style frames
   ========================================================= */

.mockup {
  position: relative;
  border-radius: 14px;
  background: #0d1525;
  border: 1px solid rgba(94, 234, 212, 0.18);
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  font-family: var(--font-body);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Browser chrome */
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #131d33 0%, #0f1828 100%);
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  flex-shrink: 0;
}

.mockup-bar .dots {
  display: flex;
  gap: 6px;
}
.mockup-bar .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}
.mockup-bar .dots span:nth-child(1) { background: #ef4444; }
.mockup-bar .dots span:nth-child(2) { background: #f59e0b; }
.mockup-bar .dots span:nth-child(3) { background: #10b981; }

.mockup-bar .url {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 234, 212, 0.10);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.04em;
}

.mockup-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(94, 234, 212, 0.06), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(217, 119, 6, 0.04), transparent 50%);
}

/* App header bar (inside mockup) */
.m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.m-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e6edf5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-title .m-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #5eead4, #0e7c86);
  display: grid;
  place-items: center;
  color: #0b1220;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-display);
}

.m-tabs {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.m-tabs span {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.m-tabs span.active {
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
}

/* KPI cards */
.m-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.m-kpi {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(94, 234, 212, 0.10);
}

.m-kpi-label {
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.m-kpi-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #5eead4;
  letter-spacing: -0.02em;
  line-height: 1;
}

.m-kpi-trend {
  font-size: 8px;
  color: #4ade80;
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* Bars / chart */
.m-chart {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(94, 234, 212, 0.10);
  border-radius: 8px;
  padding: 10px;
  flex: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-chart-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.m-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 70px;
  padding-top: 4px;
}

.m-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, #5eead4, rgba(94, 234, 212, 0.2));
  border-radius: 3px 3px 0 0;
  position: relative;
  min-height: 8px;
  animation: bar-grow 1.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.m-bars .bar.alt {
  background: linear-gradient(180deg, #fbbf24, rgba(251, 191, 36, 0.2));
}

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
}

/* List rows */
.m-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 9px;
}

.m-row .avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #0e7c86);
  flex-shrink: 0;
  font-size: 7px;
  display: grid;
  place-items: center;
  color: #042f2e;
  font-weight: 700;
  font-family: var(--font-display);
}

.m-row .label {
  flex: 1;
  color: #cbd5e1;
}

.m-row .meta {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 8px;
}

.m-badge {
  padding: 1px 6px;
  font-size: 7.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  font-weight: 600;
}

.m-badge.ok { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.m-badge.warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.m-badge.info { background: rgba(94, 234, 212, 0.15); color: #5eead4; }
.m-badge.muted { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* Chat / LLM mockup */
.m-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0;
}

.m-bubble {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 9.5px;
  line-height: 1.5;
  max-width: 85%;
}

.m-bubble.user {
  background: linear-gradient(135deg, #0e7c86, #0a6169);
  color: #ecfeff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.m-bubble.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(94, 234, 212, 0.15);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.m-bubble .typing {
  display: inline-flex;
  gap: 3px;
}

.m-bubble .typing span {
  width: 4px;
  height: 4px;
  background: #5eead4;
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.m-bubble .typing span:nth-child(2) { animation-delay: 0.15s; }
.m-bubble .typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* Mobile phone frame */
.m-phone {
  width: 130px;
  margin: 0 auto;
  background: #050912;
  border-radius: 18px;
  padding: 6px;
  border: 1px solid rgba(94, 234, 212, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.m-phone-screen {
  background: linear-gradient(180deg, #0e1c30, #0a1424);
  border-radius: 13px;
  padding: 10px 8px;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-phone-notch {
  width: 36px;
  height: 4px;
  background: #050912;
  border-radius: 4px;
  margin: 0 auto 4px;
}

.m-payslip {
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 6px;
  padding: 8px;
  font-size: 8px;
}

.m-payslip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.m-payslip-row.total {
  border-top: 1px dashed rgba(94, 234, 212, 0.3);
  padding-top: 4px;
  margin-top: 4px;
  margin-bottom: 0;
  color: #5eead4;
  font-weight: 700;
}

/* Audit checklist */
.m-checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.m-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 5px;
  font-size: 9px;
}

.m-check-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #5eead4;
  font-size: 8px;
  font-weight: 700;
}

.m-check-box.checked {
  background: rgba(94, 234, 212, 0.18);
  border-color: #5eead4;
}

.m-check-item.done .label {
  color: #94a3b8;
}

/* Critical-path / Gantt */
.m-gantt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.m-gantt-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 8.5px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.m-gantt-track {
  height: 8px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 3px;
  position: relative;
}

.m-gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5eead4, #0e7c86);
}

.m-gantt-bar.crit {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

/* Inventory / movement table */
.m-table-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 8px;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.m-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 8px;
  padding: 6px 8px;
  font-size: 9px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.m-table-row .id {
  font-family: var(--font-mono);
  color: #5eead4;
}

/* Hero card mockup wrapper */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 460px;
  perspective: 1400px;
}

.hero-mockup .mockup {
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}

.hero-mockup .mockup:hover {
  transform: rotateY(-3deg) rotateX(1deg) translateY(-4px);
}

/* Floating mini-mockups around hero */
.hero-mockup .mini {
  position: absolute;
  background: linear-gradient(135deg, #131d33, #0d1525);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 10px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}

.hero-mockup .mini.one {
  top: -10px;
  left: -22px;
  animation-delay: 0s;
}

.hero-mockup .mini.two {
  bottom: 20px;
  right: -22px;
  animation-delay: 3s;
}

.hero-mockup .mini .ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
  border-radius: 6px;
  flex-shrink: 0;
}

.hero-mockup .mini .text {
  font-size: 9px;
  line-height: 1.3;
}

.hero-mockup .mini .text strong {
  color: #5eead4;
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

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

/* Card hover lift */
.project-card {
  padding-top: 0 !important;
  overflow: hidden;
}

.project-card > .mockup {
  margin: 0 0 var(--space-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-left: none;
  border-right: none;
  border-top: none;
  min-height: 220px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card > .project-head,
.project-card > h3,
.project-card > p,
.project-card > .project-impact,
.project-card > .project-stack {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.project-card > .project-head {
  padding-top: var(--space-5);
}

.project-card > .project-stack {
  padding-bottom: var(--space-6);
}

.project-card:hover .mockup {
  transform: translateY(-4px);
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(94, 234, 212, 0.25) inset;
}

/* Featured mockup */
.featured-visual {
  padding: 0 !important;
  background: transparent !important;
  min-height: auto !important;
}

.featured-visual .mockup {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@media (min-width: 980px) {
  .featured-visual .mockup {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }
}

@media (max-width: 979px) {
  .featured-visual .mockup {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border-top: 1px solid rgba(94, 234, 212, 0.18);
  }
}
