/* ============================================================
   Onixera Technologies — Design System v2.0
   Modern Redesign | All functionality preserved
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:         #5b5fed;
  --primary-dark:    #4338ca;
  --primary-light:   #eef0ff;
  --primary-glow:    rgba(91, 95, 237, 0.18);
  --accent:          #10b981;
  --accent-light:    #d1fae5;
  --accent-dark:     #059669;

  /* Neutrals */
  --bg:              #f5f7ff;
  --bg-deep:         #ffffff;
  --text:            #111827;
  --text-light:      #4b5563;
  --muted:           #9ca3af;
  --card:            #ffffff;
  --card-strong:     #f1f5f9;
  --line:            #e5e7eb;
  --line-soft:       rgba(0, 0, 0, 0.06);

  /* Status */
  --success:         #059669;
  --error:           #dc2626;
  --warning:         #d97706;

  /* Shadows */
  --shadow-soft:     0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-mid:      0 4px 6px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.12);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.18);
  --shadow-primary:  0 8px 24px rgba(91, 95, 237, 0.35);
  --shadow-accent:   0 8px 24px rgba(16, 185, 129, 0.3);

  /* Radius */
  --radius-lg:       16px;
  --radius-md:       10px;
  --radius-sm:       6px;
  --radius-full:     9999px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5b5fed 0%, #7c3aed 100%);
  --gradient-accent:  linear-gradient(135deg, #10b981 0%, #0d9488 100%);

  /* Legacy aliases — keep for dashboard/login JS hooks */
  --primary-deep:    #4338ca;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { position: relative; line-height: 1.65; }

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { margin: 0; }

a { text-decoration: none; }

img { display: block; }

/* ─── Grain overlay ──────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: -1;
  background-image: radial-gradient(rgba(0,0,0,0.15) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(91,95,237,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91,95,237,0.45); }

/* ─── Intro Gate ─────────────────────────────────────────── */
body.intro-locked { overflow: hidden; }

body.intro-locked .site-header,
body.intro-locked main,
body.intro-locked .site-footer {
  opacity: 0.15;
  transform: scale(0.97);
  filter: blur(4px);
  pointer-events: none;
}

body.intro-open .site-header,
body.intro-open main,
body.intro-open .site-footer {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 650ms ease, transform 650ms ease, filter 650ms ease;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(135deg, #0d0f1f 0%, #1a0533 50%, #0d0f1f 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 520ms ease;
}

.intro-surface {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d0f1f 0%, #1a0533 50%, #0d0f1f 100%);
}

.intro-surface::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,95,237,0.25) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.intro-surface::after {
  content: "";
  position: absolute;
  bottom: 15%;
  right: 25%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite reverse;
  pointer-events: none;
}

.intro-shutter {
  position: absolute;
  top: 0; bottom: 0;
  width: 52%;
  background: linear-gradient(180deg, rgba(5,10,30,0.8) 0%, rgba(3,6,20,0.95) 100%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-shutter-left  { left: -2%;  border-right: 1px solid rgba(255,255,255,0.12); }
.intro-shutter-right { right: -2%; border-left:  1px solid rgba(255,255,255,0.12); }

.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 1rem;
  transition: transform 700ms ease, opacity 700ms ease;
}

.intro-logo {
  width: min(56vw, 380px);
  height: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 0.6rem;
  box-shadow: 0 0 60px rgba(91,95,237,0.4);
}

.intro-title {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-subtitle {
  margin-top: 0.35rem;
  opacity: 0.75;
  font-weight: 500;
  font-size: 0.95rem;
}

.intro-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: introPulse 1450ms ease-in-out infinite;
}

.intro-enter {
  margin-top: 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 0.72rem 1.8rem;
  background: rgba(91,95,237,0.2);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 200ms ease, transform 200ms ease;
}

.intro-enter:hover {
  background: rgba(91,95,237,0.35);
  transform: translateY(-2px);
}

body.intro-open .intro-content   { opacity: 0; transform: translateY(-16px) scale(0.97); }
body.intro-open .intro-shutter-left  { transform: translateX(-112%); }
body.intro-open .intro-shutter-right { transform: translateX(112%); }
body.intro-open .intro-gate       { opacity: 0; pointer-events: none; }

@keyframes introPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

@keyframes riseInSmooth {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 220ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-solid:hover { box-shadow: 0 12px 28px rgba(91,95,237,0.45); }

.btn-ghost {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(91,95,237,0.3);
}
.btn-ghost:hover {
  background: #dde0ff;
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(91,95,237,0.4);
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.full-width { width: 100%; }

/* ─── Forms ──────────────────────────────────────────────── */
label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.005em;
}

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: var(--bg-deep);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input::placeholder, textarea::placeholder { color: var(--muted); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-status {
  min-height: 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.form-status.success { color: var(--success); }
.form-status.error   { color: var(--error); }

/* ─── Eyebrow / Badge ────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(91,95,237,0.2);
  margin-bottom: 0.75rem;
}

/* ─── Section Reveal ─────────────────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: riseInSmooth 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ─── IntersectionObserver animations (landing page) ─────── */
.motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 60ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms ease, transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger-index, 0) * 80ms + 100ms);
}

.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation Header ──────────────────────────────────── */
.site-header {
  width: min(1200px, 94vw);
  margin: 1rem auto 0;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  backdrop-filter: blur(12px);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #0d0f1f;
  border: 1px solid rgba(91,95,237,0.2);
  padding: 2px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-menu {
  display: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.btn-menu:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Nav sidebar (mobile) */
.nav-sidebar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav-sidebar > a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-sidebar > a:not(.btn):hover { color: var(--primary); }
.nav-sidebar-toggle  { display: none; }
.nav-sidebar-divider { width: 1px; height: 20px; background: var(--line); margin: 0 0.25rem; }

.nav-sidebar-backdrop { display: none; }
.nav-sidebar-backdrop.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  z-index: 18;
}
.nav-sidebar.is-collapsed { transform: translateX(calc(-100% - 2rem)); }
.nav-sidebar.is-open      { transform: translateX(0); transition: transform 260ms ease; }

/* ─── Main wrapper (landing) ─────────────────────────────── */
main {
  width: min(1200px, 94vw);
  margin: 0 auto 3rem;
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-minimal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #07090f 0%, #0f0c29 40%, #1a0533 100%);
  border-radius: 20px;
  padding: clamp(5rem, 10vw, 8rem) 2rem clamp(4rem, 8vw, 7rem);
  text-align: center;
  margin: 1.5rem 1.5rem 0;

  /* Glowing floating card */
  border: 1px solid rgba(91, 95, 237, 0.3);
  box-shadow:
    0 0 0 1px rgba(91, 95, 237, 0.08),
    0 0 40px rgba(91, 95, 237, 0.12),
    0 0 80px rgba(124, 58, 237, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-minimal::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,95,237,0.2) 0%, transparent 65%);
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
}

.hero-minimal::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 55%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 65%);
  animation: orbFloat 14s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 58ch;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .btn-solid {
  background: var(--gradient-primary);
  box-shadow: 0 8px 32px rgba(91,95,237,0.5);
}

.hero-cta .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* ─── Featured Data / Stats ──────────────────────────────── */
.featured-data {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.featured-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.featured-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.featured-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), rgba(124,58,237,0.05));
  opacity: 0;
  transition: opacity 220ms ease;
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); border-color: rgba(91,95,237,0.3); }
.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ─── Announcements / Work ───────────────────────────────── */
.announcements {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 50ch;
  margin: 0 auto;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.announcement-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-mid);
  border-color: rgba(91,95,237,0.25);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.announcement-meta .date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.announcement-meta .category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(91,95,237,0.2);
  letter-spacing: 0.04em;
}

.announcement-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.announcement-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.read-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease, gap 200ms ease;
}
.read-more:hover { color: var(--primary-dark); }

/* ─── Services ───────────────────────────────────────────── */
.services-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); border-color: rgba(91,95,237,0.25); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(91,95,237,0.2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke: currentColor;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
  font-weight: 500;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ─── Values ─────────────────────────────────────────────── */
.values-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.value-item {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 220ms ease, border-color 220ms ease;
}

.value-item:hover { transform: translateY(-3px); border-color: rgba(91,95,237,0.25); }

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: grid;
  place-items: center;
  border: 1px solid rgba(91,95,237,0.2);
}

.value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  stroke: currentColor;
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.value-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #5b5fed 0%, #7c3aed 100%);
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-solid {
  background: #ffffff;
  color: var(--primary);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-content .btn-solid:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.3); }

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
}

.section-head { margin-bottom: 1.25rem; }

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text);
}

.contact-direct {
  margin: 0 0 1.75rem;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-direct a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms;
}
.contact-direct a:hover { color: var(--primary-dark); }

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lead-form label:nth-of-type(3),
.lead-form label:nth-of-type(4),
.lead-form button,
.lead-form .form-status { grid-column: 1 / -1; }

/* ─── Careers ────────────────────────────────────────────── */
.careers-section {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
}

.jobs-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.jobs-form .job-full-row,
.jobs-form button,
.jobs-form .form-status { grid-column: 1 / -1; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  width: min(1200px, 94vw);
  margin: 0 auto 2rem;
  padding: 3rem 2rem 2rem;
  background: #0d0f1f;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-section a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease;
}
.footer-section a:hover { color: #ffffff; }

.social-links {
  display: grid;
  gap: 0.6rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.83rem;
}

/* ─── Offer Letter Modal ─────────────────────────────────── */
.offer-letter-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.offer-letter-modal[hidden] { display: none; }

.offer-letter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.offer-letter-dialog {
  position: relative;
  width: min(620px, 92vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  z-index: 1;
}

.offer-letter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.offer-letter-head h3 { color: var(--primary); font-size: 1.2rem; }
.offer-letter-form    { display: grid; gap: 0.9rem; }
body.modal-open       { overflow: hidden; }

/* ─── Login Pages ────────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-brand-panel {
  background: linear-gradient(160deg, #07090f 0%, #0f0c29 50%, #1a0533 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,95,237,0.25) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: -15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  animation: orbFloat 14s ease-in-out infinite reverse;
}

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

.login-panel-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.login-panel-logo img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  padding: 4px;
  object-fit: contain;
}

.login-panel-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.login-panel-headline {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.login-panel-headline span {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-panel-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.login-panel-features {
  display: grid;
  gap: 1rem;
}

.login-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.login-feature-dot {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(91,95,237,0.2);
  border: 1px solid rgba(91,95,237,0.3);
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.login-feature-dot svg {
  width: 18px;
  height: 18px;
  color: #a5b4fc;
  stroke: currentColor;
}

.login-feature-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.15rem;
}

.login-feature-text span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--bg-deep);
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 420px;
}

/* Legacy support for old login layout classes */
.login-main { width: min(420px, 94vw); margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color 200ms;
}
.back-link:hover { color: var(--primary); }

.login-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.login-brand { margin-bottom: 1.25rem; }

.login-card h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 0.4rem;
}

.login-card > p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1.5rem; }

