/* ============ Zensofto — dark tech theme ============ */
:root {
  --bg: #0a0c12;
  --bg-alt: #0f1220;
  --surface: #141827;
  --surface-2: #1a1f33;
  --border: #232a42;
  --text: #e6e9f2;
  --text-muted: #9aa3b8;
  --primary: #7c6cff;
  --primary-2: #22d3ee;
  --gradient: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124, 108, 255, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ============ Background 3D ============ */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 12, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.3) 0%, transparent 30%, transparent 70%, rgba(10, 12, 18, 0.4) 100%);
}
@media (prefers-reduced-motion: reduce) {
  #bg3d { animation: none; }
}

/* ============ Page fade transition ============ */
.fx-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #070a12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #0a0c12;
  box-shadow: 0 10px 30px -8px rgba(124, 108, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(124, 108, 255, 0.65); }

.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); background: rgba(124, 108, 255, 0.08); }

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: rgba(124, 108, 255, 0.12); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  color: #0a0c12;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px -4px rgba(124, 108, 255, 0.6);
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px; }
.brand-name em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color 0.15s ease; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--gradient); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 { width: 520px; height: 520px; background: rgba(124, 108, 255, 0.5); top: -180px; left: 50%; transform: translateX(-50%); }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(34, 211, 238, 0.35); bottom: -160px; right: -120px; }

.hero-inner { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--primary-2);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 800px;
  margin: 0 auto 22px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats-mini {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 56px;
}
.hero-stats-mini div { display: flex; flex-direction: column; }
.hero-stats-mini strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-stats-mini span { font-size: 0.82rem; color: var(--text-muted); }

