/* ==========================================================================
   المستشار ويب وتطبيق الهاتف - El Mostachar Web & Mobile
   أنماط التصميم العصري والهوية البصرية | elmostacharweb.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-muted: #334155;
  --brand-green: #10b981;
  --brand-green-hover: #059669;
  --brand-green-soft: rgba(16, 185, 129, 0.12);
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-amber: #f59e0b;
  --brand-coral: #ef4444;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Base utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.brand-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #34d399;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: #10b981;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-purple:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
  background: #334155;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-pulse {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 5rem 0 7rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-actions .btn {
  font-size: 0.92rem;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  gap: 0.5rem;
}

.hero-actions .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-apk-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-apk-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-pc-hero {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-pc-hero:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
  color: #ffffff;
}

.btn-chrome-hero {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-chrome-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

/* Inline Program Link in Hero Subtitle */
.hero-program-link {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1.5px dashed rgba(56, 189, 248, 0.6);
  padding-bottom: 1px;
  transition: var(--transition);
}

.hero-program-link:hover {
  color: #7dd3fc;
  border-bottom-style: solid;
  border-color: #7dd3fc;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Program Hint Badge */
.hero-program-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-program-badge .badge-separator {
  color: #64748b;
  font-size: 0.75rem;
}

.hero-program-badge a {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.hero-program-badge a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Nav Outline Button */
.btn-outline-nav {
  background: transparent;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
}

.btn-outline-nav:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-external-link {
  color: #93c5fd !important;
}

.nav-external-link:hover {
  color: #ffffff !important;
}

/* Hero Showcase Frame */
.hero-mockup-wrapper {
  position: relative;
  margin-top: 2rem;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.browser-mockup {
  background: #1e293b;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.browser-mockup:hover {
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.2);
}

.mockup-header {
  height: 44px;
  background: #0f172a;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.mockup-dots {
  display: flex;
  gap: 0.45rem;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-address-bar {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #94a3b8;
  direction: ltr;
}

.mockup-address-bar svg {
  color: #10b981;
}

.mockup-body {
  position: relative;
  background: #fbf9f4;
}

.mockup-body img {
  width: 100%;
  display: block;
}

/* Floating Badges on Hero Mockup */
.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  z-index: 5;
  animation: floatAnim 4s ease-in-out infinite;
}

.badge-top-left {
  top: 15%;
  right: -25px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 12%;
  left: -25px;
  animation-delay: 2s;
}

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

.badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-blue { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }

.badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   Stats Bar Section
   ========================================================================== */
.stats-section {
  background: #ffffff;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.stat-number .accent {
  color: var(--brand-green);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Core Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.feature-list li svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

/* ==========================================================================
   Mobile App Highlight Section
   ========================================================================== */
.app-highlight-section {
  background: radial-gradient(circle at 10% 50%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 6rem 0;
  overflow: hidden;
}

.app-highlight-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.app-text-content {
  position: relative;
  z-index: 2;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.app-heading {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.app-heading span {
  color: #34d399;
}

.app-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.app-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.app-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-feat-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.app-feat-text span {
  font-size: 0.88rem;
  color: #94a3b8;
}

.mobile-apps-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.app-download-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

.qr-code-box {
  width: 104px;
  height: 104px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-download-info {
  flex-grow: 1;
}

.app-download-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.app-download-info p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

/* Phone Mockup Frame */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #000000;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 4px #334155, 0 0 40px rgba(16, 185, 129, 0.3);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #000000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker {
  width: 45px;
  height: 4px;
  background: #262626;
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #1e293b;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Interactive Showcase Gallery
   ========================================================================== */
.gallery-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.gallery-thumb-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1e293b;
}

.gallery-item.pad-item .gallery-thumb-container {
  aspect-ratio: 10 / 14;
  background: #0f172a;
}

.gallery-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.device-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.device-badge.badge-desktop {
  background: rgba(37, 99, 235, 0.85);
  color: #ffffff;
}

.device-badge.badge-pad {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.gallery-item:hover .gallery-thumb-container img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.gallery-info {
  padding: 1.1rem 1.25rem;
  flex-grow: 1;
}

.gallery-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 0.35rem;
}

.gallery-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Download Hub Section
   ========================================================================== */
.download-section {
  background: #ffffff;
  position: relative;
  padding: 6rem 0;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1100px) {
  .download-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.download-card.featured {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.15);
}

.card-ribbon {
  position: absolute;
  top: -14px;
  left: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.download-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
}

.icon-android {
  background: #ecfdf5;
  color: #10b981;
}

.icon-conv {
  background: #fff7ed;
  color: #ea580c;
}

.icon-windows {
  background: #eff6ff;
  color: #2563eb;
}

.download-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.download-card-version {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.download-card-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.download-card-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.download-card-features li svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.download-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Card QR Box */
.card-qr-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}

.card-qr-img {
  width: 74px;
  height: 74px;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-qr-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-qr-text strong {
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 800;
}

.card-qr-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.5rem;
}

/* Program Reference Banner */
.program-ref-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.program-ref-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.program-ref-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-ref-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.program-ref-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 650px;
}

/* Chrome Extension Banner */
.chrome-ext-banner {
  scroll-margin-top: 100px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.chrome-ext-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #1a73e8, #34a853, #fbbc05, #ea4335);
}

.chrome-ext-info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.chrome-ext-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.chrome-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
  margin-bottom: 0.5rem;
}

.chrome-ext-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.chrome-ext-desc {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.75;
}

.chrome-ext-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-chrome-store {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #ffffff;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35);
  white-space: nowrap;
}

.btn-chrome-store:hover {
  background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 115, 232, 0.5);
  color: #ffffff;
}

.chrome-store-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 992px) {
  .chrome-ext-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.75rem 1.5rem;
  }
  .chrome-ext-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .program-ref-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .program-ref-info {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--brand-green);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #090e17;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #34d399;
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-highlight-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .phone-mockup-wrapper {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 76px);
    background: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .download-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-badge {
    display: none;
  }
}

/* ==========================================================================
   Certificates Management System Section
   ========================================================================== */
.certs-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  padding: 5.5rem 0;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.certs-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.certs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.certs-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.certs-title span {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.certs-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.certs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.certs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.certs-card.featured-desk {
  border-top: 4px solid #2563eb;
}

.certs-card.featured-mobile {
  border-top: 4px solid #0d9488;
}

.certs-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.certs-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certs-card-icon.icon-desk {
  background: #eff6ff;
  color: #2563eb;
}

.certs-card-icon.icon-mobile {
  background: #f0fdf4;
  color: #0d9488;
}

.certs-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.certs-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.certs-features-list {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  flex-grow: 1;
}

.certs-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.certs-features-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10b981;
}

.certs-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-cert-desk {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.btn-cert-desk:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-cert-mobile {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: var(--transition);
}

.btn-cert-mobile:hover {
  background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  color: #ffffff;
}
@media (max-width: 992px) {
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}


/* ==========================================================================
   Certificates Workflow Diagram Image
   ========================================================================== */
.certs-workflow-wrapper {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin: 2.5rem auto 3.5rem auto;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 1040px;
}

.certs-workflow-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.certs-workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
  border: 1px solid #bfdbfe;
}

.certs-workflow-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.certs-diagram-img-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.certs-diagram-img-box img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
}