.login-form { display: grid; gap: 1rem; margin-bottom: 1rem; }

.switch-auth {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.switch-auth button, .switch-auth a {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.switch-auth button:hover, .switch-auth a:hover { color: var(--primary-dark); }

.demo-note {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  background: var(--primary-light);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91,95,237,0.2);
}

.employee-login-card { max-width: 500px; }

/* ─── Dashboard Base ─────────────────────────────────────── */
.employee-body {
  min-height: 100vh;
  background: var(--bg);
}

.employee-header {
  background: rgba(255,255,255,0.95);
  border-color: rgba(91,95,237,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.employee-main {
  width: min(1180px, 94vw);
  margin: 1.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.employee-content { display: grid; gap: 1.25rem; }

.employee-sidebar {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  transition: transform 260ms ease;
  border-radius: var(--radius-lg);
}

.employee-sidebar.is-collapsed { transform: translateX(calc(-100% - 1.5rem)); }
.employee-sidebar.is-open      { transform: translateX(0); }
.employee-sidebar-toggle { display: none; }

.employee-sidebar-backdrop { display: none; }
.employee-sidebar-backdrop.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  z-index: 18;
}

.dashboard-actions { display: flex; align-items: center; gap: 0.75rem; }

.employee-name {
  font-weight: 700;
  color: var(--primary);
  border: 1.5px solid rgba(91,95,237,0.25);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  background: var(--primary-light);
  font-size: 0.88rem;
}

/* ─── Employee Panel / Card ──────────────────────────────── */
.employee-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.employee-profile-panel {
  border-color: rgba(91,95,237,0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.employee-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-primary);
}

.employee-role {
  margin-top: 0.45rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.employee-detail-list {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.employee-detail-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: border-color 200ms, background 200ms;
}
.employee-detail-list div:hover { border-color: rgba(91,95,237,0.25); background: var(--primary-light); }

.employee-detail-list dt {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.employee-detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Security Tools ─────────────────────────────────────── */
.employee-security-tools,
.employee-bank-tools {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.employee-security-tools h3,
.employee-bank-tools h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
}

.employee-password-form { display: grid; gap: 0.8rem; }

/* ─── Updates List ───────────────────────────────────────── */
.updates-list {
  margin: 0; padding: 0;
  padding-right: 0.5rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.update-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--card-strong);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.update-item:hover { transform: translateY(-2px); border-color: rgba(91,95,237,0.2); box-shadow: var(--shadow-soft); }
.update-item.is-open { border-color: rgba(91,95,237,0.3); box-shadow: var(--shadow-soft); }

.update-item.is-new {
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.3), 0 0 18px rgba(16,185,129,0.15);
  animation: notifGlow 1.6s ease-in-out infinite;
}

.update-item.is-new::after, .personal-notif-card.is-new::after {
  content: "NEW";
  position: absolute;
  top: -9px; right: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.5rem;
}

.personal-notif-card.is-new {
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.3), 0 0 18px rgba(16,185,129,0.15);
  animation: notifGlow 1.6s ease-in-out infinite;
}

@keyframes notifGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(16,185,129,0.25), 0 0 14px rgba(16,185,129,0.12); }
  50%       { box-shadow: 0 0 0 1px rgba(16,185,129,0.4), 0 0 24px rgba(16,185,129,0.25); }
}

.update-item-btn {
  width: 100%; max-width: 100%;
  text-align: left; border: 0;
  background: transparent; padding: 0;
  cursor: pointer; color: inherit;
  overflow-wrap: anywhere; word-break: break-word;
}

.update-item-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-sm); }

.update-title { font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; overflow-wrap: anywhere; }
.update-detail { margin-top: 0.4rem; color: var(--text-light); line-height: 1.6; font-size: 0.9rem; }
.update-date   { margin-top: 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ─── Announcement Reader ────────────────────────────────── */
.announcement-reader {
  margin-top: 1rem;
  border: 1px solid rgba(91,95,237,0.15);
  border-radius: var(--radius-md);
  background: var(--primary-light);
  padding: 1.1rem;
}

.announcement-reader-head {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.7rem;
}

.announcement-reader-head h3 { margin: 0; color: var(--primary-dark); font-size: 1rem; }

.announcement-close { width: auto; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); }

.announcement-reader-meta    { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.announcement-reader-message { margin: 0.75rem 0 0; color: var(--text); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ─── Personal Notifications ─────────────────────────────── */
.personal-notifications-panel {
  border-color: rgba(220,38,38,0.2);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}

.personal-notifications-list {
  display: grid; gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto; overflow-x: hidden;
  padding-right: 0.5rem;
}

.personal-notif-card {
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.9);
  position: relative;
}

.personal-notif-head {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 0.6rem; margin-bottom: 0.4rem;
}

.personal-notif-title  { margin: 0; color: #b91c1c; font-weight: 800; font-size: 0.92rem; }
.personal-notif-badge  { font-size: 0.7rem; font-weight: 800; padding: 0.18rem 0.5rem; border-radius: var(--radius-full); }
.personal-notif-badge.normal  { background: var(--primary-light); color: var(--primary-dark); }
.personal-notif-badge.high,
.personal-notif-badge.urgent  { background: rgba(220,38,38,0.12); color: #b91c1c; }

.personal-notif-message { margin: 0 0 0.35rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; color: var(--text); }
.personal-notif-time    { margin: 0; font-size: 0.76rem; color: var(--muted); }

/* ─── Calendar ───────────────────────────────────────────── */
.calendar-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 0.8rem; margin-bottom: 1rem;
}

.calendar-month { margin: 0; font-weight: 800; color: var(--primary-dark); font-size: 1rem; }

.attendance-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-head {
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-cell {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  padding: 0.5rem;
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button.calendar-cell { cursor: pointer; }
button.calendar-cell:hover { transform: translateY(-2px); border-color: rgba(91,95,237,0.3); box-shadow: var(--shadow-soft); }

.calendar-cell-empty   { border-style: dashed; background: transparent; opacity: 0.5; }
.calendar-cell-selected { outline: 2px solid var(--primary); border-color: var(--primary); background: var(--primary-light); }

.calendar-status-present {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.4);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3);
}
.calendar-status-present::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
}

.calendar-status-absent {
  background: rgba(220,38,38,0.07);
  border-color: rgba(220,38,38,0.4);
  box-shadow: inset 0 0 0 1px rgba(220,38,38,0.3);
}
.calendar-status-absent::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--error);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
}

.calendar-status-pending { background: rgba(217,119,6,0.08); }

button.calendar-cell.calendar-status-present:hover { border-color: rgba(16,185,129,0.6); }
button.calendar-cell.calendar-status-absent:hover  { border-color: rgba(220,38,38,0.6); }

.calendar-day   { font-weight: 700; color: var(--text); font-size: 0.92rem; }
.calendar-state,
.calendar-time  { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-md); }

.employee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.employee-table th,
.employee-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.employee-table thead { position: sticky; top: 0; z-index: 1; }

.employee-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--card-strong);
  padding-top: 1rem; padding-bottom: 1rem;
}

.employee-table tbody tr:hover { background: var(--primary-light); }
.employee-table td { color: var(--text-light); font-size: 0.9rem; }

/* ─── Status Pills ───────────────────────────────────────── */
.status-pill {
  display: inline-block;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.status-present, .status-done { background: rgba(16,185,129,0.12); color: #065f46; }
.status-pending               { background: rgba(217,119,6,0.12);  color: #92400e; }
.status-in-progress           { background: var(--primary-light);   color: var(--primary-dark); }

/* Task status selects */
.task-status, .manager-task-status {
  min-width: 138px;
  border-width: 1.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.task-status.status-pending, .manager-task-status.status-pending {
  background: rgba(217,119,6,0.1); border-color: rgba(217,119,6,0.4); color: #92400e;
}
.task-status.status-in-progress, .manager-task-status.status-in-progress {
  background: var(--primary-light); border-color: rgba(91,95,237,0.4); color: var(--primary-dark);
}
.task-status.status-done, .manager-task-status.status-done {
  background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); color: #065f46;
}

#tasks-body tr.status-pending,        #manager-tasks-body tr.status-pending        { background: rgba(217,119,6,0.05); }
#tasks-body tr.status-in-progress,    #manager-tasks-body tr.status-in-progress    { background: rgba(91,95,237,0.04); }
#tasks-body tr.status-done,           #manager-tasks-body tr.status-done           { background: rgba(16,185,129,0.05); }
#tasks-body tr.status-pending:hover,  #manager-tasks-body tr.status-pending:hover  { background: rgba(217,119,6,0.1); }
#tasks-body tr.status-in-progress:hover, #manager-tasks-body tr.status-in-progress:hover { background: rgba(91,95,237,0.08); }
#tasks-body tr.status-done:hover,     #manager-tasks-body tr.status-done:hover     { background: rgba(16,185,129,0.1); }

/* ─── Manager Dashboard ──────────────────────────────────── */
.manager-main {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: start;
}

.manager-content { display: grid; gap: 1.25rem; min-width: 0; }

/* Mobile nav bar — hidden on desktop, shown on mobile when module is active */
.mgr-mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .mgr-mobile-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    margin-bottom: 0.25rem;
  }

  .mgr-mobile-nav-home,
  .mgr-mobile-nav-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid;
    transition: background 150ms, border-color 150ms;
  }

  .mgr-mobile-nav-home {
    background: #f4f6fb;
    border-color: var(--line);
    color: var(--text);
  }
  .mgr-mobile-nav-home:hover { background: #e8ebf4; }

  .mgr-mobile-nav-menu {
    background: var(--primary-light);
    border-color: rgba(91,95,237,0.3);
    color: var(--primary);
  }
  .mgr-mobile-nav-menu:hover { background: rgba(91,95,237,0.15); }
}

.manager-sidebar {
  position: sticky;
  top: 5rem;
  border: 1px solid rgba(91,95,237,0.12);
  background: #ffffff;
  max-height: calc(100vh - 6rem);
  overflow: hidden;           /* body inside scrolls */
  display: flex;
  flex-direction: column;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Desktop: sidebar is always visible, collapse/expand via transform */
.manager-sidebar.is-collapsed { transform: translateX(calc(-100% - 1.5rem)); }
.manager-sidebar.is-open      { transform: translateX(0); }
.manager-sidebar-toggle { display: none; }

/* Sidebar header — hidden on desktop, shown as mobile drawer header */
.mgr-sb-head {
  display: none;
}

/* Sidebar scrollable body */
.mgr-sb-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.manager-sidebar-backdrop { display: none; pointer-events: none; }
.manager-sidebar-backdrop.is-visible {
  display: block;
  pointer-events: auto;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 190;
}

.manager-sidebar label { display: grid; gap: 0.4rem; margin-top: 0.2rem; }

.manager-selected-employee {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  overflow-wrap: anywhere; word-break: break-word;
}

.manager-account-tools {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.75rem;
}

.manager-workspace-tools { margin-top: 1rem; }

.manager-profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  padding: 0.85rem;
  display: grid; gap: 0.4rem;
}

.manager-profile-card p { margin: 0; color: var(--text); font-size: 0.87rem; }

.manager-password-form { display: grid; gap: 0.7rem; }

.manager-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  min-width: 0;
}

