/* ============================================================
   WORK SHOWCASE SECTION
============================================================ */
.work-showcase { background: var(--bg-alt); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.work-desc {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 0.97rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.work-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  border: 1px solid rgba(46,107,79,0.18);
}

/* ---- Browser mockup ---- */
.work-preview-wrap { position: relative; }

.work-browser {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(22,32,24,0.07);
  position: relative;
  background: #f0f2f5;
}

.work-browser-chrome {
  background: #1c1c1e;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.wb-urlbar {
  flex: 1;
  margin: 0 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
  text-align: center;
}

/* mini portal body */
.work-browser-body {
  display: flex;
  height: 320px;
}

.wm-sidebar {
  width: 52px;
  background: #111827;
  flex-shrink: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wm-sidebar-brand {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 6px;
  margin-bottom: 10px;
}
.wm-nav-item {
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.wm-active {
  background: var(--green);
}

.wm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wm-topbar {
  height: 36px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  flex-shrink: 0;
}
.wm-body {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wm-kpi {
  background: #fff;
  border-radius: 6px;
  padding: 8px 8px 6px;
  border: 1px solid #e8edf2;
}
.wm-kpi-val {
  height: 10px;
  background: #1a202c;
  border-radius: 3px;
  margin-bottom: 5px;
  width: 60%;
}
.wm-kpi-lbl {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 80%;
}

.wm-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e8edf2;
  padding: 8px;
  flex-shrink: 0;
}
.wm-card-hdr {
  height: 8px;
  background: #1a202c;
  border-radius: 3px;
  width: 30%;
  margin-bottom: 8px;
}

.wm-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}
.wm-bar {
  flex: 1;
  background: linear-gradient(to top, #2E6B4F, #4aad7a);
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}
.wm-bar-accent {
  opacity: 1;
}

.wm-table-card { flex: 1; }
.wm-row {
  height: 8px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-bottom: 7px;
}
.wm-row:last-child { margin-bottom: 0; }

/* play button overlay */
.work-browser-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  backdrop-filter: blur(1px);
}
.work-browser-overlay:hover { background: rgba(17, 24, 39, 0.3); }
.work-browser-overlay svg { filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)); transition: transform 0.2s ease; }
.work-browser-overlay:hover svg { transform: scale(1.08); }
.work-browser-overlay span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* responsive */
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-browser-body { height: 260px; }
}


