/* ==========================================================================
   HRzest - Graphite Professional Design System

   Inter is self-hosted (static/fonts/inter-var.woff2, a single variable-weight
   file spanning 400-800) since the app's CSP is font-src 'self' -- no
   external Google Fonts requests happen at runtime.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-var.woff2') format('woff2-variations'), url('/static/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Tokens - Clean Light Professional Theme */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-glow: rgba(79, 70, 229, 0.35);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94a3b8;

  --accent-cyan: #4F46E5;
  --accent-blue: #4338CA;
  --accent-purple: #64748B;
  --accent-emerald: #059669;
  --accent-amber: #D97706;
  --accent-rose: #E11D48;

  --gradient-brand: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  --gradient-glow: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, transparent 70%);

  --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px -6px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand-serif: 'Playfair Display', Georgia, serif;
}

/* Custom Magzest & HRzest Brand Serif Typography */
.magzest-brand {
  font-family: var(--font-brand-serif);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hrzest-brand {
  font-family: var(--font-brand-serif);
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.16;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
textarea { resize: vertical; }

/* Background Ambient Orbs */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.45;
}

.glow-orb-1 { top: -12%; left: 25%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, transparent 70%); }
.glow-orb-2 { top: 45%; right: -12%; width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(67, 56, 202, 0.32) 0%, transparent 70%); }
.glow-orb-3 { display: none; }

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.accent-text { color: var(--accent-cyan); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 84px;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover { color: var(--text-main); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover::after { width: 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-cyan);
  color: #ffffff;
  border: 2px solid var(--accent-cyan);
}

.btn-primary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}