.manager-options-note {
  margin-top: 0.85rem; margin-bottom: 0;
  color: var(--muted); font-weight: 600; font-size: 0.85rem;
}

.manager-option-btn {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  min-width: 0;
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.manager-option-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(91,95,237,0.3);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.manager-option-btn.is-active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.manager-module        { display: none; min-width: 0; }
.manager-module.is-active { display: block; }

.manager-controls { margin-bottom: 0.75rem; max-width: 420px; }
#manager-employee-form { margin-bottom: 1rem; }
.manager-attendance-status, .manager-checkin { min-width: 130px; }

/* ─── Alerts / Messages ──────────────────────────────────── */
.manager-alert-list,
.manager-personal-msg-list {
  display: grid; gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto; overflow-x: hidden;
  padding-right: 0.5rem;
}

.manager-alert-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  padding: 0.85rem 1rem;
  min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; word-break: break-word;
  transition: border-color 200ms, transform 200ms;
}
.manager-alert-item:hover { transform: translateY(-2px); border-color: rgba(91,95,237,0.2); }
.manager-alert-item p { margin: 0; }

.manager-alert-head {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.6rem;
}

.manager-alert-title  { font-weight: 700; color: var(--primary-dark); overflow-wrap: anywhere; font-size: 0.92rem; }
.manager-alert-priority {
  font-size: 0.72rem; font-weight: 800;
  border-radius: var(--radius-full);
  padding: 0.16rem 0.55rem; text-transform: uppercase;
}
.manager-alert-priority.high   { background: rgba(220,38,38,0.1);  color: #b91c1c; }
.manager-alert-priority.normal { background: var(--primary-light); color: var(--primary-dark); }

.manager-alert-message { margin-top: 0.35rem; color: var(--text-light); overflow-wrap: anywhere; font-size: 0.9rem; }
.manager-alert-meta    { margin-top: 0.35rem; color: var(--muted); font-size: 0.82rem; }

.manager-card-actions, .manager-task-actions {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.55rem;
}
.manager-task-actions { margin-top: 0; }

.manager-action-btn, .manager-task-edit, .manager-task-delete {
  width: auto; min-width: 72px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem; font-weight: 700;
  border-radius: var(--radius-sm);
}

.manager-action-btn.danger, .manager-task-delete {
  border-color: rgba(220,38,38,0.3);
  color: #b91c1c;
  background: rgba(220,38,38,0.06);
}
.manager-action-btn.danger:hover, .manager-task-delete:hover {
  border-color: rgba(220,38,38,0.5);
  background: rgba(220,38,38,0.12);
}

/* ─── Attendance Editor ──────────────────────────────────── */
.attendance-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; margin-bottom: 0.8rem;
}

.attendance-selected { grid-column: 1 / -1; margin: 0; color: var(--primary-dark); font-weight: 700; }

.attendance-button-group { grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.attendance-button-group button { flex: 1; min-width: 140px; }

.attendance-btn { font-size: 0.84rem; padding: 0.42rem 0.7rem; }
.attendance-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Manager Workspace Forms ────────────────────────────── */
.manager-update-form { display: grid; gap: 0.8rem; margin-bottom: 1rem; min-width: 0; }

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem; margin-top: 0.5rem;
}

.manager-employee-password-tools {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.65rem;
}
.manager-employee-password-tools h3 { margin: 0.25rem 0 0.4rem; }

/* ─── Dashboard Section Head ─────────────────────────────── */
body.employee-body .section-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

body.employee-body .section-head h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-content     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav-links          { display: none; }
  .btn-menu           { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }

  .announcements-grid,
  .services-grid,
  .values-grid        { grid-template-columns: 1fr; }

  .lead-form,
  .jobs-form          { grid-template-columns: 1fr; }

  .lead-form label:nth-of-type(3),
  .lead-form label:nth-of-type(4),
  .lead-form button,
  .lead-form .form-status { grid-column: auto; }

  .jobs-form .job-full-row,
  .jobs-form button,
  .jobs-form .form-status { grid-column: auto; }

  .manager-main,
  .employee-main      { grid-template-columns: 1fr; }

  .employee-sidebar {
    position: fixed;
    z-index: 19;
    top: 1rem; left: 1rem;
    width: min(88vw, 360px);
    max-height: calc(100vh - 2rem);
    transform: translateX(calc(-100% - 2rem));
  }
  .employee-sidebar.is-open  { transform: translateX(0); }
  .employee-sidebar-toggle   { display: inline-flex; }
  .employee-sidebar-backdrop.is-visible { display: block; }

  /* ── Manager sidebar: full-height drawer on mobile ── */
  .manager-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(85vw, 320px);
    height: 100vh;
    max-height: 100vh;
    z-index: 200;
    border-radius: 0 16px 16px 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    box-shadow: 4px 0 32px rgba(0,0,0,0.18);
    transform: translateX(-100%);
    overflow: hidden;
  }
  /* Both selectors get equal specificity boost so is-open always wins */
  .manager-sidebar.is-open,
  body.mgr-portal .manager-sidebar.is-open { transform: translateX(0) !important; }
  .manager-sidebar-toggle   { display: inline-flex; }
  .manager-sidebar-backdrop.is-visible {
    display: block;
    z-index: 190;
  }

  /* Show sidebar header on mobile */
  .mgr-sb-head { display: flex; }

  .nav-sidebar {
    position: fixed;
    z-index: 19;
    top: 1rem; left: 1rem;
    width: min(88vw, 360px);
    max-height: calc(100vh - 2rem);
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-deep);
    box-shadow: var(--shadow-mid);
    display: grid;
    align-content: start;
    gap: 0.7rem;
    overflow: auto;
    transform: translateX(calc(-100% - 2rem));
    margin-left: 0;
  }
  .nav-sidebar > a:not(.btn)     { display: block; padding: 0.15rem 0; }
  .nav-sidebar-divider           { width: 100%; height: 1px; margin: 0.25rem 0; }
  .nav-sidebar .btn              { width: 100%; justify-content: center; }
  .nav-sidebar-toggle            { display: inline-flex; }
  .nav-sidebar-backdrop.is-visible { display: block; }

  .manager-options-grid { grid-template-columns: 1fr; }

  input, select, textarea { min-height: 42px; }
  .btn { min-height: 42px; }
}

@media (max-width: 768px) {
  .login-body { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 2rem 1.5rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { padding: 0.75rem 1rem; gap: 0.5rem; }
  .brand-text  { font-size: 0.85rem; }

  main { width: 100%; padding: 0 1rem; }

  .hero-minimal    { margin-top: 1rem; }
  .contact,
  .careers-section { padding: 1.5rem 1.25rem; }

  .stats-grid      { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card       { padding: 1.25rem 1rem; }

  .footer-content  { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .site-footer     { padding: 2rem 1.25rem 1.5rem; }

  .value-item      { flex-direction: column; gap: 0.85rem; padding: 1.25rem; }
  .announcement-card { padding: 1.25rem; }

  .form-actions    { grid-template-columns: 1fr; }

  input, select, textarea { min-height: 46px; padding: 0.7rem 0.9rem; font-size: 16px; }
  .btn             { min-height: 46px; padding: 0.75rem 1.25rem; }

  .attendance-editor { grid-template-columns: 1fr; }
  .calendar-toolbar  { flex-direction: column; align-items: flex-start; }
  .calendar-toolbar button { width: 100%; }
  .attendance-calendar { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .calendar-head     { display: none; }
  .calendar-cell     { min-height: 72px; }

  .employee-name { font-size: 0.82rem; padding: 0.4rem 0.75rem; }
  .dashboard-actions { gap: 0.5rem; flex-wrap: wrap; }

  .offer-letter-dialog { padding: 1.25rem; }
  .offer-letter-head   { flex-direction: column; align-items: flex-start; }

  /* ── Task table → card layout on mobile ── */
  #module-tasks .table-wrap {
    overflow-x: visible !important;
    border-radius: 0;
  }

  #module-tasks .employee-table { display: block !important; min-width: 0 !important; width: 100% !important; }
  #module-tasks .employee-table thead { display: block !important; }
  #module-tasks .employee-table tbody { display: block !important; }
  #module-tasks .employee-table tr   { display: block !important; }
  #module-tasks .employee-table th   { display: block !important; }
  #module-tasks .employee-table td   { display: flex !important; }

  /* Remove sticky from thead so display:none works cleanly */
  #module-tasks .employee-table thead { position: static !important; }

  /* Hide the column header row completely */
  #module-tasks .employee-table thead tr {
    display: none !important;
  }

  /* Each row becomes a card */
  #module-tasks .employee-table tbody tr {
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.75rem !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
  }

  /* Each cell: label column + value column */
  #module-tasks .employee-table td {
    border: none !important;
    padding: 0.28rem 0 !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    font-size: 0.87rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  #module-tasks .employee-table td::before {
    content: attr(data-label);
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    min-width: 82px !important;
    flex-shrink: 0 !important;
    padding-top: 0.15rem !important;
  }

  /* Action buttons row */
  #module-tasks .employee-table td[data-label="Actions"] { align-items: center !important; }
  #module-tasks .manager-task-actions { display: flex !important; gap: 0.45rem !important; flex-wrap: wrap !important; }
  #module-tasks .manager-task-actions .btn {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 0.8rem !important;
  }

  .intro-logo      { width: min(72vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-hint, .intro-shutter, .intro-content,
  .site-header, main, .site-footer,
  .hero-minimal::before, .hero-minimal::after,
  .intro-surface::before, .intro-surface::after { animation: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════
   Manager Portal v3 — Professional Redesign
   All new classes prefixed with mgr- to avoid conflicts
   ════════════════════════════════════════════════════════════ */

/* ── Shell override ──────────────────────────────────────── */
body.mgr-portal { background: #f4f6fb; }

/* Full-width app bar (overrides floating pill header) */
body.mgr-portal .site-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  top: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0 1.75rem;
  height: 62px;
}

/* Full-width main layout */
body.mgr-portal .employee-main.manager-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.75rem 1.75rem 2.5rem;
  min-height: calc(100vh - 62px);
}

/* Sidebar offset for full-width header (desktop only) */
@media (min-width: 981px) {
  body.mgr-portal .manager-sidebar {
    top: 5rem;
    max-height: calc(100vh - 5.5rem);
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(91,95,237,0.1);
  }
}

/* ── Sidebar header & close button ──────────────────────── */
.mgr-sb-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.mgr-sb-head-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mgr-sb-head-brand svg {
  color: var(--primary);
  flex-shrink: 0;
}

.mgr-sb-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
  flex-shrink: 0;
}

.mgr-sb-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── App bar layout ──────────────────────────────────────── */
.mgr-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mgr-appbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex-shrink: 1;
}

