/* HRM Enterprise Design System — Navy, Emerald, Off-White Palette */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Outfit', sans-serif;

  --bg-page:       #F8FAFC;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-navy:       #0F172A;
  --bg-navy-light: #1E293B;
  --bg-navy-mid:   #334155;

  --emerald:       #10B981;
  --emerald-dark:  #059669;
  --emerald-light: rgba(16, 185, 129, 0.12);
  --emerald-glow:  rgba(16, 185, 129, 0.35);

  --navy:          #0F172A;
  --navy-light:    #1E293B;

  --text-on-dark:  #F8FAFC;
  --text-heading:  #0F172A;
  --text-body:     #334155;
  --text-muted:    #64748B;
  --text-dim:      #94A3B8;

  --border-light:   rgba(15, 23, 42, 0.1);
  --border-medium:  rgba(15, 23, 42, 0.18);
  --border-emerald: rgba(16, 185, 129, 0.35);
  --border-subtle:  rgba(255, 255, 255, 0.1);

  --gradient-brand: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-text:  linear-gradient(135deg, #10B981 0%, #34d399 60%, #6ee7b7 100%);

  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md:      0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg:      0 20px 48px rgba(15, 23, 42, 0.18);
  --shadow-hero:    0 30px 80px rgba(15, 23, 42, 0.4);
  --shadow-emerald: 0 8px 30px rgba(16, 185, 129, 0.4);

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

  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.35); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(24px) saturate(1.8);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.3);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  height: 60px;
  background: rgba(15, 23, 42, 0.99);
  box-shadow: 0 6px 32px rgba(15, 23, 42, 0.5);
  border-bottom-color: rgba(16, 185, 129, 0.3);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-accent);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px var(--emerald-glow);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.7rem;
  font-family: var(--font-main);
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.nav-links { display: flex; list-style: none; gap: 0.3rem; }

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  transition: var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.nav-login {
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.nav-link.nav-login:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.55);
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-emerald);
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(255,255,255,0.35);
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-nav-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.99);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1.2rem 1.8rem;
  gap: 0.6rem;
}
.mobile-nav-menu.active { display: flex; }

/* ===== ALERT ===== */
.alert-banner {
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-dark);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 8rem;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/images/hrm_hero_bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.05);
  animation: heroBgDrift 20s ease-in-out infinite alternate;
}

@keyframes heroBgDrift {
  0%   { transform: scale(1.05) translateX(0); }
  100% { transform: scale(1.08) translateX(-1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.82) 40%,
    rgba(4, 47, 46, 0.75) 75%,
    rgba(15, 23, 42, 0.88) 100%
  );
  z-index: 1;
}

/* Radial glow accent */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.3rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.35); }
}

.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s ease 0.15s both;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Typewriter target span */
.hero-typed {
  display: inline-block;
  color: #10B981;
  background: linear-gradient(135deg, #10B981, #34d399);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-right: 3px solid #10B981;
  padding-right: 4px;
  white-space: nowrap;
  animation: typedCursor 0.9s step-end infinite;
}

@keyframes typedCursor {
  0%, 100% { border-color: #10B981; }
  50% { border-color: transparent; }
}

/* Word slide-up animation for hero subtitle words */
.hero-word {
  display: inline-block;
  opacity: 0;
  animation: wordSlideUp 0.6s ease forwards;
}

@keyframes wordSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmerText 3s ease infinite;
}

@keyframes shimmerText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(248, 250, 252, 0.78);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.45s both;
  margin-bottom: 3.5rem;
}

/* Floating particles in hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(16, 185, 129, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* Hero metrics strip within hero */
.hero-metrics-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.65s both;
}

.hero-metric-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  min-width: 120px;
  transition: var(--transition-smooth);
}
.hero-metric-item:hover {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.5);
  transform: translateY(-3px);
}

.hero-metric-num {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 900;
  color: #10B981;
  display: block;
}

.hero-metric-label {
  font-size: 0.75rem;
  color: rgba(248,250,252,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0.2rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.9s ease 0.6s both;
}

.hero-stat-num {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 900;
  color: var(--emerald);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero-scroll span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--emerald);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-title-white { color: #fff; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== METRICS STRIP ===== */
.metrics-strip {
  background: var(--bg-navy);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
}

.metric-num {
  font-family: var(--font-accent);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--emerald);
  display: block;
  line-height: 1;
}

.metric-label {
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION WRAPPERS ===== */
.section-wrapper { padding: 5.5rem 0; }
.section-wrapper-navy { padding: 5.5rem 0; background: var(--bg-navy); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }

/* ===== LIVE INTERFACE ===== */
.live-interface-box {
  background: var(--bg-navy);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.interface-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.interface-dots { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: var(--emerald); }

.interface-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.interface-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}
.interface-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}
.interface-tab-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.interface-body { padding: 2rem; color: var(--text-on-dark); }
.itab-content { animation: fadeIn 0.3s ease; }

/* ===== MODULE FILTER TABS ===== */
.dept-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.dept-tab {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  color: var(--text-body);
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
}
.dept-tab:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
  background: var(--emerald-light);
}
.dept-tab.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
  box-shadow: 0 4px 16px var(--emerald-glow);
}