.btn-secondary:hover {
  background: var(--text-main);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.mobile-nav-toggle { display: none; font-size: 1.5rem; color: var(--text-main); }

/* Hero Section */
.hero-section {
  padding-top: 165px;
  padding-bottom: 110px;
  position: relative;
  background: linear-gradient(160deg, #FDF3E3 0%, #F7ECF7 32%, #EAF0FC 62%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.hero-badge-pill:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

.hero-badge-tag {
  padding: 0.2rem 0.6rem;
  background: var(--gradient-brand);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.85rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1.35rem;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-color);
  padding-top: 1.6rem;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item i { color: var(--accent-emerald); }

/* Hero Terminal Scanner Widget -- a deliberately dark "device preview" island
   floating on the light marketing page (matches .sandbox-window below). These
   local custom-property overrides re-theme every var()-based descendant
   (borders, text, nested cards) without touching their rules individually. */
.hero-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-title { font-size: 0.95rem; font-weight: 700; }
.widget-badge {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  height: 255px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(15, 23, 42, 0.06) 100%);
  pointer-events: none;
}

.face-target-box {
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(79, 70, 229, 0.5);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.face-target-box.scanning {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
}

.face-target-box.success {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.scan-laser {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 15px var(--accent-cyan);
  opacity: 0;
}

.scanning .scan-laser {
  opacity: 1;
  animation: laserScan 2s infinite ease-in-out;
}

.avatar-preview {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Text-initial avatar -- replaces the demo's original external stock
   photos (blocked by the app's img-src 'self' data: blob: CSP). Reuses
   .avatar-preview's sizing; this class adds the gradient fill + centered
   initials so the element works as a <div> instead of an <img>. */
.avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.scanner-hud {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.hud-item { display: flex; align-items: center; gap: 0.35rem; }
.hud-item i { color: var(--accent-cyan); }

.scanner-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.scan-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

/* Floating Metrics */
.floating-metric {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color-glow);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-metric.fm-1 { top: -22px; right: -22px; animation-delay: 0s; }
.floating-metric.fm-2 { bottom: 20px; left: -28px; animation-delay: 2s; }

.fm-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.fm-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.fm-icon.blue { background: rgba(79, 70, 229, 0.12); color: var(--accent-cyan); }

.fm-text-group { display: flex; flex-direction: column; }
.fm-title { font-size: 0.68rem; color: var(--text-subtle); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.fm-value { font-size: 0.95rem; font-weight: 800; color: var(--text-main); }

/* Interactive Sandbox */
.sandbox-section { padding: 100px 0; position: relative; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3.5rem auto; }
.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title { font-size: 2.75rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.12rem; color: var(--text-muted); }

.module-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sandbox-tab {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
}

.sandbox-tab:hover {
  color: var(--text-main);
  border-color: var(--border-color-glow);
}

.sandbox-tab.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 25px rgba(79, 70, 229, 0.35);
}

/* Module cards -- overrides .sandbox-tab's pill styling above with a card
   layout, while keeping the .sandbox-tab class itself so the existing
   click/active-state JS needs no changes. */
.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  color: inherit;
}

.module-card.active {
  background: var(--bg-card);
  color: inherit;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.module-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.module-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.module-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* Dashboard preview -- same dark-island technique as .hero-widget above. */
.sandbox-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-bar {
  height: 50px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.window-dots { display: flex; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }

.window-title { font-size: 0.88rem; color: var(--text-subtle); font-weight: 600; }
.sandbox-content { padding: 2.5rem; min-height: 420px; }
.sandbox-panel { display: none; animation: fadeIn 0.4s ease forwards; }
.sandbox-panel.active { display: block; }

.attendance-demo-grid, .payroll-calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

.log-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.log-table th {
  text-align: left;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}

.log-table td { padding: 0.75rem; font-size: 0.88rem; border-bottom: 1px solid var(--border-color); }

.badge {
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-face { background: rgba(79, 70, 229, 0.12); color: var(--accent-cyan); }
.badge-passkey { background: rgba(100, 116, 139, 0.12); color: var(--accent-purple); }
.badge-gps { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }

.slider-group { margin-bottom: 1.5rem; }
.slider-label { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 700; margin-bottom: 0.5rem; }
.custom-range { width: 100%; height: 6px; background: var(--bg-tertiary); border-radius: 3px; outline: none; accent-color: var(--accent-cyan); }

.payslip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
}

.payslip-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.92rem;
}

.payslip-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-emerald);
  border-bottom: none;
  padding-top: 1rem;
}

/* Chapters -- alternating headline/checklist + framed-screenshot sections,
   replacing the old icon-card grids. Each chapter's media panel sits inside
   a soft painterly gradient wash (own accent per chapter) instead of a flat
   bordered card, echoing product-marketing sites that frame real screenshots
   in illustrated backdrops rather than icon tiles. */
.chapter-section { padding: 90px 0; }

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.chapter-reverse .chapter-media { order: -1; }

.chapter-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 0.9rem;
  display: block;
}

.chapter-heading {
  font-size: 2.6rem;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.chapter-copy {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.chapter-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}

.chapter-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.chapter-checklist i {
  color: var(--accent-emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chapter-media {
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.chapter-media.wash-warm { background: linear-gradient(160deg, #FDF3E3 0%, #FBE4D0 100%); }
.chapter-media.wash-cool { background: linear-gradient(160deg, #EAF0FC 0%, #E4E6FB 100%); }
.chapter-media.wash-mint { background: linear-gradient(160deg, #E7F6F1 0%, #DDF0F6 100%); }

.chapter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.chapter-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.chapter-panel-row:last-child { border-bottom: none; }
.chapter-panel-row span:first-child { color: var(--text-muted); }
.chapter-panel-row span:last-child { font-weight: 700; }

/* Pricing */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; }
.pricing-currency { font-size: 3.5rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
.pricing-period { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.pricing-note { color: var(--text-subtle); font-size: 0.9rem; margin-top: 0.5rem; }

/* FAQ -- native <details>/<summary> so it's keyboard/screen-reader operable
   without any JS. */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-top: 0.85rem;
}

/* Contact Us Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.contact-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent-cyan);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.cyan { background: rgba(79, 70, 229, 0.12); color: var(--accent-cyan); }
.contact-icon.emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.contact-icon.purple { background: rgba(100, 116, 139, 0.12); color: var(--accent-purple); }

.contact-detail-label { font-size: 0.78rem; color: var(--text-subtle); font-weight: 700; text-transform: uppercase; display: block; }
.contact-detail-value { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }

.contact-form-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

/* Feedback Section */
.feedback-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.feedback-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: 0 auto;
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.feedback-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover { border-color: var(--accent-cyan); }
.category-pill.active {
  background: rgba(79, 70, 229, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.35rem;
  cursor: pointer;
}

.star { color: var(--text-subtle); transition: color var(--transition-fast); }
.star.active { color: var(--accent-amber); }

.form-success-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.form-error-banner {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--accent-rose);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* CTA Banner & Footer */
.cta-banner {
  background: linear-gradient(135deg, #EEF0FF 0%, #F7ECF7 50%, #FDF3E3 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.5rem;
  text-align: center;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  margin: 100px 0 60px 0;
}

/* Medium-tone indigo footer -- the same brand color already used for buttons,
   links, and the logo elsewhere on the page, so it highlights without
   introducing an unrelated dark tone. */
.footer {
  --text-main: #F8FAFC;
  --text-muted: #C7CAF5;
  --border-color: rgba(255, 255, 255, 0.14);
  background: #362FA0;
  padding: 70px 0 35px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.86rem;
}

/* Modal Window */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(79, 70, 229, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }

.modal-close-btn {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 1.5rem; color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover { color: var(--text-main); background: rgba(244, 63, 94, 0.2); }
.modal-header { text-align: center; margin-bottom: 2rem; }

.modal-logo-icon {
  width: 52px; height: 52px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
}

.modal-header h2 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.modal-header p { font-size: 0.95rem; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.form-group label .req { color: var(--accent-rose); }

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus { border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(79, 70, 229, 0.25); }
.form-submit-btn { width: 100%; padding: 0.95rem; font-size: 1.05rem; }

.modal-success-msg { text-align: center; padding: 1.5rem 0; }
.success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

@keyframes laserScan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
  .hero-grid, .sec-arch-grid, .attendance-demo-grid, .payroll-calculator-grid, .security-pillars-grid, .contact-grid, .feedback-form-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .module-cards { grid-template-columns: 1fr 1fr; }
}

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