.mgr-appbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ── Menu toggle (hamburger) ─────────────────────────────── */
.mgr-appbar-menu {
  display: none;          /* hidden on desktop */
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(91,95,237,0.25);
  background: var(--primary-light);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms, border-color 150ms;
}

.mgr-appbar-menu:hover {
  background: rgba(91,95,237,0.15);
  border-color: rgba(91,95,237,0.4);
}

/* ── Logout button ───────────────────────────────────────── */
.mgr-appbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(220,38,38,0.25);
  background: rgba(254,242,242,0.8);
  color: #dc2626;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms, border-color 150ms;
}

.mgr-appbar-logout:hover {
  background: rgba(254,226,226,0.9);
  border-color: rgba(220,38,38,0.45);
}

.mgr-appbar-logout svg { flex-shrink: 0; }

.mgr-portal-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(91,95,237,0.25);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
}

/* ── Manager name pill in header ─────────────────────────── */
.mgr-name-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-light);
  border: 1.5px solid rgba(91,95,237,0.2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
}

.mgr-name-pill-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mgr-name-pill-av svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.mgr-name-pill-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ── Sidebar sections ────────────────────────────────────── */
.mgr-sb-group {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: grid;
  gap: 0.65rem;
}

.mgr-sb-group:last-child { border-bottom: none; }

.mgr-sb-label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
  padding-left: 0.2rem;
}

/* ── Employee selector in sidebar ────────────────────────── */
.mgr-select-wrap {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
}

.mgr-emp-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #eef0ff 0%, #f4f0ff 100%);
  border: 1.5px solid rgba(91,95,237,0.22);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  margin-top: 0.65rem;
}

.mgr-emp-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91,95,237,0.28);
}

.mgr-emp-chip-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
}

.mgr-emp-chip-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

/* ── Sidebar account tools ───────────────────────────────── */
.mgr-sb-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms, background 200ms, color 200ms;
  font-family: inherit;
}

.mgr-sb-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  opacity: 0.7;
}

.mgr-sb-btn:hover {
  border-color: rgba(91,95,237,0.4);
  background: var(--primary-light);
  color: var(--primary);
}

.mgr-sb-btn:hover svg { opacity: 1; }

/* Profile card in sidebar */
.mgr-profile-card {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.mgr-profile-row {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.mgr-profile-key {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mgr-profile-val {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Password form label in sidebar */
.mgr-pass-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
}

.mgr-pass-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.75;
  flex-shrink: 0;
}

.mgr-pass-form {
  display: grid;
  gap: 0.7rem;
}

/* ── Nav buttons with icons ──────────────────────────────── */
.mgr-nav-grid {
  display: grid;
  gap: 0.22rem;
}

.mgr-nav-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-align: left !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.87rem !important;
}

.mgr-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  opacity: 0.7;
}

.mgr-nav-btn:hover svg,
.mgr-nav-btn.is-active svg { opacity: 1; }

.mgr-nav-btn span { flex: 1; }

/* ── Module headers with icon ────────────────────────────── */
.mgr-mod-hd {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mgr-mod-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(91,95,237,0.15);
}

.mgr-mod-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.75;
}

.mgr-mod-hd > div:not(.mgr-mod-icon) { min-width: 0; }

.mgr-mod-hd .eyebrow { margin-bottom: 0.3rem; }

.mgr-mod-hd h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  color: var(--primary-dark);
  margin: 0;
}

/* ── 2-column form grid ──────────────────────────────────── */
.mgr-form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.mgr-form-2 .mgr-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .mgr-form-2 { grid-template-columns: 1fr; }
  .mgr-form-2 .mgr-full { grid-column: auto; }
}

/* ── Welcome / overview panel ────────────────────────────── */
.mgr-welcome-section {
  min-width: 0;
}

.mgr-welcome-inner {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  background: linear-gradient(150deg, #f5f6ff 0%, #fdf8ff 60%, #f5f6ff 100%);
  border: 1px solid rgba(91,95,237,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.mgr-welcome-orb {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
}

.mgr-welcome-orb svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
}

.mgr-welcome-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.mgr-welcome-inner > p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.mgr-welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 700px;
  margin: 0 auto;
}

.mgr-quick-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: inherit;
}

.mgr-quick-tile:hover {
  border-top-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.mgr-quick-tile svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.75;
  display: block;
}

.mgr-quick-tile strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.mgr-quick-tile span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .mgr-welcome-grid { grid-template-columns: 1fr 1fr; }
  .mgr-welcome-inner { padding: 2rem 1.25rem; }
}

@media (max-width: 400px) {
  .mgr-welcome-grid { grid-template-columns: 1fr; }
}

/* ── Manager portal responsive ───────────────────────────── */
@media (max-width: 980px) {
  body.mgr-portal .employee-main.manager-main {
    padding: 1.25rem;
  }

  /* Show hamburger on mobile/tablet */
  .mgr-appbar-menu {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  /* Icon-only logout on small screens */
  .mgr-logout-text { display: none; }
  .mgr-appbar-logout { padding: 0; width: 36px; justify-content: center; }

  /* Tighten gap */
  .mgr-appbar-actions { gap: 0.45rem; }

  /* Truncate manager name */
  .mgr-name-pill-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mgr-portal .site-header {
    padding: 0 1rem;
    height: 56px;
  }
  .mgr-portal-badge { display: none; }
}

/* ════════════════════════════════════════════════════════════
   Landing Page Visual Enhancements
   ════════════════════════════════════════════════════════════ */

/* ─── Scroll Progress Bar ─────────────────────────────────── */
#scroll-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5b5fed, #7c3aed, #c084fc);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(91,95,237,0.55);
  border-radius: 0 2px 2px 0;
}

/* ─── Live Hero Badge ────────────────────────────────────── */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(91,95,237,0.25);
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: livePulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ─── Hero Trust Strip ───────────────────────────────────── */
.hero-trust {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.85rem;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
  transition: color 200ms, border-color 200ms, background 200ms;
}

.trust-badge:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}

/* ─── Marquee Ticker Strip ───────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  background: linear-gradient(135deg, #5b5fed 0%, #7c3aed 100%);
  padding: 0.75rem 0;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.marquee-strip::before,
.marquee-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.marquee-strip::before { left: 0;  background: linear-gradient(to right, #5b5fed, transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(to left,  #7c3aed, transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1.5rem;
}

.marquee-dot {
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.65rem !important;
  padding: 0 0.25rem !important;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Cursor Spotlight on Cards ──────────────────────────── */
.service-card, .announcement-card, .value-item {
  --mx: -200px; --my: -200px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(91,95,237,0.08), transparent 60%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 1;
  transition: opacity 300ms;
  z-index: 0;
}

/* ─── Service Card Number Badge ──────────────────────────── */
.service-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(91,95,237,0.07);
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  pointer-events: none;
  user-select: none;
  transition: color 220ms ease;
}

.service-card:hover .service-num {
  color: rgba(91,95,237,0.12);
}

/* ─── Section Heading Underline Draw-in ──────────────────── */
.section-header h2,
.section-head h2,
.featured-content h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after,
.section-head h2::after,
.featured-content h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.heading-revealed::after { width: 100%; }

/* ─── Hero Typewriter Word Reveal ────────────────────────── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: heroWordReveal 550ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--wi, 0) * 65ms + 300ms);
}

@keyframes heroWordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Nav Active Link ────────────────────────────────────── */
.nav-links a.nav-active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ─── Stat Card Count Pop ────────────────────────────────── */
.stat-card.counted {
  animation: statPop 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statPop {
  0%   { transform: translateY(-4px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* ─── Back-to-Top Button ─────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(91,95,237,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease, box-shadow 200ms ease;
  pointer-events: none;
  z-index: 200;
}

#back-to-top svg {
  width: 18px; height: 18px;
  stroke: #fff;
  stroke-width: 2.2;
}

#back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  box-shadow: 0 8px 28px rgba(91,95,237,0.55);
  transform: translateY(-2px);
}

/* ─── Footer Brand Row ───────────────────────────────────── */
.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.footer-brand-logo img {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  padding: 3px;
  object-fit: contain;
}

.footer-brand-logo span {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

.footer-social-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 200ms, color 200ms, border-color 200ms;
}

.footer-social-btn:hover {
  background: rgba(91,95,237,0.2);
  border-color: rgba(91,95,237,0.4);
  color: #fff;
}

/* ─── Responsive tweaks for enhancements ─────────────────── */
@media (max-width: 640px) {
  .marquee-strip { border-radius: var(--radius-md); }
  .footer-brand  { flex-direction: column; }
  #back-to-top   { bottom: 1.25rem; right: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   Hero Orbs  (extra gradient blobs behind hero text)
   ════════════════════════════════════════════════════════════ */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: heroOrbDrift var(--d, 16s) ease-in-out infinite alternate;
}

.orb-a {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(91,95,237,0.38) 0%, rgba(124,58,237,0.18) 50%, transparent 72%);
  top: -140px; right: -80px;
  --d: 20s;
}

.orb-b {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.28) 0%, transparent 68%);
  bottom: -80px; left: 8%;
  --d: 26s;
  animation-delay: -10s;
}

.orb-c {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,132,252,0.32) 0%, transparent 68%);
  top: 35%; left: 3%;
  --d: 18s;
  animation-delay: -5s;
}

@keyframes heroOrbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(28px, -35px) scale(1.07); }
  100% { transform: translate(-18px, 22px) scale(0.94); }
}