/* ===== MODULE CARDS ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.module-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.module-card:hover::before { transform: scaleX(1); }

.module-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.module-title {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0.7rem 0 0.5rem;
}
.module-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.module-link {
  background: transparent;
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.module-link:hover { color: var(--emerald); }

/* Status Badges */
.status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-pending {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ===== PANEL CARD ===== */
.panel-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: var(--bg-page);
  border: 1.5px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.form-control option { background: #fff; color: var(--text-heading); }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-hero);
  border: 1.5px solid var(--border-light);
  animation: fadeInUp 0.35s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
.modal-title {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
}
.modal-close {
  background: var(--bg-page);
  border: 1.5px solid var(--border-medium);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* ===== SECURITY SECTION ===== */
.security-section {
  background: var(--bg-navy);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.security-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: var(--transition-smooth);
}
.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--emerald-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.feature-title {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-navy);
  border-top: 1px solid rgba(16, 185, 129, 0.12);
}

/* Footer CTA Strip */
.footer-cta-strip {
  background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
  border-bottom: 1px solid rgba(16,185,129,0.18);
  padding: 3rem 2.5rem;
}
.footer-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-title {
  font-family: var(--font-accent);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}
.footer-cta-desc {
  font-size: 0.93rem;
  color: rgba(248,250,252,0.6);
}
.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn-outline-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  color: rgba(248,250,252,0.85);
  font-weight: 600;
  font-size: 0.94rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-outline-footer:hover {
  border-color: var(--emerald);
  color: #6ee7b7;
  background: rgba(16,185,129,0.08);
}

/* Footer Main Grid */
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(248,250,252,0.5);
  line-height: 1.65;
  margin-bottom: 1.3rem;
  max-width: 280px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-badge {
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(248,250,252,0.6);
  font-weight: 600;
}

.footer-nav-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(248,250,252,0.35);
  margin-bottom: 1.1rem;
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav-list a {
  font-size: 0.9rem;
  color: rgba(248,250,252,0.55);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--emerald); }

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.4rem 2.5rem;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(248,250,252,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: rgba(248,250,252,0.35);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--emerald); }

/* ===== COMPREHENSIVE RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-brand-desc { max-width: 100%; }
}

@media (max-width: 900px) {
  /* Nav - Direct Sign In & Request Demo buttons only, no side drawer */
  .nav-links { display: none !important; }
  .hamburger-btn { display: none !important; }
  .mobile-nav-menu { display: none !important; }
  .nav-actions { display: flex !important; align-items: center; gap: 0.5rem; }
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary { display: inline-flex !important; padding: 0.55rem 0.95rem; font-size: 0.85rem; }

  /* Hero */
  .hero-section { min-height: 85vh; padding: 5rem 1.5rem 5rem; }
  .hero-metrics-row { gap: 0.8rem; }
  .hero-metric-item { padding: 0.7rem 1rem; min-width: 90px; }
  .hero-metric-num { font-size: 1.4rem; }
  .hero-3d-wrapper { display: none; }

  /* Sections */
  .interface-tabs { overflow-x: auto; padding-bottom: 0.5rem; }
  .interface-tab-btn { white-space: nowrap; }

  /* Footer CTA */
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-actions { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: 1; }
}

@media (max-width: 640px) {
  /* Navbar */
  .navbar { padding: 0 0.8rem; height: 64px; }
  .brand-logo { font-size: 1.15rem; gap: 0.5rem; }
  .brand-icon { width: 32px; height: 32px; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
  .nav-actions svg { width: 13px; height: 13px; }

  /* Hero */
  .hero-section { padding: 4.5rem 1.2rem 4rem; min-height: 100svh; }
  .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 0.97rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .hero-cta .btn-outline { width: 100%; justify-content: center; }
  .hero-metrics-row { gap: 0.5rem; }
  .hero-metric-item { min-width: 80px; padding: 0.6rem 0.8rem; }
  .hero-metric-num { font-size: 1.2rem; }
  .hero-metric-label { font-size: 0.65rem; }

  /* General */
  .container { padding: 0 1.2rem; }
  .section-wrapper { padding: 3rem 0; }
  .modules-grid { grid-template-columns: 1fr; }
  .interface-body { padding: 1rem; }
  .interface-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }

  /* Panels */
  .panel-card { padding: 1.5rem 1.2rem; border-radius: var(--radius-lg); }

  /* Footer */
  .footer-cta-strip { padding: 2rem 1.2rem; }
  .footer-cta-title { font-size: 1.25rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.2rem; }
  .footer-brand-col { grid-column: 1; }
  .footer-bottom { padding: 1.2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.6rem; }
  .footer-bottom-links { justify-content: center; gap: 1rem; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.75rem; }
  .hero-pill { font-size: 0.75rem; padding: 0.4rem 1rem; }
  .hero-metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .btn-primary, .btn-secondary { font-size: 0.88rem; }
}