/* ============================================================
   DEMO MODAL OVERLAY
============================================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.demo-modal.open {
  opacity: 1;
  pointer-events: all;
}
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.8);
  backdrop-filter: blur(6px);
}
.demo-modal-frame {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  height: min(820px, 92vh);
  background: #f0f2f5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.demo-modal.open .demo-modal-frame {
  transform: translateY(0);
}

.p-load-state {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: #334155;
  text-align: center;
}

.p-load-state span {
  max-width: 480px;
  color: #64748b;
  line-height: 1.55;
}

.p-load-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #dbe5df;
  border-top-color: #2e6b4f;
  border-radius: 50%;
  animation: p-spin 0.8s linear infinite;
}

.p-load-error strong {
  color: #991b1b;
}

.p-retry-demo {
  margin-top: 4px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  background: #2e6b4f;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

/* macOS-style chrome bar */
.demo-chrome {
  background: #1c1c1e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }
.chrome-url {
  flex: 1;
  margin: 0 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', monospace;
  letter-spacing: 0.01em;
  text-align: center;
}
.chrome-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.chrome-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

#portal-app {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

/* ============================================================
   DEMO TRIGGER SECTION
============================================================ */
.demo-strip {
  background: var(--green-darker, #123020);
  padding: 60px 28px;
  text-align: center;
}
.demo-strip .eyebrow { color: #6ee7a8; margin-bottom: 10px; }
.demo-strip-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.demo-strip-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--green-darker, #123020);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.btn-demo svg { flex-shrink: 0; }

/* ============================================================
   PORTAL LAYOUT
============================================================ */
.portal {
  display: flex;
  width: 100%;
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #1a202c;
  background: #f0f2f5;
  min-height: 0;
}

/* ---- Sidebar ---- */
.p-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #111827;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.p-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.p-brand-icon {
  width: 28px;
  height: 28px;
  background: #2E6B4F;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.p-brand-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.p-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}
.p-nav-section {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  padding: 10px 10px 3px;
  font-weight: 700;
}
.p-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}
.p-nav-item:hover:not(.disabled) {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}
.p-nav-item.active {
  background: #2E6B4F;
  color: #fff;
}
.p-nav-item.disabled {
  opacity: 0.3;
  cursor: default;
}
.p-sidebar-footer {
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.p-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
}
.p-avatar {
  width: 30px;
  height: 30px;
  background: #2E6B4F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.p-user-name { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); display: block; }
.p-user-role { font-size: 0.66rem; color: rgba(255,255,255,0.35); display: block; }

/* ---- Main area ---- */
.p-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.p-topbar {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.p-topbar-title { font-weight: 700; font-size: 0.95rem; color: #1a202c; }
.p-topbar-right { display: flex; align-items: center; gap: 10px; }
.p-badge-demo {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #fde68a;
}
.p-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  transition: background 0.14s;
}
.p-icon-btn:hover { background: #e2e8f0; }

.p-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 22px;
}

/* ---- KPI cards ---- */
.p-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.p-kpi {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e8edf2;
}
.p-kpi-label { font-size: 0.72rem; color: #64748b; font-weight: 500; margin-bottom: 7px; }
.p-kpi-value { font-size: 1.35rem; font-weight: 700; color: #1a202c; margin-bottom: 5px; line-height: 1; }
.p-kpi-delta { font-size: 0.72rem; font-weight: 600; }
.p-kpi-delta.up      { color: #059669; }
.p-kpi-delta.neutral { color: #94a3b8; }

/* ---- Cards ---- */
.p-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  margin-bottom: 14px;
  overflow: hidden;
}
.p-card-hdr {
  padding: 14px 18px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.p-card-hdr-title { font-weight: 700; font-size: 0.875rem; color: #1a202c; }
.p-card-hdr-sub { font-size: 0.7rem; color: #94a3b8; }

/* ---- Bar chart ---- */
.p-chart {
  padding: 4px 18px 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}
.p-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
}
.p-bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.p-bar {
  width: 100%;
  background: linear-gradient(to top, #2E6B4F, #4aad7a);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
}
.p-bar.is-current { background: linear-gradient(to top, #1E4A35, #2E6B4F); }
.p-bar-tip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: #1a202c;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e8edf2;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.p-bar-month { font-size: 0.66rem; color: #94a3b8; font-weight: 500; }

/* ---- Table ---- */
.p-tbl-wrap { overflow-x: auto; }
table.p-tbl { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.p-tbl th {
  padding: 9px 14px;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}
.p-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid #f8fafc;
  color: #374151;
}
.p-tbl tr:last-child td { border-bottom: none; }
.p-tbl tr:hover td { background: #f8fafc; }
.p-tbl-id { font-weight: 700; color: #1a202c !important; }
.p-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.p-status.paid     { background: #d1fae5; color: #065f46; }
.p-status.pending  { background: #fef3c7; color: #92400e; }
.p-status.refunded { background: #fee2e2; color: #991b1b; }
.p-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---- Toolbar & search ---- */
.p-toolbar {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-select {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.p-select:focus { border-color: #2E6B4F; }
.p-tbl-count { font-size: 0.75rem; color: #94a3b8; margin-left: auto; }
.p-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  color: #374151;
  outline: none;
  background: #fff;
}
.p-search:focus { border-color: #2E6B4F; box-shadow: 0 0 0 3px rgba(46,107,79,0.1); }
.p-search-wrap { padding: 12px 18px; border-bottom: 1px solid #f1f5f9; }

.p-stock-low { color: #d97706; font-weight: 600; }
.p-stock-out {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Empty state ---- */
.p-empty {
  padding: 32px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.83rem;
}

/* ============================================================
   MOBILE MESSAGING SHOWCASE
============================================================ */
.mobile-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(46,107,79,0.1), transparent 32%),
    #f6f4ef;
}
.mobile-showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
}
.mobile-showcase-copy { max-width: 560px; }
.mobile-preview {
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mobile-preview-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,107,79,0.2), rgba(46,107,79,0));
}
.mobile-preview-phone {
  position: relative;
  z-index: 1;
  width: 270px;
  height: 540px;
  padding: 14px 13px;
  border: 7px solid #17211b;
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 35px 70px rgba(20,35,27,0.24), inset 0 0 0 1px rgba(255,255,255,0.4);
  transform: rotate(-4deg);
  overflow: hidden;
}
.mp-notch {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 90px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #17211b;
}
.mp-status { display: flex; justify-content: space-between; padding: 3px 8px 16px; font-size: 8px; font-weight: 700; }
.mp-header { display: flex; align-items: flex-end; justify-content: space-between; padding: 9px 7px 13px; }
.mp-header div { display: flex; flex-direction: column; }
.mp-header strong { font: 700 23px/1.1 'Lora', Georgia, serif; color: #17211b; }
.mp-kicker { font-size: 7px; letter-spacing: .13em; color: #2e6b4f; font-weight: 800; }
.mp-compose { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #2e6b4f; color: #fff; }
.mp-search { margin: 0 7px 12px; padding: 8px 11px; border-radius: 9px; background: #f1f3f2; color: #9aa39e; font-size: 8px; }
.mp-chat { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; padding: 11px 7px; border-bottom: 1px solid #eef0ef; }
.mp-avatar, .msg-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex-shrink: 0; }
.mp-avatar { width: 38px; height: 38px; font-size: 9px; }
.coral { background: linear-gradient(135deg, #ff8a78, #e85d75); }
.blue { background: linear-gradient(135deg, #6cb5e8, #4d73d7); }
.gold { background: linear-gradient(135deg, #edbd62, #d68b39); }
.mp-chat span:nth-child(2) { min-width: 0; }
.mp-chat strong { display: block; color: #202a24; font-size: 9px; margin-bottom: 3px; }
.mp-chat small { display: block; overflow: hidden; color: #87908b; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.mp-chat i { align-self: start; color: #a2aaa6; font-size: 6px; font-style: normal; }
.mp-home { position: absolute; bottom: 7px; left: 50%; width: 78px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #17211b; }
.mobile-preview-play {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 55px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  color: #193426;
  box-shadow: 0 12px 30px rgba(26,54,39,.18);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.mobile-preview-play span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #2e6b4f; color: #fff; font-size: 9px; }

/* ============================================================
   MOBILE MESSAGING MODAL + APP
============================================================ */
.message-modal {
  position: fixed;
  z-index: 350;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.message-modal.open { opacity: 1; pointer-events: auto; }
.message-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(77,142,107,.32), transparent 35%),
    rgba(7,18,12,.92);
  backdrop-filter: blur(8px);
}
.message-modal-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.message-demo-stage {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  height: min(780px, 92vh);
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 70px;
  align-items: center;
}
.message-demo-intro { color: #fff; }
.message-demo-intro .eyebrow { color: #7ee2ab; }
.message-demo-intro h2 { margin: 8px 0 14px; font: 700 clamp(2rem,4vw,3.4rem)/1 'Lora',Georgia,serif; }
.message-demo-intro p:not(.eyebrow) { max-width: 360px; color: rgba(255,255,255,.68); line-height: 1.7; }
.message-demo-tip { display: inline-block; margin-top: 20px; color: rgba(255,255,255,.45); font-size: .75rem; }
.message-phone {
  position: relative;
  width: 370px;
  height: min(750px, 88vh);
  max-height: 750px;
  padding: 13px;
  border: 7px solid #090d0b;
  border-radius: 54px;
  background: #090d0b;
  box-shadow: 0 50px 100px rgba(0,0,0,.55);
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.3,.64,1);
}
.message-modal.open .message-phone { transform: translateY(0) scale(1); }
.message-phone-notch { position: absolute; z-index: 5; top: 18px; left: 50%; width: 112px; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #090d0b; }
.message-phone-home { position: absolute; z-index: 5; bottom: 18px; left: 50%; width: 110px; height: 5px; transform: translateX(-50%); border-radius: 6px; background: #18211c; }
#message-app { width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #fbfcfb; }
.msg-screen { height: 100%; display: flex; flex-direction: column; color: #1d2821; font-family: 'Inter',sans-serif; background: #fbfcfb; }
.msg-statusbar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 0; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.msg-inbox-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 14px; }
.msg-inbox-header small { display: block; color: #2e6b4f; font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.msg-inbox-header h3 { margin: 3px 0 0; font: 700 28px/1 'Lora',Georgia,serif; }
.msg-new { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #2e6b4f; color: #fff; font-size: 22px; cursor: pointer; }
.msg-search { display: flex; align-items: center; gap: 8px; margin: 0 18px 14px; padding: 10px 12px; border-radius: 12px; background: #eef2ef; color: #87928c; }
.msg-search input { width: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 12px; color: #253129; }
.msg-stories { display: flex; gap: 15px; padding: 2px 18px 17px; border-bottom: 1px solid #edf0ee; overflow-x: auto; }
.msg-stories button { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; color: #5d6861; font-family: inherit; font-size: 9px; cursor: pointer; }
.msg-avatar { position: relative; width: 47px; height: 47px; font-size: 11px; }
.msg-avatar i { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #45b878; }
.msg-list-label { display: flex; justify-content: space-between; padding: 15px 19px 7px; font-size: 11px; }
.msg-list-label span { color: #2e6b4f; font-size: 9px; font-weight: 700; }
#message-list { flex: 1; overflow-y: auto; min-height: 0; }
.msg-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 18px; border: 0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
.msg-row:hover { background: #f1f5f2; }
.msg-row-copy { min-width: 0; flex: 1; }
.msg-row-copy strong { display: block; margin-bottom: 4px; color: #202a24; font-size: 12px; }
.msg-row-copy small { display: block; overflow: hidden; color: #89928d; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.msg-row-meta { align-self: flex-start; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.msg-row-meta time { color: #9ca49f; font-size: 8px; }
.msg-row-meta b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #2e6b4f; color: #fff; font-size: 8px; }
.msg-no-results { padding: 30px; color: #8a958e; text-align: center; font-size: 12px; }
.msg-tabbar { display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 8px 20px; border-top: 1px solid #e8ece9; background: rgba(255,255,255,.96); flex-shrink: 0; }
.msg-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #9aa39e; font-family: inherit; font-size: 8px; }
.msg-tabbar button span { font-size: 15px; }
.msg-tabbar button.active { color: #2e6b4f; font-weight: 700; }
.msg-chat-header { display: grid; grid-template-columns: 30px 40px 1fr 34px; align-items: center; gap: 8px; padding: 8px 13px 12px; border-bottom: 1px solid #e9edea; background: rgba(255,255,255,.92); }
.msg-chat-header .msg-avatar { width: 38px; height: 38px; font-size: 9px; }
.msg-chat-header span strong, .msg-chat-header span small { display: block; }
.msg-chat-header span strong { font-size: 12px; }
.msg-chat-header span small { margin-top: 2px; color: #4aa871; font-size: 8px; }
.msg-back, .msg-video { border: 0; background: transparent; color: #2e6b4f; cursor: pointer; }
.msg-back { font-size: 30px; line-height: 1; }
.msg-video { width: 32px; height: 32px; border-radius: 50%; background: #e9f2ed; font-size: 19px; }
.msg-thread { flex: 1; overflow-y: auto; min-height: 0; padding: 14px 15px 18px; background: linear-gradient(#f8faf8,#f3f7f4); }
.msg-day { margin: 3px 0 15px; color: #a0a8a3; text-align: center; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.msg-bubble-wrap { display: flex; flex-direction: column; margin: 0 0 11px; }
.msg-bubble-wrap.in { align-items: flex-start; }
.msg-bubble-wrap.out { align-items: flex-end; }
.msg-bubble { max-width: 78%; padding: 10px 12px; border-radius: 15px; font-size: 11px; line-height: 1.45; box-shadow: 0 2px 7px rgba(29,54,40,.05); }
.msg-bubble-wrap.in .msg-bubble { border-bottom-left-radius: 4px; background: #fff; color: #344139; }
.msg-bubble-wrap.out .msg-bubble { border-bottom-right-radius: 4px; background: #2e6b4f; color: #fff; }
.msg-bubble-wrap time { margin-top: 4px; color: #9ba49f; font-size: 7px; }
.msg-composer { display: grid; grid-template-columns: 30px 1fr 34px; gap: 7px; align-items: center; padding: 10px 12px 22px; border-top: 1px solid #e5ebe7; background: #fff; }
.msg-composer button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #edf2ef; color: #2e6b4f; font-size: 18px; cursor: pointer; }
.msg-composer input { min-width: 0; padding: 9px 12px; border: 0; border-radius: 18px; outline: none; background: #edf2ef; font-family: inherit; font-size: 10px; }
.msg-composer .msg-send { width: 34px; height: 34px; background: #2e6b4f; color: #fff; font-weight: 800; }

@media (max-width: 800px) {
  .mobile-showcase-grid { grid-template-columns: 1fr; }
  .mobile-showcase-copy { order: -1; }
  .mobile-preview { min-height: 520px; }
  .message-demo-stage { display: flex; width: auto; height: auto; }
  .message-demo-intro { display: none; }
  .message-phone { width: min(370px, 94vw); height: min(750px, 88vh); }
  .message-modal-close { top: 8px; right: 10px; }
}

@media (max-width: 420px) {
  .message-phone { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; padding: 0; }
  #message-app { border-radius: 0; }
  .message-phone-notch, .message-phone-home { display: none; }
  .message-modal-close { z-index: 8; top: 8px; right: 8px; padding: 6px 9px; font-size: 0; }
  .message-modal-close::after { content: '✕'; font-size: 16px; }
}

/* ============================================================
   FLAPPY BIRD SHOWCASE SECTION
============================================================ */
.flappy-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 50%, rgba(112,197,206,0.14), transparent 36%),
    #f6f4ef;
}
.flappy-showcase-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
}
.flappy-showcase-copy { max-width: 560px; }

/* Static phone preview */
.flappy-preview {
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.flappy-preview-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112,197,206,0.22), rgba(112,197,206,0));
}
.flappy-preview-phone {
  position: relative;
  z-index: 1;
  width: 256px;
  height: 516px;
  border: 7px solid #17211b;
  border-radius: 42px;
  background: #70c5ce;
  box-shadow: 0 35px 70px rgba(20,35,27,0.24), inset 0 0 0 1px rgba(255,255,255,0.3);
  transform: rotate(4deg);
  overflow: hidden;
}
.fp-notch {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 50%;
  width: 86px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #17211b;
}
.fp-sky {
  position: absolute;
  inset: 0;
  bottom: 28px;
  background: linear-gradient(180deg, #70c5ce 0%, #b8e4ee 100%);
  overflow: hidden;
}
.fp-cloud {
  position: absolute;
  width: 62px;
  height: 22px;
  background: rgba(255,255,255,0.88);
  border-radius: 50px;
}
.fp-cloud::before, .fp-cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
}
.fp-cloud::before { width: 32px; height: 32px; top: -14px; left: 8px; }
.fp-cloud::after  { width: 24px; height: 24px; top: -10px; left: 26px; }
.fp-pipe-pair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
}
.fp-pipe {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #3a9e4a, #4ecb62 40%, #2d7a3a);
  border-radius: 4px;
}
.fp-pipe-top { top: 0; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.fp-pipe-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5px;
  right: -5px;
  height: 14px;
  background: #2d7a3a;
  border-radius: 4px;
}
.fp-pipe-bottom { bottom: 0; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.fp-pipe-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  right: -5px;
  height: 14px;
  background: #2d7a3a;
  border-radius: 4px;
}
.fp-bird {
  position: absolute;
  top: 155px;
  left: 62px;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 38%, #FFE866, #FFD700 60%, #E6B800);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.fp-bird::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 9px;
  width: 10px;
  height: 6px;
  background: #FF8C00;
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 70%);
  border-radius: 2px;
}
.fp-bird::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 3px 1px 0 1px #222;
}
.fp-score {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.28);
  font-family: 'Inter', sans-serif;
}
.fp-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, #c5b966 0%, #ded895 30%);
  border-top: 3px solid #b8aa52;
}
.fp-home {
  position: absolute;
  z-index: 10;
  bottom: 7px;
  left: 50%;
  width: 78px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #17211b;
}
.flappy-preview-play {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 55px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  color: #193426;
  box-shadow: 0 12px 30px rgba(26,54,39,.18);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.flappy-preview-play span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #2e6b4f; color: #fff; font-size: 9px; }

/* ============================================================
   FLAPPY BIRD MODAL + GAME
============================================================ */
.flappy-modal {
  position: fixed;
  z-index: 350;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.flappy-modal.open { opacity: 1; pointer-events: auto; }
.flappy-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 55%, rgba(112,197,206,.25), transparent 35%),
    rgba(7,18,12,.92);
  backdrop-filter: blur(8px);
}
.flappy-modal-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.flappy-demo-stage {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  height: min(780px, 92vh);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 70px;
  align-items: center;
}
.flappy-demo-intro { color: #fff; }
.flappy-demo-intro .eyebrow { color: #7ee2ab; }
.flappy-demo-intro h2 { margin: 8px 0 14px; font: 700 clamp(2rem,4vw,3.2rem)/1 'Lora',Georgia,serif; }
.flappy-demo-intro p:not(.eyebrow) { max-width: 360px; color: rgba(255,255,255,.68); line-height: 1.7; }
.flappy-demo-intro strong { color: rgba(255,255,255,.9); }
.flappy-demo-tip { display: inline-block; margin-top: 20px; color: rgba(255,255,255,.45); font-size: .75rem; }
.flappy-phone {
  position: relative;
  width: 320px;
  height: min(640px, 84vh);
  max-height: 640px;
  border: 7px solid #090d0b;
  border-radius: 50px;
  background: #090d0b;
  box-shadow: 0 50px 100px rgba(0,0,0,.55);
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.3,.64,1);
}
.flappy-modal.open .flappy-phone { transform: translateY(0) scale(1); }
.flappy-phone-notch { position: absolute; z-index: 5; top: 14px; left: 50%; width: 100px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #090d0b; }
.flappy-phone-home { position: absolute; z-index: 5; bottom: 14px; left: 50%; width: 100px; height: 5px; transform: translateX(-50%); border-radius: 6px; background: #18211c; }
#flappy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  cursor: pointer;
  touch-action: none;
}

@media (max-width: 800px) {
  .flappy-showcase-grid { grid-template-columns: 1fr; }
  .flappy-preview { min-height: 500px; }
  .flappy-demo-stage { display: flex; width: auto; height: auto; }
  .flappy-demo-intro { display: none; }
  .flappy-phone { width: min(340px, 92vw); height: min(640px, 86vh); }
  .flappy-modal-close { top: 8px; right: 10px; }
}

@media (max-width: 400px) {
  .flappy-phone { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }
  #flappy-canvas { border-radius: 0; }
  .flappy-phone-notch, .flappy-phone-home { display: none; }
}

/* ============================================================
   WEBSITES SHOWCASE SECTION
============================================================ */
.websites-section {
  background: var(--bg-cream);
}

.websites-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}
.websites-section-header .title-rule {
  margin: 0 auto 20px;
}
.websites-section-header .work-desc {
  max-width: 580px;
  margin: 0 auto;
}

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 36px;
}

.website-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}
.website-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.wcb-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #1c1c1e;
}
.wcb-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.wcb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.wcb-urlbar {
  flex: 1;
  padding: 3px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  font-size: 0.7rem;
  font-family: monospace;
  color: rgba(255,255,255,0.45);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wcb-ext-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: #7ee2ab;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--t);
}
.wcb-ext-link:hover { color: #a8f0c6; }

.wcb-screenshot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.wcb-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.website-card:hover .wcb-screenshot img {
  transform: scale(1.03);
}

.wcb-visit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,32,24,0);
  transition: background var(--t);
}
.wcb-visit-overlay span {
  padding: 10px 22px;
  border-radius: var(--r-full);
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.website-card:hover .wcb-visit-overlay {
  background: rgba(22,32,24,0.35);
}
.website-card:hover .wcb-visit-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.website-card-info {
  padding: 26px 28px 30px;
  border-top: 1px solid var(--border-light);
}
.website-card-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.website-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .websites-grid { grid-template-columns: 1fr; }
}