/* ─── Rotating headline words ────────────────────────────── */
.hero-rotate-wrap {
  display: inline-block;
  perspective: 600px;
}

.hero-rotate {
  display: inline-block;
  backface-visibility: hidden;
  opacity: 1;                /* visible by default — animation overrides when active */
}

.hero-rotate.rot-in {
  animation: rotIn 480ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-rotate.rot-out {
  animation: rotOut 280ms ease-in forwards;
}

@keyframes rotIn {
  from { opacity: 0; transform: translateY(28px) rotateX(-30deg); }
  to   { opacity: 1; transform: translateY(0)    rotateX(0); }
}

@keyframes rotOut {
  from { opacity: 1; transform: translateY(0)     rotateX(0); }
  to   { opacity: 0; transform: translateY(-28px) rotateX(30deg); }
}

/* ════════════════════════════════════════════════════════════
   How We Work — Process Section
   ════════════════════════════════════════════════════════════ */
.process-section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 0.5rem;
}

/* gradient connecting line */
.process-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: lineShimmer 4s ease-in-out infinite alternate;
  border-radius: 2px;
  z-index: 0;
}

@keyframes lineShimmer {
  0%   { background-position: 0% 0%; opacity: 0.5; }
  100% { background-position: 100% 0%; opacity: 1; }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.process-bubble {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(91,95,237,0.12), var(--shadow-primary);
  transition: box-shadow 250ms, transform 250ms;
}

.process-step:hover .process-bubble {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 12px rgba(91,95,237,0.15), 0 12px 32px rgba(91,95,237,0.45);
}

.process-bubble svg {
  width: 24px; height: 24px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step-body { display: flex; flex-direction: column; gap: 0.4rem; }

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.process-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.25rem;
  align-self: center;
}

@media (max-width: 720px) {
  .process-track {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .process-line { display: none; }
}

@media (max-width: 440px) {
  .process-track { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   Tech Stack Section
   ════════════════════════════════════════════════════════════ */
.stack-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: default;
  transition: border-color 200ms, color 200ms, background 200ms,
              transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 200ms;
  box-shadow: var(--shadow-soft);
}

.stack-pill:hover {
  border-color: var(--c, var(--primary));
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 8%, white);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c, var(--primary)) 25%, transparent);
}

.stack-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c, var(--primary));
  flex-shrink: 0;
  box-shadow: 0 0 6px color-mix(in srgb, var(--c, var(--primary)) 60%, transparent);
}

/* ════════════════════════════════════════════════════════════
   FAQ Accordion
   ════════════════════════════════════════════════════════════ */
.faq-section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.faq-list {
  max-width: 740px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: border-color 220ms, box-shadow 220ms;
}

.faq-item[open] {
  border-color: rgba(91,95,237,0.4);
  box-shadow: 0 0 0 3px rgba(91,95,237,0.07), var(--shadow-soft);
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-size: 0.93rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  color: var(--text);
  transition: color 200ms;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background 200ms, transform 300ms ease;
}

.faq-chevron svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
  background: var(--primary);
  color: #fff;
}

.faq-item[open] .faq-chevron svg {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ════════════════════════════════════════════════════════════
   Social Proof Toast
   ════════════════════════════════════════════════════════════ */
.social-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-mid);
  max-width: 272px;
  z-index: 400;
  opacity: 0;
  transform: translateX(-16px) scale(0.96);
  transition: opacity 380ms ease,
              transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.social-toast.toast-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.toast-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-body { display: flex; flex-direction: column; gap: 0.18rem; flex: 1; }

.toast-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.toast-msg {
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.4;
}

.toast-time {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.toast-close {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 150ms, background 150ms;
}

.toast-close:hover { color: var(--text); background: var(--bg); }

@media (max-width: 480px) {
  .social-toast { left: 0.75rem; right: 0.75rem; max-width: none; bottom: 4.5rem; }
}

/* ════════════════════════════════════════════════════════════
   Floating Tech Icons Layer
   ════════════════════════════════════════════════════════════ */

/* Ensure page content renders above the fixed floating layer */
.landing-page main,
.landing-page .site-footer {
  position: relative;
  z-index: 1;
}

#floating-tech-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ft-icon {
  position: absolute;
  color: var(--primary);
  will-change: transform;
  animation: ftDrift var(--dur, 30s) var(--del, 0s) ease-in-out infinite alternate;
  filter: blur(0.4px);
  transition: opacity 0.3s;
}

/* subtle glow on some icons via drop-shadow */
.ft-icon:nth-child(3n) {
  filter: drop-shadow(0 0 6px rgba(91,95,237,0.35)) blur(0.3px);
}
.ft-icon:nth-child(5n) {
  color: #7c3aed;
  filter: drop-shadow(0 0 8px rgba(124,58,237,0.3)) blur(0.3px);
}
.ft-icon:nth-child(7n) {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(16,185,129,0.3)) blur(0.3px);
}

@keyframes ftDrift {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.3)) rotate(calc(var(--rot) * 0.5)) scale(1.04);
  }
  66% {
    transform: translate(calc(var(--dx) * 0.8), calc(var(--dy) * 0.7)) rotate(calc(var(--rot) * -0.3)) scale(0.97);
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.02);
  }
}

/* Fade out when user is interacting with forms / focused content */
body:has(input:focus, textarea:focus, select:focus) #floating-tech-layer {
  opacity: 0.35;
}

/* Keep icons from overlapping the header & intro */
.intro-gate ~ #floating-tech-layer,
body.intro-visible #floating-tech-layer {
  opacity: 0;
}


/* ════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — Landing Page
   Full audit across every section and breakpoint.
   Breakpoints: 900 · 720 · 600 · 480 · 380
   ════════════════════════════════════════════════════════════ */