/* Code window */
.code-window {
  position: relative;
  margin: 64px auto 0;
  max-width: 640px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.code-window-bar span { width: 11px; height: 11px; border-radius: 50%; }
.code-window-bar span:nth-child(1) { background: #ff5f57; }
.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }
.code-window-bar em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--text-muted); font-family: ui-monospace, monospace; }
.code-window:focus-within {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), var(--shadow);
}
.term-body {
  margin: 0;
  padding: 20px 24px;
  height: 340px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #c8d3f0;
  cursor: text;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.term-body::-webkit-scrollbar { width: 8px; }
.term-body::-webkit-scrollbar-thumb { background: #2a3350; border-radius: 4px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.term-hint {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.term-hint:hover { color: var(--primary-2); border-color: var(--primary-2); background: rgba(34, 211, 238, 0.06); }
.c-n { color: #7c6cff; }
.c-f { color: #22d3ee; }
.c-k { color: #f472b6; }
.c-s { color: #a3e635; }
.c-p { color: #fbbf24; }
.c-w { color: #e6e9f2; }

/* Terminal typing */
.c-line { display: block; min-height: 1.45em; }
.c-m { color: #9aa7c7; }
.c-d { color: #5c6b8a; }
.c-g { color: #4ade80; }
.c-cursor { color: #22d3ee; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Hero constellation ============ */
.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero-constellation canvas { width: 100%; height: 100%; display: block; }

/* ============ Glitch headlines ============ */
.is-glitching {
  animation: glitch-flicker 0.14s steps(2, end) infinite;
}
@keyframes glitch-flicker {
  0% { transform: translate(0, 0); text-shadow: 2px 0 rgba(34, 211, 238, 0.55), -2px 0 rgba(124, 108, 255, 0.55); }
  25% { transform: translate(-2px, 1px); text-shadow: -3px 0 rgba(251, 191, 36, 0.5), 2px 0 rgba(34, 211, 238, 0.5); }
  50% { transform: translate(2px, -1px); text-shadow: 3px 0 rgba(124, 108, 255, 0.5), -2px 0 rgba(34, 211, 238, 0.5); }
  75% { transform: translate(-1px, 0); text-shadow: -2px 0 rgba(34, 211, 238, 0.55), 2px 0 rgba(251, 191, 36, 0.4); }
  100% { transform: translate(0, 0); text-shadow: 2px 0 rgba(124, 108, 255, 0.4), -2px 0 rgba(34, 211, 238, 0.4); }
}
.card-hover:hover h3 { animation: glitch-flicker 0.4s steps(2, end) infinite; }
.btn:hover {
  animation: btn-glitch 0.5s steps(2, end) infinite;
}
@keyframes btn-glitch {
  0% { text-shadow: 1px 0 rgba(34, 211, 238, 0.6); }
  50% { text-shadow: -1px 0 rgba(124, 108, 255, 0.6); }
  100% { text-shadow: 1px 0 rgba(34, 211, 238, 0.6); }
}

/* ============ Stats ============ */
.stats-section { padding: 40px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; max-width: 100%; text-align: left; }
.section-head.split .section-title { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-2);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ============ Cards ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card-hover { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-5px); }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 108, 255, 0.12);
  color: var(--primary);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ============ Why Zensofto ============ */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.why-card:hover { border-color: var(--primary-2); }
.why-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary-2);
  margin-bottom: 20px;
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ============ Manifesto ============ */
.manifesto-section { padding: 40px 0 96px; }
.manifesto-band {
  position: relative;
  text-align: center;
  padding: 88px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.manifesto-glow {
  position: absolute;
  width: 560px;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16), rgba(124, 108, 255, 0.14), transparent 70%);
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.manifesto-lead {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.manifesto-body {
  position: relative;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 30px;
}
.manifesto-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.manifesto-point {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============ Projects ============ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }

.project-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, transparent 30%, rgba(10, 12, 18, 0.7));
}
.project-thumb-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.thumb-emoji { font-size: 2.6rem; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.thumb-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.3px; color: rgba(255, 255, 255, 0.9); }

.project-body { padding: 22px; }
.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-2);
}
.project-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 8px 0 6px; }
.project-body p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 14px; }
.project-title-link { transition: color 0.15s ease; }
.project-title-link:hover { color: var(--primary); }
.project-actions { display: flex; gap: 18px; align-items: center; }
.project-link { font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.demo-link {
  color: var(--primary-2);
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.demo-link:hover { color: var(--text); }

/* ============ Tech cloud ============ */
.tech-cloud { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 780px; margin: 0 auto; }
.tech-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tech-chip:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.tech-chip-more { border-style: dashed; }

/* ============ Process ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-card {
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(124, 108, 255, 0.16), transparent 58%),
    radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 108, 255, 0.7), rgba(34, 211, 238, 0.7), transparent);
  opacity: 0.65;
}
.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-2);
  box-shadow: var(--shadow);
}
.process-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.process-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 10px 0 8px; }
.process-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============ Testimonials ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.quote-mark { width: 30px; height: 30px; color: var(--primary); opacity: 0.6; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 0.98rem; color: #c6cddd; margin-bottom: 22px; }
.testimonial-project {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--surface-2);
}
.testimonial-card { padding-top: 46px; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--gradient);
  color: #0a0c12;
}
.testimonial-card figcaption strong { display: block; font-size: 0.94rem; }
.testimonial-card figcaption span { font-size: 0.82rem; color: var(--text-muted); }

/* ============ CTA ============ */
.cta-section { padding: 40px 0 96px; }
.cta-box {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(124, 108, 255, 0.35), transparent 70%);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-box h2 { position: relative; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.cta-box p { position: relative; color: var(--text-muted); margin-bottom: 28px; }

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
}
.cta-inline h2 { font-family: var(--font-display); font-size: 1.4rem; }
.cta-inline p { color: var(--text-muted); }

/* ============ Custom cursor ============ */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
#cursor-dot {
  display: none;
}
#cursor-ring {
  display: none;
}
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
}
@media (pointer: fine) {
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor .btn,
  body.custom-cursor input,
  body.custom-cursor textarea,
  body.custom-cursor select,
  body.custom-cursor label {
    cursor: none !important;
  }
}
@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring,
  #cursor-trail {
    display: none;
  }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 0;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-group { display: inline-flex; align-items: center; }
.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.85;
  padding: 0 1.6rem;
  white-space: nowrap;
}
.marquee-group span::after {
  content: "✦";
  color: var(--primary-2);
  margin-left: 3.2rem;
  font-size: 0.75em;
  opacity: 0.7;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Page hero ============ */
.page-hero {
  padding: 84px 0 30px;
  text-align: center;
  position: relative;
}
.page-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.page-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto; }

.back-link { display: inline-block; margin-bottom: 26px; font-size: 0.92rem; color: var(--text-muted); }
.back-link:hover { color: var(--primary); }

.notfound { padding: 120px 0; }
.error-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.notfound .hero-actions { margin-top: 30px; }

/* ============ Services page ============ */
.services-list { display: flex; flex-direction: column; gap: 26px; }
.service-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
  scroll-margin-top: 100px;
}
.service-row:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-row-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 108, 255, 0.12);
  color: var(--primary);
}
.service-row-icon svg { width: 26px; height: 26px; }
.service-row-content h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.service-row-tagline { color: var(--primary-2); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.service-row-content > p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 18px; max-width: 640px; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: #c6cddd; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-2);
  font-weight: 700;
}

/* ============ Case study ============ */
.case-study { max-width: 860px; margin: 0 auto; }
.case-hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 28px;
}
.thumb-emoji-lg { font-size: 4rem; }
.thumb-brand-lg { font-size: 2rem; color: #fff; }

.case-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.case-meta-item { display: flex; flex-direction: column; gap: 6px; }
.case-meta-item > span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; }

.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.case-body h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 14px; }
.case-overview p { color: var(--text-muted); }

.case-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.case-cta h3 { font-family: var(--font-display); margin-bottom: 20px; }
.case-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.case-testimonial {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
}
.case-testimonial blockquote {
  font-size: 1.08rem;
  color: #c6cddd;
  margin: 14px 0 22px;
  max-width: 640px;
}
.case-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.case-testimonial figcaption strong { display: block; }
.case-testimonial figcaption span { color: var(--text-muted); font-size: 0.86rem; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-text h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 18px; letter-spacing: -0.5px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text .feature-list { margin-top: 8px; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card .stat-value { font-size: 2rem; }
.stat-card span { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; }

.contact-channel { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.channel-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(124, 108, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.05), 0 10px 24px -10px rgba(124, 108, 255, 0.45), inset 0 0 14px rgba(124, 108, 255, 0.08);
  color: var(--primary);
}
.channel-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 8px rgba(124, 108, 255, 0.45));
}
.contact-channel span, .contact-channel p { display: block; }
.contact-channel span { font-size: 0.8rem; color: var(--text-muted); }
.contact-channel a, .contact-channel p { font-size: 0.98rem; color: var(--text); font-weight: 500; }
.contact-channel a:hover { color: var(--primary-2); }
.contact-channel p { margin: 0; color: var(--text-muted); font-weight: 400; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.2);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }

.form-alert { padding: 14px 18px; border-radius: 10px; font-size: 0.94rem; margin-bottom: 20px; font-weight: 500; }
.form-alert.success { background: rgba(163, 230, 53, 0.1); border: 1px solid rgba(163, 230, 53, 0.4); color: #a3e635; }
.form-alert.error { background: rgba(255, 95, 87, 0.1); border: 1px solid rgba(255, 95, 87, 0.4); color: #ff5f57; }

/* AI auto-reply */
.ai-reply {
  margin-bottom: 20px;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  overflow: hidden;
}
.ai-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(45, 212, 191, 0.1);
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
  font-size: 0.9rem;
  color: var(--text);
}
.ai-reply-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}
.ai-reply-head strong { font-weight: 600; }
.ai-reply-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
}
.ai-reply-body {
  margin: 0;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #c8d3f0;
  white-space: pre-wrap;
}

.form-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 18px 0 22px; max-width: 320px; }

.socials { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: var(--primary-2); border-color: var(--primary); transform: translateY(-2px); }

.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-address { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .cards-grid, .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row .btn { grid-column: 1 / -1; justify-self: start; }
  .case-body { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .site-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 4%;
    background: rgba(10, 12, 18, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-link {
    font-size: 1.05rem;
    padding: 10px 12px;
    width: 100%;
    border-radius: 8px;
  }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: rgba(124, 108, 255, 0.1); }
}

/* ============ Demo preview (example website mock) ============ */
.demo-notice {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.demo-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.demo-notice-inner strong { color: var(--text); }
.demo-notice-back { color: var(--primary-2); font-weight: 600; }
.demo-notice-back:hover { color: var(--text); }

.demo-mock-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ============ FinLoom — fintech dashboard (dark) ============ */
.dm-finc {
  --accent: #10b981;
  --demo-bg: #0d1421;
  --demo-panel: #141d2e;
  --demo-border: #223049;
  --demo-text: #e8eefb;
  --demo-muted: #8fa1bf;
  background: var(--demo-bg);
  color: var(--demo-text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 620px;
}
.dm-finc a { color: inherit; }
.dm-finc-side {
  background: #0a0f1a;
  border-right: 1px solid var(--demo-border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.dm-finc-logo, .dm-shop-logo, .dm-med-logo, .dm-ev-logo, .dm-cf-logo, .dm-bl-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.dm-finc-logo span, .dm-shop-logo span, .dm-med-logo span, .dm-cf-logo span, .dm-bl-logo span { color: var(--accent); }
.dm-finc-nav { display: flex; flex-direction: column; gap: 4px; }
.dm-finc-nav a { padding: 11px 14px; border-radius: 10px; color: var(--demo-muted); font-size: 0.92rem; font-weight: 500; }
.dm-finc-nav a:hover { color: var(--demo-text); background: rgba(16, 185, 129, 0.08); }
.dm-finc-nav a.on { background: rgba(16, 185, 129, 0.14); color: #34d399; font-weight: 600; }
.dm-finc-side-card {
  margin-top: auto;
  background: var(--demo-panel);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 16px;
  font-size: 0.86rem;
}
.dm-finc-side-card p { color: var(--demo-muted); margin: 6px 0 10px; }
.dm-finc-side-card a { color: #34d399; font-weight: 600; }

.dm-finc-main { padding: 28px 30px; }
.dm-finc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dm-finc-top h2 { font-family: var(--font-display); font-size: 1.5rem; }
.dm-finc-top p { color: var(--demo-muted); font-size: 0.92rem; }
.dm-finc-top-actions { display: flex; gap: 10px; }
.dm-finc-btn, .dm-cf-btn {
  background: var(--accent); color: #071018; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
}
.dm-finc-btn-ghost, .dm-cf-btn-ghost {
  border: 1px solid var(--demo-border); padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--demo-muted);
}
.dm-finc-btn-ghost:hover, .dm-cf-btn-ghost:hover { border-color: var(--accent); color: var(--demo-text); }

.dm-finc-cards { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.dm-finc-balance {
  background: linear-gradient(135deg, #10b981, #0d9488);
  border-radius: 16px;
  padding: 22px;
  color: #06110c;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-finc-balance span { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.dm-finc-balance strong { font-family: var(--font-display); font-size: 1.9rem; }
.dm-finc-balance-meta { font-size: 0.82rem; font-weight: 600; }
.dm-finc-balance-cta a { font-size: 0.85rem; font-weight: 700; text-decoration: underline; }
.dm-finc-mini {
  background: var(--demo-panel); border: 1px solid var(--demo-border); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.dm-finc-mini span { color: var(--demo-muted); font-size: 0.8rem; }
.dm-finc-mini strong { font-family: var(--font-display); font-size: 1.3rem; }
.dm-finc-mini small { color: var(--demo-muted); font-size: 0.78rem; }

.dm-finc-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.dm-finc-chart, .dm-finc-tx {
  background: var(--demo-panel); border: 1px solid var(--demo-border); border-radius: 16px; padding: 20px;
}
.dm-finc-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dm-finc-chart-head h3 { font-family: var(--font-display); font-size: 1.02rem; }
.dm-finc-chart-head a { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.dm-bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.dm-bar {
  flex: 1; background: linear-gradient(180deg, #34d399, #0d9488); border-radius: 5px 5px 2px 2px;
  height: var(--h); opacity: 0.9;
}
.dm-bars-labels { display: flex; gap: 8px; margin-top: 8px; }
.dm-bars-labels span { flex: 1; text-align: center; font-size: 0.66rem; color: var(--demo-muted); }

.dm-tx { display: flex; flex-direction: column; }
.dm-tx li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(34, 48, 73, 0.6); }
.dm-tx li:last-child { border-bottom: 0; }
.dm-tx-ico {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(16, 185, 129, 0.12); font-size: 1rem;
}
.dm-tx li div { flex: 1; }
.dm-tx li strong { display: block; font-size: 0.9rem; }
.dm-tx li small { color: var(--demo-muted); font-size: 0.76rem; }
.dm-tx li em { font-style: normal; color: #f87171; font-weight: 700; font-size: 0.9rem; }
.dm-tx li em.up { color: #34d399; }

/* ============ ShopGrid — e-commerce (light store) ============ */
.dm-shop {
  --accent: #f59e0b;
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dm-shop a { color: inherit; }
.dm-shop-top {
  display: flex; align-items: center; gap: 18px; padding: 16px 24px;
  border-bottom: 1px solid #eef0f3; background: #fff;
}
.dm-shop-logo { color: #111827; }
.dm-shop-search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #f4f5f7; border: 1px solid #e5e7eb; border-radius: 999px; padding: 10px 18px;
}
.dm-shop-search input { border: 0; background: transparent; outline: none; font-size: 0.9rem; color: #111827; flex: 1; }
.dm-shop-icons { display: flex; gap: 12px; font-size: 1.15rem; }
.dm-shop-icons span { position: relative; cursor: pointer; }
.dm-shop-icons b {
  position: absolute; top: -6px; right: -10px; background: var(--accent); color: #fff;
  font-size: 0.65rem; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
}

.dm-shop-hero {
  background: linear-gradient(135deg, #fff7ed, #ffedd5 60%, #fff);
  padding: 54px 34px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
}
.dm-shop-tag { display: inline-block; background: #ef4444; color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 1px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.dm-shop-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.dm-shop-hero p { color: #6b7280; margin-bottom: 24px; }
.dm-shop-btn, .dm-shop-add {
  display: inline-block; background: #111827; color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 10px; font-size: 0.9rem;
}
.dm-shop-btn:hover, .dm-shop-add:hover { background: var(--accent); }
.dm-shop-hero-art { font-size: 5rem; transform: rotate(-6deg); }

.dm-shop-cats, .dm-bl-cats, .dm-ev-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 24px; }
.dm-shop-cats span, .dm-bl-cats span, .dm-ev-filters span {
  padding: 9px 18px; border-radius: 999px; border: 1px solid #e5e7eb; font-size: 0.85rem; font-weight: 600; color: #6b7280; cursor: pointer;
}
.dm-shop-cats span.on { background: #111827; color: #fff; border-color: #111827; }

.dm-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 24px 34px; }
.dm-prod {
  border: 1px solid #eef0f3; border-radius: 16px; padding: 18px; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dm-prod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.18); }
.dm-prod-badge { position: absolute; }
.dm-prod-badge.hot { background: #ef4444; color: #fff; font-size: 0.68rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; margin-left: -8px; margin-top: -8px; }
.dm-prod-badge.new { background: #10b981; color: #fff; font-size: 0.68rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; margin-left: -8px; margin-top: -8px; }
.dm-prod-art { font-size: 2.8rem; padding: 20px 0 6px; }
.dm-prod h4 { font-size: 0.98rem; margin-bottom: 4px; }
.dm-prod p { color: #9ca3af; font-size: 0.8rem; margin-bottom: 10px; }
.dm-prod-price { font-weight: 800; font-size: 1.02rem; margin-bottom: 12px; }
.dm-prod-price s { color: #9ca3af; font-weight: 500; font-size: 0.82rem; }
.dm-shop-add { display: block; font-size: 0.85rem; padding: 10px; }

.dm-shop-foot, .dm-med-foot, .dm-ev-foot, .dm-cf-foot, .dm-bl-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; background: #fafafa; border-top: 1px solid #eef0f3; font-size: 0.84rem; color: #6b7280;
}

/* ============ MediTrack — clinic booking (light medical) ============ */
.dm-med {
  --accent: #3b82f6;
  background: #f6f9ff;
  color: #111827;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dm-med a { color: inherit; }
.dm-med-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 26px; background: #ffffff; border-bottom: 1px solid #e3ecff;
}
.dm-med-nav { display: flex; gap: 22px; }
.dm-med-nav a { color: #64748b; font-size: 0.92rem; font-weight: 500; }
.dm-med-nav a:hover, .dm-med-nav a.on { color: var(--accent); }
.dm-med-btn, .dm-bl-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 10px; font-size: 0.9rem;
}
.dm-med-btn-outline, .dm-bl-btn-outline {
  display: inline-block; border: 1px solid #c7d7fb; color: var(--accent); font-weight: 700; padding: 11px 22px; border-radius: 10px; font-size: 0.9rem;
}
.dm-med-btn-outline:hover, .dm-bl-btn-outline:hover { background: rgba(59, 130, 246, 0.08); }
.dm-med-btn-block { width: 100%; text-align: center; }

.dm-med-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 56px 34px; }
.dm-med-tag { display: inline-block; color: var(--accent); background: rgba(59, 130, 246, 0.1); font-weight: 700; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.dm-med-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.dm-med-hero p { color: #64748b; max-width: 460px; margin-bottom: 24px; }
.dm-med-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dm-med-rating { color: #64748b; font-size: 0.9rem; }
.dm-med-rating strong { color: #111827; }
.dm-med-hero-art { font-size: 6rem; transform: rotate(8deg); }

.dm-med-book {
  background: #ffffff; border-block: 1px solid #e3ecff; padding: 30px 34px;
}
.dm-med-book h3, .dm-med-doctors h3, .dm-bl-cert h3, .dm-cf-ship h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 18px; }
.dm-med-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.dm-med-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; color: #475569; }
.dm-med-form select, .dm-med-form input {
  border: 1px solid #d5deeb; border-radius: 10px; padding: 11px 12px; font-size: 0.9rem; color: #111827; background: #fff;
}
.dm-med-form-note { margin-top: 14px; font-size: 0.8rem; color: #94a3b8; }

.dm-med-doctors { padding: 34px; }
.dm-med-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dm-doc {
  background: #ffffff; border: 1px solid #e3ecff; border-radius: 16px; padding: 24px; text-align: center;
}
.dm-doc-avatar {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.2rem;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.dm-doc h4 { font-size: 1.02rem; margin-bottom: 4px; }
.dm-doc p { color: #64748b; font-size: 0.86rem; margin-bottom: 8px; }
.dm-doc span { color: #f59e0b; font-size: 0.82rem; display: block; margin-bottom: 14px; }

/* ============ Evently — events & ticketing (dark vibrant) ============ */
.dm-ev {
  --accent: #8b5cf6;
  background: #141028;
  color: #f3f0ff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dm-ev a { color: inherit; }
.dm-ev-top { display: flex; align-items: center; gap: 18px; padding: 16px 26px; border-bottom: 1px solid #2a2247; }
.dm-ev-logo span { color: var(--accent); }
.dm-ev-search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #1d1636; border: 1px solid #2a2247; border-radius: 999px; padding: 10px 18px;
}
.dm-ev-search input { flex: 1; background: transparent; border: 0; outline: none; color: #f3f0ff; font-size: 0.9rem; }
.dm-ev-btn {
  display: inline-block; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 10px; font-size: 0.9rem;
}
.dm-ev-btn:hover { filter: brightness(1.1); }

.dm-ev-spot {
  position: relative; text-align: center; padding: 70px 26px; overflow: hidden;
}
.dm-ev-spot-glow {
  position: absolute; inset: -50% -20%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.4), transparent 65%);
  pointer-events: none;
}
.dm-ev-spot-tag { position: relative; display: inline-block; color: #c4b5fd; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 14px; }
.dm-ev-spot h1 { position: relative; font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.dm-ev-spot p { position: relative; color: #a89fd6; margin-bottom: 22px; }
.dm-ev-spot-meta { position: relative; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; font-size: 0.9rem; color: #d5cbff; }

.dm-ev-filters span { border-color: #2a2247; color: #a89fd6; }
.dm-ev-filters span.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.dm-ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 26px 30px; }
.dm-ev-card {
  background: #1d1636; border: 1px solid #2a2247; border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.dm-ev-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.dm-ev-date {
  width: 54px; border: 1px solid #3a2f63; border-radius: 12px; text-align: center; padding: 8px 0; margin-bottom: 10px;
}
.dm-ev-date b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.dm-ev-date span { font-size: 0.72rem; color: #a89fd6; letter-spacing: 1px; }
.dm-ev-card h4 { font-size: 1rem; }
.dm-ev-card p { color: #a89fd6; font-size: 0.86rem; }
.dm-ev-card-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.86rem; }
.dm-ev-card-foot span { color: #c4b5fd; font-weight: 700; }
.dm-ev-card-foot b { color: #8fa1bf; font-weight: 600; }

.dm-ev-tiers { padding: 10px 26px 34px; }
.dm-ev-tiers h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.dm-ev-tier {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #1d1636; border: 1px solid #2a2247; border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
}
.dm-ev-tier.popular { border-color: var(--accent); position: relative; }
.dm-ev-tier-badge {
  position: absolute; top: -10px; right: 18px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.dm-ev-tier strong { font-family: var(--font-display); }
.dm-ev-tier p { color: #a89fd6; font-size: 0.85rem; }
.dm-ev-tier > b { color: #c4b5fd; font-size: 1.1rem; }

/* ============ CargoFlow — logistics dashboard (dark blue) ============ */
.dm-cf {
  --accent: #06b6d4;
  --demo-bg: #0b1220;
  --demo-panel: #101b2e;
  --demo-border: #1e3249;
  --demo-text: #e6f1ff;
  --demo-muted: #7f98b5;
  background: var(--demo-bg);
  color: var(--demo-text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dm-cf a { color: inherit; }
.dm-cf-top { display: flex; align-items: center; gap: 20px; padding: 16px 24px; border-bottom: 1px solid var(--demo-border); }
.dm-cf-live {
  flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #67e8f9; font-weight: 600;
}
.dm-cf-live i { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; animation: dm-blink 1.4s infinite; }
@keyframes dm-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.dm-cf-top-actions { display: flex; gap: 10px; }

.dm-cf-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; padding: 22px 24px; }
.dm-cf-map {
  position: relative; background: #0e1830; border: 1px solid var(--demo-border); border-radius: 16px;
  min-height: 320px; overflow: hidden;
}
.dm-cf-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-cf-road { stroke: #22d3ee; stroke-width: 3; stroke-dasharray: 2 10; opacity: 0.85; animation: dm-dash 1.6s linear infinite; }
@keyframes dm-dash { to { stroke-dashoffset: -24; } }
.dm-cf-city { fill: #0e1830; stroke: #22d3ee; stroke-width: 3; }
.dm-cf-marker {
  position: absolute; font-size: 1.4rem; transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(34, 211, 238, 0.5));
}
.dm-cf-city-label { position: absolute; font-size: 0.72rem; color: #7f98b5; background: rgba(14, 24, 48, 0.9); padding: 2px 8px; border-radius: 999px; }
.dm-cf-map-legend { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 16px; font-size: 0.74rem; color: #7f98b5; background: rgba(14, 24, 48, 0.9); padding: 8px 14px; border-radius: 999px; }
.dm-cf-map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dm-cf-map-legend i.done { background: #34d399; }
.dm-cf-map-legend i.onway { background: #22d3ee; }
.dm-cf-map-legend i.pickup { background: #fbbf24; }

.dm-cf-side { display: flex; flex-direction: column; gap: 12px; }
.dm-cf-stat { background: var(--demo-panel); border: 1px solid var(--demo-border); border-radius: 14px; padding: 16px 18px; }
.dm-cf-stat span { display: block; color: var(--demo-muted); font-size: 0.8rem; margin-bottom: 4px; }
.dm-cf-stat strong { font-family: var(--font-display); font-size: 1.5rem; color: #67e8f9; }
.dm-cf-alert {
  display: flex; gap: 10px; align-items: flex-start; background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 14px; padding: 14px 16px; font-size: 0.85rem; color: #fde68a;
}

.dm-cf-ship { padding: 0 24px 30px; }
.dm-cf-ship-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--demo-panel); border: 1px solid var(--demo-border); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px;
}
.dm-cf-ship-id { font-family: ui-monospace, monospace; font-size: 0.86rem; color: #67e8f9; font-weight: 600; }
.dm-cf-ship-route { color: var(--demo-text); font-size: 0.9rem; flex: 1; min-width: 150px; }
.dm-cf-progress { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--demo-muted); flex-wrap: wrap; }
.dm-cf-progress span { position: relative; padding-left: 14px; }
.dm-cf-progress span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #334155;
}
.dm-cf-progress span.done { color: #34d399; }
.dm-cf-progress span.done::before { background: #34d399; }
.dm-cf-progress span.onway { color: #67e8f9; }
.dm-cf-progress span.onway::before { background: #22d3ee; }
.dm-cf-ship-status { font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.dm-cf-ship-status.onway { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.dm-cf-ship-status.done { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.dm-cf-foot { background: var(--demo-panel); border-top: 1px solid var(--demo-border); color: var(--demo-muted); }

/* ============ BrightLearn — edtech (light friendly) ============ */
.dm-bl {
  --accent: #ef4444;
  background: #fffdf7;
  color: #111827;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dm-bl a { color: inherit; }
.dm-bl-top {
  display: flex; align-items: center; gap: 18px; padding: 16px 26px; border-bottom: 1px solid #f3e8e2;
}
.dm-bl-search {
  flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #f1e4dc; border-radius: 999px; padding: 10px 18px;
}
.dm-bl-search input { flex: 1; background: transparent; border: 0; outline: none; font-size: 0.9rem; }
.dm-bl-nav { display: flex; gap: 20px; }
.dm-bl-nav a { color: #6b7280; font-size: 0.92rem; font-weight: 500; }
.dm-bl-nav a:hover, .dm-bl-nav a.on { color: var(--accent); }

.dm-bl-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 54px 34px; }
.dm-bl-tag { display: inline-block; background: rgba(239, 68, 68, 0.1); color: var(--accent); font-weight: 700; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.dm-bl-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.dm-bl-hero p { color: #6b7280; margin-bottom: 24px; }
.dm-bl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dm-bl-hero-meta { color: #6b7280; font-size: 0.9rem; }
.dm-bl-hero-meta strong { color: #111827; }
.dm-bl-hero-vid {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: grid; place-items: center;
}
.dm-bl-play {
  width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(239, 68, 68, 0.6);
}
.dm-bl-vid-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e5e7eb; font-size: 0.9rem; }
.dm-bl-vid-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 5px; background: rgba(255, 255, 255, 0.2); }
.dm-bl-vid-bar i { display: block; height: 100%; width: 62%; background: var(--accent); }

.dm-bl-cats span { border-color: #f1e4dc; }
.dm-bl-cats span.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.dm-bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 26px 34px; }
.dm-course {
  background: #fff; border: 1px solid #f1e4dc; border-radius: 16px; padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dm-course:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.15); }
.dm-course-cover {
  height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--c), transparent 80%);
}
.dm-course h4 { font-size: 1rem; margin: 14px 0 4px; }
.dm-course p { color: #9ca3af; font-size: 0.82rem; margin-bottom: 12px; }
.dm-course-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; }
.dm-course-foot span { color: #f59e0b; }
.dm-course-foot b { color: var(--accent); }

.dm-bl-cert {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 26px 34px; background: #fff7f0; border: 1px solid #f5dccb; border-radius: 16px; padding: 22px 26px;
}
.dm-bl-cert h3 { margin: 0 0 4px; }
.dm-bl-cert p { color: #6b7280; font-size: 0.9rem; }
.dm-bl-cert-badge {
  background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #451a03; font-weight: 800;
  padding: 12px 22px; border-radius: 12px; font-size: 0.95rem;
}

/* ============ Demo concepts responsive ============ */
@media (max-width: 960px) {
  .dm-finc { grid-template-columns: 1fr; }
  .dm-finc-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--demo-border); flex-wrap: wrap; }
  .dm-finc-nav { flex-direction: row; flex-wrap: wrap; }
  .dm-finc-side-card { display: none; }
  .dm-finc-cards, .dm-finc-row { grid-template-columns: 1fr; }
  .dm-shop-grid, .dm-ev-grid, .dm-bl-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-med-form { grid-template-columns: 1fr 1fr; }
  .dm-cf-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dm-shop-top { flex-wrap: wrap; }
  .dm-shop-hero, .dm-med-hero, .dm-bl-hero { grid-template-columns: 1fr; text-align: center; }
  .dm-med-hero p, .dm-bl-hero p { margin-inline: auto; }
  .dm-shop-hero-art, .dm-med-hero-art { display: none; }
  .dm-med-hero-actions, .dm-bl-hero-actions { justify-content: center; }
  .dm-shop-grid, .dm-ev-grid, .dm-bl-grid, .dm-med-doc-grid { grid-template-columns: 1fr; }
  .dm-med-nav, .dm-bl-nav { display: none; }
  .dm-ev-spot-meta { gap: 12px; }
  .dm-cf-progress { gap: 6px; }
  .dm-cf-ship-row { flex-direction: column; align-items: flex-start; }
  .project-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .demo-link { border-left: none; padding-left: 0; }
}

/* ===== Admin page ===== */
.admin-wrap { padding-top: 48px; padding-bottom: 80px; max-width: 880px; }
.admin-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head h1 { font-family: var(--font-display); font-size: 2rem; margin: 0; }
.admin-stats { display: flex; gap: 12px; }
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  text-align: center;
  min-width: 96px;
}
.admin-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.admin-stat-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.admin-login-card { max-width: 420px; margin: 60px auto 0; }
.admin-card-head { margin-bottom: 20px; }
.admin-card-head h1 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 6px; }
.admin-card-head p { margin: 0; color: var(--text-muted); }
.admin-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.admin-form { display: flex; flex-direction: column; gap: 10px; }
.admin-form label { font-size: 0.85rem; color: var(--text-muted); }
.admin-form input[type="password"] {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-form input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.25);
}
.admin-hint { margin: 18px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.admin-hint a { color: var(--primary); }
.admin-topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.admin-topbar-brand { font-family: var(--font-display); letter-spacing: 0.02em; }
.admin-topbar-brand em { font-style: normal; color: var(--primary); }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.inline-form { display: inline; margin: 0; }
.admin-enquiry { margin-bottom: 20px; padding: 24px; }
.admin-enquiry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-enquiry-head h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 6px; }
.admin-enquiry-meta { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.admin-enquiry-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.admin-enquiry-date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.admin-delete {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}
.admin-delete:hover { border-color: rgba(239, 68, 68, 0.7); }
.admin-enquiry-msg {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.admin-autobot { margin-top: 16px; }
.admin-autobot summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
}
.admin-autobot pre {
  margin: 10px 0 0;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.admin-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-enquiry-side { align-items: flex-start; }
}

/* ===== Admin settings ===== */
.admin-topbar-inner { flex-wrap: wrap; gap: 10px; }
.admin-tabs { display: flex; gap: 6px; }
.admin-tab {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--text);
  background: var(--bg-alt);
  border-color: var(--border);
}
.admin-settings .admin-card { max-width: 760px; }
.setting-block { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.setting-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.setting-block h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.setting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.setting-field { display: flex; flex-direction: column; gap: 7px; }
.setting-field-wide { grid-column: 1 / -1; }
.setting-field label { font-size: 0.8rem; color: var(--text-muted); }
.setting-field input[type="text"],
.setting-field input[type="email"],
.setting-field input[type="tel"],
.setting-field input[type="number"],
.setting-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.setting-field input:focus,
.setting-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.22);
}
.setting-field input[type="number"] { max-width: 140px; }
.logo-upload { display: flex; align-items: center; gap: 14px; }
.logo-upload img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.logo-upload input[type="file"] { font-size: 0.8rem; color: var(--text-muted); }
.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
}
.admin-check input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.setting-grid-stats { grid-template-columns: repeat(12, 1fr); }
.setting-grid-stats .setting-field { grid-column: span 4; }
.setting-grid-marquee { grid-template-columns: repeat(3, 1fr); }
.admin-status {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-status-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.admin-status-err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
@media (max-width: 640px) {
  .setting-grid-stats .setting-field { grid-column: span 6; }
  .setting-grid-marquee { grid-template-columns: repeat(2, 1fr); }
}

.admin-content .admin-card { max-width: 900px; }
.admin-head-sub { margin: 8px 0 0; color: var(--text-muted); max-width: 560px; }
.setting-hint { margin: -6px 0 16px; font-size: 0.82rem; color: var(--text-muted); }
.setting-hint code { color: var(--primary); }
.content-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.list-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  transition: border-color 0.2s;
}
.list-item:hover { border-color: rgba(124, 108, 255, 0.45); }
.list-item.is-new { border-color: var(--primary); }
.item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.item-remove:hover { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.7); }
.array-box { display: flex; flex-direction: column; gap: 8px; }
.array-row { display: flex; align-items: center; gap: 8px; }
.array-row input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.array-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.22);
}
.array-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.array-remove:hover { color: #fca5a5; border-color: rgba(239, 68, 68, 0.6); }
.array-add { align-self: flex-start; margin-top: 2px; }



/* ===== ZS Charging Bolt Loader ===== */
.zs-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080a12;
  transition: opacity 1s ease;
}
body.zs-loading .zs-loader,
body.zs-loaded .zs-loader {
  background: transparent;
}
.zs-loader.done {
  opacity: 0;
}
body.zs-loading .site-header,
body.zs-loading main,
body.zs-loading .site-footer {
  visibility: hidden;
}
body.zs-loaded main,
body.zs-loaded .site-footer {
  animation: zs-page-in 2s ease 0.8s both;
}
body.zs-loaded .site-header {
  animation: zs-header-in 1s ease 0.8s both;
}
@keyframes zs-page-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zs-header-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.zs-loader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.zs-orb {
  position: relative;
  width: 108px;
  height: 108px;
}
.zs-mark {
  position: absolute;
  inset: 0;
  width: 108px;
  height: 108px;
  border-radius: 24px;
}
.zs-mark-dim {
  filter: brightness(0.45);
  opacity: 0.9;
}
.zs-raise {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  overflow: hidden;
  transition: height 0.1s linear;
  filter: drop-shadow(0 0 12px rgba(124, 108, 255, 0.55)) drop-shadow(0 0 26px rgba(34, 211, 238, 0.25));
}
.zs-raise::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -6px;
  right: -6px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 22px #7c6cff, 0 0 40px #22d3ee;
}
.zs-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(124, 108, 255, 0.35);
  animation: zs-ring-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes zs-ring-pulse {
  0% { transform: scale(0.96); opacity: 0.9; box-shadow: 0 0 18px rgba(124, 108, 255, 0.35); }
  100% { transform: scale(1.14); opacity: 0; box-shadow: 0 0 40px rgba(34, 211, 238, 0.5); }
}
.zs-name {
  margin-top: 36px;
  font-family: "Michroma", var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(1.25);
  filter: blur(8px);
}
.zs-name.in {
  animation: zs-name-snap 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes zs-name-snap {
  0% { opacity: 0; transform: scale(1.25); filter: blur(8px); }
  55% { opacity: 1; transform: scale(0.97); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.zs-name em {
  font-style: normal;
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zs-tagline {
  margin-top: 14px;
  font-family: "Michroma", var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(8px);
}
.zs-tagline.in {
  animation: zs-tagline-in 0.6s ease 0.08s forwards;
}
@keyframes zs-tagline-in {
  to { opacity: 1; transform: translateY(0); }
}
.zs-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(300px, 74vw);
}
.zs-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(124, 108, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.zs-line i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7c6cff, #22d3ee);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.zs-pct {
  font-family: "Michroma", var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  min-width: 54px;
  text-align: right;
}