/* ── 900px: tablets / large phones landscape ─────────────── */
@media (max-width: 900px) {

  /* Hero */
  .hero-minimal { margin-top: 1rem; border-radius: 0 0 12px 12px; }
  .hero-content h1 { font-size: clamp(2rem, 7vw, 3rem); }

  /* Hero orbs: shrink so they don't dominate */
  .orb-a { width: 380px; height: 380px; top: -80px; right: -60px; }
  .orb-b { width: 280px; height: 280px; bottom: -50px; }
  .orb-c { width: 200px; height: 200px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Process: already 2-col at 720px via its own MQ — just adjust padding */
  .process-section,
  .stack-section,
  .faq-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Footer: tighten columns */
  .footer-content { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer-brand { flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
  .footer-brand-left { max-width: 100%; }
}

/* ── 720px: tablets portrait ─────────────────────────────── */
@media (max-width: 720px) {

  /* Header */
  .site-header { padding: 0.75rem 1.1rem; }
  .nav-actions .btn-solid { font-size: 0.8rem; padding: 0.5rem 0.9rem; min-height: 38px; }

  /* Hero */
  .hero-minimal { padding: clamp(3.5rem, 9vw, 5.5rem) 1.25rem clamp(3rem, 7vw, 5rem); }
  .hero-content { padding: 0; }
  .hero-content h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); letter-spacing: -0.025em; }
  .hero-subtitle { font-size: 0.96rem; max-width: 100%; }

  /* Trust strip: wrap neatly */
  .hero-trust { flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 1.75rem; }
  .hero-trust-badges { justify-content: center; gap: 0.4rem; }
  .trust-badge { font-size: 0.7rem; padding: 0.22rem 0.7rem; }
  .hero-live-badge { font-size: 0.67rem; padding: 0.3rem 0.85rem; }

  /* Stats */
  .featured-data { padding: 2.5rem 0 2rem; }
  .featured-content h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .stat-card { padding: 1.5rem 1rem; }
  .stat-number { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* Marquee */
  .marquee-strip { margin: 1.25rem 0; border-radius: 10px; }
  .marquee-track span { font-size: 0.76rem; padding: 0 1rem; }

  /* Section headers */
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2,
  .section-head h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Announcement / service / value cards */
  .announcement-card { padding: 1.25rem; }
  .service-card      { padding: 1.25rem; }
  .service-num       { font-size: 1.8rem; top: 0.9rem; right: 1rem; }
  .value-item        { padding: 1.1rem; }

  /* Process section */
  .process-section { padding-top: 3rem; padding-bottom: 2.5rem; }
  .process-track   { gap: 1.5rem 1rem; margin-top: 2.5rem; }
  .process-bubble  { width: 50px; height: 50px; }
  .process-bubble svg { width: 20px; height: 20px; }
  .process-step h3 { font-size: 0.9rem; }
  .process-step p  { font-size: 0.8rem; }
  .process-badge   { font-size: 0.6rem; }

  /* Tech stack */
  .stack-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .stack-grid    { gap: 0.5rem; margin-top: 1.75rem; }
  .stack-pill    { font-size: 0.78rem; padding: 0.48rem 0.9rem; }
  .stack-dot     { width: 6px; height: 6px; }

  /* FAQ */
  .faq-section { padding-top: 3rem; padding-bottom: 3rem; }
  .faq-list    { margin-top: 2rem; gap: 0.55rem; }
  .faq-q       { padding: 1rem 1.1rem; font-size: 0.88rem; gap: 0.75rem; }
  .faq-a       { padding: 0.85rem 1.1rem 1rem; font-size: 0.84rem; }
  .faq-chevron { width: 18px; height: 18px; }

  /* CTA */
  .cta-section { padding: 2.5rem 1.5rem; border-radius: 12px; }
  .cta-section h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Contact / Careers */
  .contact { padding: 2rem 1.25rem; }
  .careers-section { padding: 2rem 1.25rem; }
  .section-head h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Footer */
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .site-footer    { padding: 2rem 1.25rem 1.5rem; }
  .footer-bottom  { flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
  .footer-bottom p { font-size: 0.78rem; }
}

/* ── 600px: large phones ─────────────────────────────────── */
@media (max-width: 600px) {

  /* Ensure body never overflows horizontally */
  body { overflow-x: hidden; }
  main { width: 100%; }

  /* Header: collapse tighter */
  .site-header {
    margin: 0.5rem 0.75rem 0;
    padding: 0.7rem 1rem;
    width: calc(100% - 1.5rem);
  }
  .brand-logo { width: 32px; height: 32px; }
  .brand-text { font-size: 0.88rem; }

  /* Hero */
  .hero-minimal {
    margin-top: 0.75rem;
    padding: 3.5rem 1.25rem 3rem;
    border-radius: 0 0 10px 10px;
  }
  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    margin-bottom: 1rem;
  }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.5rem; }
  .hero-cta { gap: 0.65rem; }
  .hero-cta .btn { min-height: 44px; padding: 0.75rem 1.25rem; font-size: 0.9rem; }

  /* Orbs: mobile-sized */
  .orb-a { width: 260px; height: 260px; top: -50px; right: -40px; filter: blur(50px); }
  .orb-b { width: 200px; height: 200px; filter: blur(50px); }
  .orb-c { width: 150px; height: 150px; filter: blur(45px); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Sections with no built-in side padding: add 1.1rem per side */
  .featured-data,
  .announcements,
  .services-section,
  .values-section { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* Announcements, services, values: already 1-col at 980px */
  .announcements-grid,
  .services-grid,
  .values-grid { gap: 0.85rem; }

  /* Process: 1-col */
  .process-track { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-line  { display: none; }
  .process-step  { flex-direction: row; text-align: left; align-items: flex-start; }
  .process-step-body { gap: 0.25rem; }
  .process-bubble { flex-shrink: 0; width: 46px; height: 46px; }
  .process-badge { align-self: flex-start; }

  /* Stack */
  .stack-grid { gap: 0.45rem; }
  .stack-pill { font-size: 0.76rem; padding: 0.42rem 0.8rem; }

  /* FAQ */
  .faq-q { font-size: 0.85rem; }

  /* Social toast: position from bottom of screen */
  .social-toast { bottom: 1rem; left: 0.75rem; right: auto; max-width: 260px; }

  /* Footer: 2 → tighter */
  .footer-content { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-section h4 { font-size: 0.82rem; }
  .footer-section li a { font-size: 0.8rem; }
  .footer-brand-tagline { font-size: 0.8rem; }

  /* Back-to-top */
  #back-to-top { bottom: 1rem; right: 0.85rem; width: 40px; height: 40px; }
  #back-to-top svg { width: 16px; height: 16px; }

  /* Floating tech: hide on small screens — too cluttered */
  #floating-tech-layer { display: none; }
}

/* ── 480px: medium phones ────────────────────────────────── */
@media (max-width: 480px) {

  /* Header */
  .site-header { margin: 0.5rem 0.6rem 0; width: calc(100% - 1.2rem); padding: 0.65rem 0.9rem; }
  .nav-actions .btn-solid { font-size: 0.76rem; padding: 0.45rem 0.75rem; min-height: 36px; }

  /* Hero h1 and subtitle */
  .hero-content h1 { font-size: clamp(1.6rem, 8.5vw, 2.2rem); }
  .hero-subtitle    { font-size: 0.88rem; }

  /* Stats: keep 2-col but even tighter */
  .stat-card    { padding: 1.1rem 0.85rem; }
  .stat-number  { font-size: 2rem; }
  .stat-label   { font-size: 0.8rem; }

  /* Section headings */
  .section-header h2,
  .section-head h2 { font-size: clamp(1.3rem, 6.5vw, 1.8rem); }
  .section-header p,
  .section-head p  { font-size: 0.88rem; }

  /* Cards: tighter padding */
  .announcement-card { padding: 1.1rem; }
  .service-card      { padding: 1.1rem; }
  .value-item        { padding: 1rem; }

  /* Process: horizontal row layout */
  .process-bubble { width: 42px; height: 42px; box-shadow: 0 0 0 6px rgba(91,95,237,0.1); }
  .process-bubble svg { width: 18px; height: 18px; }
  .process-step h3 { font-size: 0.88rem; }

  /* CTA */
  .cta-content h2 { font-size: clamp(1.25rem, 6.5vw, 1.75rem); }
  .cta-content p  { font-size: 0.9rem; }

  /* Contact direct */
  .contact-direct { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

  /* Footer: 1 column */
  .footer-content { grid-template-columns: 1fr !important; gap: 1.25rem; }

  /* FAQ: tighter */
  .faq-q { padding: 0.9rem 1rem; font-size: 0.83rem; }
  .faq-a { padding: 0.75rem 1rem 0.9rem; font-size: 0.82rem; }
}

/* ── 380px: small phones (SE, older Android) ─────────────── */
@media (max-width: 380px) {

  /* Header: very compact */
  .site-header { padding: 0.6rem 0.75rem; }
  .brand-logo  { width: 28px; height: 28px; }
  .brand-text  { font-size: 0.82rem; }

  /* Hide "Client Portal" solid btn on tiny screens (menu has it) */
  .nav-actions .btn-solid { display: none; }
  /* Always show hamburger */
  .btn-menu { display: inline-flex !important; }

  /* Hero */
  .hero-minimal  { padding: 3rem 1rem 2.5rem; }
  .hero-content h1 { font-size: 1.65rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-live-badge { font-size: 0.62rem; padding: 0.28rem 0.7rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .hero-cta .btn { text-align: center; }

  /* Stats: single column */
  .stats-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .stat-card  { padding: 1rem; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .stat-number { font-size: 1.8rem; }
  .stat-label  { margin-top: 0; font-size: 0.82rem; }

  /* Section header tighter */
  .section-header { margin-bottom: 1.5rem; }

  /* Process step: tighter gap */
  .process-step { gap: 0.75rem; }
  .process-bubble { width: 38px; height: 38px; }
  .process-bubble svg { width: 16px; height: 16px; }

  /* Stack pills: very compact */
  .stack-pill { font-size: 0.72rem; padding: 0.38rem 0.7rem; }

  /* CTA: stack button */
  .cta-section { padding: 2rem 1rem; }
  .cta-content .btn { display: block; width: 100%; text-align: center; }

  /* Footer bottom: stack */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; }
  .footer-social-row { justify-content: flex-start; }
}

/* ── Touch: ensure all interactive elements meet 44px minimum ── */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .faq-q { min-height: 52px; }
  .stack-pill { min-height: 40px; }
  .footer-section a { min-height: 36px; display: inline-flex; align-items: center; }
  .nav-sidebar a { min-height: 44px; }

  /* Disable card tilt & cursor spotlight on touch devices */
  .service-card::before { display: none; }
}


/* ════════════════════════════════════════════════════════════
   GitHub-inspired Design Enhancements
   ════════════════════════════════════════════════════════════ */

/* ─── Hero: dot grid overlay ─────────────────────────────── */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 85% 90% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 35%, black 30%, transparent 75%);
}

/* ─── Hero: network canvas ───────────────────────────────── */
#hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Feature Showcase Section ───────────────────────────── */
.gh-showcase {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.gh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(91,95,237,0.18);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(91,95,237,0.22);
  margin-top: 2.5rem;
  box-shadow:
    0 0 80px rgba(91,95,237,0.07),
    0 24px 64px rgba(0,0,0,0.14);
}

/* ── Card base ── */
.gh-card {
  background: #080a14;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: background 300ms ease;
}
.gh-card:hover { background: #0d1020; }

/* Top-edge glow on hover */
.gh-card::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(91,95,237,0.7) 40%,
    rgba(124,58,237,0.7) 60%,
    transparent 95%);
  opacity: 0;
  transition: opacity 400ms;
  z-index: 2;
}
.gh-card:hover::before { opacity: 1; }

/* ── Grid placement ── */
.gh-card-dashboard { grid-column: 1 / 3; }
.gh-card-terminal  { grid-column: 3 / 4; grid-row: 1 / 3; }
.gh-card-pipeline  { grid-column: 1 / 2; }
.gh-card-activity  { grid-column: 2 / 3; }

/* ── Visual area ── */
.gh-card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem 1.5rem;
  min-height: 200px;
  background: linear-gradient(175deg, #090b16 0%, #060810 100%);
}

/* Subtle radial glow inside each visual */
.gh-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%,
    rgba(91,95,237,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Text body ── */
.gh-card-body {
  padding: 1.4rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.gh-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(91,95,237,0.1);
  border: 1px solid rgba(91,95,237,0.22);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.55rem;
}

.gh-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}

.gh-card-body p {
  font-size: 0.83rem;
  color: rgba(230,237,243,0.45);
  line-height: 1.65;
}

/* ══════════════════════════════════
   CARD 1 — Dashboard visual
   ══════════════════════════════════ */
.dash-ui {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(230,237,243,0.35);
  letter-spacing: 0.04em;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3fb950;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.22);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.55rem;
  letter-spacing: 0.05em;
}

.dash-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #3fb950;
  animation: livePulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

.dash-metrics {
  display: flex;
  gap: 1.75rem;
}

.dash-metric { display: flex; flex-direction: column; gap: 0.12rem; }

.dash-metric-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #e6edf3;
  letter-spacing: -0.04em;
  line-height: 1;
}
.dash-metric-num sup { font-size: 0.7em; vertical-align: super; }

.dash-metric-label {
  font-size: 0.65rem;
  color: rgba(230,237,243,0.3);
  font-weight: 500;
}

/* Animated bar chart */
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}

.dash-b {
  flex: 1;
  border-radius: 3px 3px 0 0;
  height: var(--h, 40%);
  background: rgba(91,95,237,0.28);
  position: relative;
  animation: barPop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0ms);
  transform-origin: bottom;
}

.dash-b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(91,95,237,0.7), rgba(124,58,237,0.35));
  opacity: 0;
  transition: opacity 250ms;
}
.dash-b:hover::after { opacity: 1; }

.dash-b.hi { background: var(--gradient-primary); box-shadow: 0 0 10px rgba(91,95,237,0.4); }
.dash-b.gr { background: linear-gradient(to top, rgba(16,185,129,0.7), rgba(16,185,129,0.25)); }

@keyframes barPop {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Axis line */
.dash-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-axis {
  height: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
}

/* ══════════════════════════════════
   CARD 2 — Terminal visual (tall)
   ══════════════════════════════════ */
.gh-terminal {
  width: 100%;
  max-width: 290px;
  background: #010409;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  font-family: "Menlo", "Fira Code", "Consolas", monospace;
  font-size: 0.73rem;
  box-shadow:
    0 0 0 1px rgba(91,95,237,0.08),
    0 0 40px rgba(91,95,237,0.16),
    0 12px 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.gh-tbar {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.55rem 0.8rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gh-td { width: 10px; height: 10px; border-radius: 50%; }
.gh-td.r { background: #ff5f57; }
.gh-td.y { background: #ffbd2e; }
.gh-td.g { background: #28c840; }

.gh-ttl {
  flex: 1;
  text-align: center;
  font-size: 0.66rem;
  color: rgba(240,246,252,0.22);
  font-family: inherit;
}

.gh-tbody {
  padding: 0.9rem 1rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.tl { display: flex; gap: 0.4rem; white-space: pre; }
.tp { color: #7c3aed; user-select: none; flex-shrink: 0; }
.tc { color: #e6edf3; }
.ts { color: #3fb950; }
.td { color: rgba(230,237,243,0.3); }
.tb { color: #79c0ff; }
.th { color: #ffa657; }
.cur {
  display: inline-block;
  width: 6px; height: 0.85em;
  background: #e6edf3;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: termBlink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes termBlink { 50% { opacity: 0; } }

/* ══════════════════════════════════
   CARD 3 — Pipeline visual
   ══════════════════════════════════ */
.pflow {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.pf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pf-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(91,95,237,0.18);
  display: grid;
  place-items: center;
  background: #0a0c18;
}

.pf-node.done .pf-ring {
  border-color: rgba(16,185,129,0.55);
  background: rgba(16,185,129,0.08);
}

.pf-node.active .pf-ring {
  border-color: rgba(91,95,237,0.7);
  background: rgba(91,95,237,0.1);
  animation: pfPulse 2s ease-in-out infinite;
}

@keyframes pfPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(91,95,237,0.08), 0 0 12px rgba(91,95,237,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(91,95,237,0.05), 0 0 20px rgba(91,95,237,0.38); }
}

.pf-ring svg {
  width: 14px; height: 14px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: rgba(230,237,243,0.15);
}

.pf-node.done   .pf-ring svg { stroke: #3fb950; }
.pf-node.active .pf-ring svg { stroke: var(--primary); }

.pf-lbl {
  font-size: 0.62rem;
  color: rgba(230,237,243,0.28);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pf-node.done   .pf-lbl { color: rgba(63,185,80,0.65); }
.pf-node.active .pf-lbl { color: rgba(91,95,237,0.8); }

.pf-conn {
  flex: 1;
  height: 1.5px;
  margin-top: 18px; /* vertically center with ring */
  position: relative;
  overflow: hidden;
}

.pf-conn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
}

.pf-conn.done::before { background: rgba(16,185,129,0.25); }

.pf-conn::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(91,95,237,0.6),
    rgba(16,185,129,0.4),
    transparent);
  animation: connFlow 2.5s ease-in-out infinite;
}

@keyframes connFlow {
  0%   { left: -70%; }
  100% { left: 120%; }
}

/* ══════════════════════════════════
   CARD 4 — Contribution / activity grid
   ══════════════════════════════════ */
.contrib-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.contrib-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contrib-title {
  font-size: 0.68rem;
  color: rgba(230,237,243,0.3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contrib-count {
  font-size: 0.68rem;
  color: rgba(91,95,237,0.7);
  font-weight: 700;
}

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 2.5px;
}

.cc {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(91,95,237,0.07);
  transition: background 180ms, transform 150ms;
  cursor: default;
}
.cc:hover { transform: scale(1.35); }
.cc.l1 { background: rgba(91,95,237,0.16); }
.cc.l2 { background: rgba(91,95,237,0.35); }
.cc.l3 { background: rgba(91,95,237,0.58); }
.cc.l4 { background: rgba(91,95,237,0.82); }
.cc.g1 { background: rgba(16,185,129,0.3); }
.cc.g2 { background: rgba(16,185,129,0.6); }

.contrib-legend {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: rgba(230,237,243,0.2);
}

.contrib-legend .cc {
  width: 8px; height: 8px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

/* ── Mobile: showcase grid ───────────────────────────────── */
@media (max-width: 900px) {
  .gh-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gh-card-dashboard { grid-column: 1 / 3; grid-row: auto; }
  .gh-card-terminal  { grid-column: 1 / 2; grid-row: auto; }
  .gh-card-pipeline  { grid-column: 2 / 3; grid-row: auto; }
  .gh-card-activity  { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 600px) {
  .gh-grid { grid-template-columns: 1fr; }
  .gh-card-dashboard,
  .gh-card-terminal,
  .gh-card-pipeline,
  .gh-card-activity { grid-column: 1; grid-row: auto; }
  .gh-card-visual { min-height: 180px; padding: 1.5rem 1.25rem; }
  .gh-terminal    { max-width: 100%; }
  .pflow          { max-width: 100%; }
  .dash-ui        { max-width: 100%; }
  .contrib-wrap   { max-width: 100%; }
  .contrib-grid   { grid-template-columns: repeat(14, 1fr); }
}


/* ════════════════════════════════════════════════════════════
   Products Showcase Section
   ════════════════════════════════════════════════════════════ */

.products-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ── Category divider ─────────────────────────────────────── */
.prod-cat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.prod-cat-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.prod-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.prod-cat-badge.mobile {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.25);
}

.prod-cat-badge.devops {
  background: rgba(91,95,237,0.1);
  color: var(--primary);
  border: 1px solid rgba(91,95,237,0.25);
}

/* ══════════════════════════════════════════════════════
   PHONE MOCKUP — iPhone-style
   ══════════════════════════════════════════════════════ */

.app-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.app-showcase.reverse {
  grid-template-columns: 1fr auto;
}

.app-showcase.reverse .phone-wrap { order: 2; }
.app-showcase.reverse .app-info   { order: 1; }

/* Phone container */
.phone-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* Glow under the phone */
.phone-wrap::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(91,95,237,0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.phone-mockup {
  position: relative;
  width: 240px;
  height: 500px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.32))
          drop-shadow(0 8px 20px rgba(0,0,0,0.18));
}

/* Outer shell */
.phone-shell {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: linear-gradient(
    155deg,
    #3a3a52 0%,
    #22223a 30%,
    #181828 60%,
    #101020 100%
  );
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 0 9px #13131f,
    0 0 0 10px rgba(255,255,255,0.04),
    0 0 0 11px #0b0b16;
}

/* Screen bezel */
.phone-screen {
  position: absolute;
  top: 10px; left: 10px;
  right: 10px; bottom: 10px;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

/* Screenshot image */
.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Placeholder shown when no screenshot is provided */
.phone-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, #0f0c29 0%, #302b63 55%, #1a0533 100%);
}

.phone-ph svg {
  width: 36px; height: 36px;
  stroke: rgba(255,255,255,0.3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-ph-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

.phone-ph-hint {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.5;
  font-family: "Menlo", monospace;
}

/* Dynamic island */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

/* Camera dot inside island */
.phone-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.05),
    inset 0 0 0 2.5px #0a0a0a,
    0 0 4px rgba(60,140,255,0.2);
}

/* Home indicator */
.phone-home-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  z-index: 3;
}

/* Physical buttons */
.phone-btn {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(135deg, #2a2a40, #16162a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Power / sleep button — right */
.phone-btn-power {
  right: -4px;
  top: 128px;
  width: 4px;
  height: 52px;
  border-radius: 0 3px 3px 0;
}

/* Silent switch — left top */
.phone-btn-silent {
  left: -4px;
  top: 86px;
  width: 4px;
  height: 24px;
  border-radius: 3px 0 0 3px;
}

/* Volume up */
.phone-btn-vol-up {
  left: -4px;
  top: 126px;
  width: 4px;
  height: 42px;
  border-radius: 3px 0 0 3px;
}

/* Volume down */
.phone-btn-vol-dn {
  left: -4px;
  top: 180px;
  width: 4px;
  height: 42px;
  border-radius: 3px 0 0 3px;
}

/* Gloss shimmer over screen */
.phone-gloss {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  height: 45%;
  border-radius: 36px 36px 50% 50% / 20px 20px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* ── App Info ── */
.app-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem;
  width: fit-content;
}

.app-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.app-info > p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.75;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}

.app-features li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.app-platforms {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.75rem;
  letter-spacing: 0.03em;
}

.platform-tag.ios     { color: #0071e3; border-color: rgba(0,113,227,0.25); background: rgba(0,113,227,0.06); }
.platform-tag.android { color: #3ddc84; border-color: rgba(61,220,132,0.25); background: rgba(61,220,132,0.06); }
.platform-tag.web     { color: var(--primary); border-color: rgba(91,95,237,0.25); background: rgba(91,95,237,0.06); }
.platform-tag.cli     { color: #ffa657; border-color: rgba(255,166,87,0.25); background: rgba(255,166,87,0.06); }

/* ══════════════════════════════════════════════════════
   BROWSER MOCKUP — Desktop/Web DevOps tools
   ══════════════════════════════════════════════════════ */

.devops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.devops-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 250ms, border-color 250ms, transform 250ms;
}

.devops-card:hover {
  box-shadow: var(--shadow-mid);
  border-color: rgba(91,95,237,0.3);
  transform: translateY(-3px);
}

/* Browser chrome */
.browser-mockup {
  position: relative;
  background: #0d1117;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.bd2 {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.bd2.r { background: #ff5f57; }
.bd2.y { background: #ffbd2e; }
.bd2.g { background: #28c840; }

.browser-addr {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  color: rgba(240,246,252,0.4);
  font-family: "Menlo", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-addr-lock {
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Screenshot area */
.browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090b10;
}

.browser-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Placeholder */
.browser-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, #0a0c18 0%, #0f0c29 55%, #080a12 100%);
  padding: 2rem;
  text-align: center;
}

.browser-ph svg {
  width: 40px; height: 40px;
  stroke: rgba(91,95,237,0.4);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-ph-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(230,237,243,0.35);
  letter-spacing: 0.04em;
}

.browser-ph-hint {
  font-size: 0.62rem;
  color: rgba(230,237,243,0.15);
  font-family: "Menlo", monospace;
  line-height: 1.5;
}

/* Tool info below the browser */
.devops-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(91,95,237,0.08);
  border: 1px solid rgba(91,95,237,0.2);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.65rem;
  width: fit-content;
}

.devops-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.devops-info > p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.tool-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-light);
}

.tool-features li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(91,95,237,0.1);
  border: 1px solid rgba(91,95,237,0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%235b5fed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.tool-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tool-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.22rem 0.6rem;
}

/* ── Mobile responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .app-showcase,
  .app-showcase.reverse {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5rem;
  }
  .app-showcase.reverse .phone-wrap,
  .app-showcase.reverse .app-info { order: unset; }

  .phone-mockup { width: 200px; height: 420px; }
  .phone-shell  { border-radius: 38px; }
  .phone-screen { border-radius: 30px; top: 9px; left: 9px; right: 9px; bottom: 9px; }
  .phone-island { width: 76px; height: 22px; top: 15px; }
  .phone-btn-power  { top: 108px; height: 44px; }
  .phone-btn-vol-up { top: 108px; height: 36px; }
  .phone-btn-vol-dn { top: 154px; height: 36px; }
  .phone-btn-silent { top: 72px; height: 20px; }

  .app-info { max-width: 100%; text-align: center; align-items: center; }
  .app-platforms { justify-content: center; }
}

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

@media (max-width: 480px) {
  .phone-mockup { width: 174px; height: 364px; }
  .phone-shell  { border-radius: 34px; }
  .phone-screen { border-radius: 27px; top: 8px; left: 8px; right: 8px; bottom: 8px; }
  .phone-island { width: 66px; height: 20px; top: 13px; }
  .phone-home-bar { width: 64px; bottom: 14px; }
  .phone-gloss  { border-radius: 27px 27px 40% 40% / 16px 16px 8px 8px; }

  .app-info h3  { font-size: 1.5rem; }
  .devops-info  { padding: 1rem 1.1rem 1.25rem; }
  .devops-info h3 { font-size: 1rem; }
}


/* ════════════════════════════════════════════════════════════
   Apple.com–style Header — Landing Page
   Transparent over dark hero → frosted glass on scroll.
   All rules scoped to .landing-page to avoid breaking
   manager / employee / login pages.
   ════════════════════════════════════════════════════════════ */

/* ── Reset pill shape, make it full-width flush bar ───────── */
.landing-page .site-header {
  width:      100% !important;
  max-width:  100% !important;
  margin:     0    !important;
  padding:    0 max(22px, 3vw);
  height:     48px;
  border-radius: 0;
  border:     none;
  box-shadow: none;
  top:        0;
  gap:        0;

  /* 3-column grid — logo | nav (centred) | actions */
  display:    grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  /* Default: dark glass matching hero */
  background: linear-gradient(90deg, rgba(7,9,15,0.72) 0%, rgba(26,5,51,0.72) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(91, 95, 237, 0.18);

  transition:
    background      380ms ease,
    border-color    380ms ease,
    backdrop-filter 380ms ease;
}

/* When scrolled past hero → deeper frosted dark glass */
.landing-page .site-header.apple-scrolled {
  background: linear-gradient(90deg, rgba(7,9,15,0.92) 0%, rgba(26,5,51,0.92) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom-color: rgba(91, 95, 237, 0.28);
}

/* ── Grid column alignment ───────────────────────────────── */
.landing-page .site-header .brand       { justify-self: start; }
.landing-page .site-header .nav-links   { justify-self: center; }
.landing-page .site-header .nav-actions { justify-self: end; }

/* ── Brand on transparent (white) header ─────────────────── */
.landing-page .site-header .brand-text {
  color: rgba(255, 255, 255, 0.92);
  transition: color 350ms ease;
}
.landing-page .site-header.apple-scrolled .brand-text { color: #1d1d1f; }

.landing-page .site-header .brand-logo {
  border-color: rgba(255,255,255,0.18);
  transition: border-color 350ms ease;
}
.landing-page .site-header.apple-scrolled .brand-logo {
  border-color: rgba(0,0,0,0.1);
}

/* ── Nav links: ultra-minimal, Apple font metrics ─────────── */
.landing-page .site-header .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  height: 48px;
}

.landing-page .site-header .nav-links a {
  font-size:      13px;
  font-weight:    400;
  letter-spacing: -0.012em;
  color:          rgba(255, 255, 255, 0.78);
  padding:        0 11px;
  height:         48px;
  display:        flex;
  align-items:    center;
  border-radius:  0;
  background:     none;
  transition:     color 220ms ease;
  white-space:    nowrap;
}

.landing-page .site-header .nav-links a:hover,
.landing-page .site-header .nav-links a.nav-active {
  color:      #ffffff;
  background: none;
}

/* Scrolled → keep white text (header stays dark) */
.landing-page .site-header.apple-scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.78);
}
.landing-page .site-header.apple-scrolled .nav-links a:hover,
.landing-page .site-header.apple-scrolled .nav-links a.nav-active {
  color: #ffffff;
}

/* ── Right-side actions ──────────────────────────────────── */
.landing-page .site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
}

/* Manager / Employee: plain text links */
.landing-page .site-header .nav-actions .btn-ghost {
  font-size:    13px;
  font-weight:  400;
  letter-spacing: -0.012em;
  color:        rgba(255, 255, 255, 0.78);
  background:   none;
  border:       none;
  border-radius:0;
  height:       48px;
  min-height:   unset;
  padding:      0 10px;
  transition:   color 220ms ease;
}
.landing-page .site-header .nav-actions .btn-ghost:hover {
  color:      #fff;
  background: none;
}

.landing-page .site-header.apple-scrolled .nav-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.78);
}
.landing-page .site-header.apple-scrolled .nav-actions .btn-ghost:hover {
  color:      #ffffff;
  background: none;
}

/* Client Portal: small pill */
.landing-page .site-header .nav-actions .btn-solid {
  font-size:    12px;
  font-weight:  600;
  letter-spacing: -0.01em;
  background:   rgba(255, 255, 255, 0.14);
  color:        #fff;
  border:       1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding:      6px 15px;
  min-height:   unset;
  height:       auto;
  transition:   background 200ms, border-color 200ms, color 200ms;
}
.landing-page .site-header .nav-actions .btn-solid:hover {
  background:   rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.32);
}

.landing-page .site-header.apple-scrolled .nav-actions .btn-solid {
  background:   rgba(255, 255, 255, 0.14);
  color:        #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.landing-page .site-header.apple-scrolled .nav-actions .btn-solid:hover {
  background:   rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Hamburger on dark/glass header */
.landing-page .site-header .btn-menu {
  background:   transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color:        rgba(255, 255, 255, 0.85);
  font-size:    12px;
  padding:      0.42rem 0.75rem;
}
.landing-page .site-header .btn-menu:hover {
  background:   rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color:        #fff;
}
.landing-page .site-header.apple-scrolled .btn-menu {
  border-color: rgba(0, 0, 0, 0.14);
  color:        rgba(29, 29, 31, 0.72);
}
.landing-page .site-header.apple-scrolled .btn-menu:hover {
  background:   rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
  color:        #1d1d1f;
}

/* ── Hero: pull up behind transparent header so dark bg shows through ── */
.landing-page .hero-minimal {
  margin-top:  -48px;
  padding-top: calc(48px + clamp(5rem, 10vw, 8rem));
}
@media (max-width: 600px) {
  .landing-page .hero-minimal {
    margin-top:  -44px;
    padding-top: calc(44px + 3.5rem);
  }
}

/* ── Responsive overrides ────────────────────────────────── */
@media (max-width: 980px) {
  /* Nav hides — grid becomes logo | [nothing] | actions */
  .landing-page .site-header .nav-links { display: none; }
  /* Keep grid columns so brand stays left and actions stay right */
  .landing-page .site-header {
    grid-template-columns: 1fr 1fr;
  }
  .landing-page .site-header .nav-actions { justify-self: end; }
}

/* Override the various margin/width hacks that affect mobile header */
@media (max-width: 900px) {
  .landing-page .site-header {
    width:  100% !important;
    margin: 0    !important;
    padding: 0 max(16px, 2.5vw);
    height: 48px !important;
  }
}
@media (max-width: 720px) {
  .landing-page .site-header {
    width:  100% !important;
    margin: 0    !important;
    padding: 0 1rem;
    height: 48px !important;
  }
}
@media (max-width: 600px) {
  .landing-page .site-header {
    width:  100% !important;
    margin: 0    !important;
    padding: 0 0.85rem;
    height: 44px !important;
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 380px) {
  .landing-page .site-header .nav-actions .btn-solid { display: none; }
  .landing-page .site-header .btn-menu { display: inline-flex !important; }
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM GLOW CURSOR
   ═══════════════════════════════════════════════════════════ */
@media (pointer: fine) {
  #cursor-dot,
  #cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
    will-change: left, top;
    transform: translate(-50%, -50%);
  }
  #cursor-dot {
    width: 7px; height: 7px;
    background: #818cf8;
    box-shadow: 0 0 8px #818cf8, 0 0 20px rgba(129,140,248,0.6);
    transition: opacity 0.3s, transform 0.12s ease, background 0.2s;
  }
  #cursor-ring {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(129,140,248,0.55);
    background: rgba(129,140,248,0.04);
    box-shadow: 0 0 18px rgba(129,140,248,0.25), inset 0 0 8px rgba(129,140,248,0.05);
    transition: opacity 0.3s, width 0.35s cubic-bezier(0.23,1,0.32,1),
                height 0.35s cubic-bezier(0.23,1,0.32,1),
                border-color 0.25s, background 0.25s;
  }
  body.cursor-visible #cursor-dot,
  body.cursor-visible #cursor-ring { opacity: 1; }

  body.cursor-hover #cursor-ring {
    width: 60px; height: 60px;
    border-color: rgba(129,140,248,0.85);
    background: rgba(129,140,248,0.07);
  }
  body.cursor-hover #cursor-dot {
    transform: translate(-50%,-50%) scale(0.55);
    background: #c084fc;
  }
  body.cursor-click #cursor-dot { transform: translate(-50%,-50%) scale(0.3); }
  body.cursor-click #cursor-ring { width: 28px; height: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 5rem);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem; right: 1.2rem;
  font-size: 6rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(99,102,241,0.13);
  border-color: rgba(99,102,241,0.28);
}
.testi-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.testi-quote {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-light);
  font-style: italic;
  margin: 0 0 1.5rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(129,140,248,0.3);
}
.testi-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.testi-role {
  display: block;
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-section { padding: 3rem 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════════════ */
.pricing-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 5rem);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(99,102,241,0.1);
}
.pricing-featured {
  border-color: rgba(99,102,241,0.45);
  background: linear-gradient(145deg, rgba(99,102,241,0.06), rgba(192,132,252,0.04));
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 24px 56px rgba(99,102,241,0.14);
  transform: scale(1.035);
}
.pricing-featured:hover { transform: scale(1.035) translateY(-5px); }
.pricing-pop-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(129,140,248,0.4);
}
.pricing-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.pricing-price {
  margin-bottom: 0.4rem;
}
.price-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
}
.pricing-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features {
  list-style: none;
  padding: 0; margin: 0 0 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex; align-items: flex-start; gap: 0.55rem;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: block;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto; margin-right: auto;
  }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-5px); }
}
@media (max-width: 600px) {
  .pricing-section { padding: 3rem 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════
   AVAILABLE BADGE (fixed bottom-left)
   ═══════════════════════════════════════════════════════════ */
.avail-badge {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 900;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(16,16,30,0.82);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(99,241,140,0.3);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.avail-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80, 0 0 12px rgba(74,222,128,0.5);
  animation: avPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes avPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #4ade80, 0 0 12px rgba(74,222,128,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 10px #4ade80, 0 0 24px rgba(74,222,128,0.7); }
}
@media (max-width: 600px) {
  .avail-badge { bottom: 1rem; left: 1rem; font-size: 0.72rem; }
}
