/* ==========================================================================
   AWAAZ AI - Official Design System & Stylesheet
   Parent Company: Sultify Tech Innovations (STI)
   GovTech Palette, Fluid Responsive System, Glassmorphic Cards & Waveforms
   ========================================================================== */

:root {
  --color-navy: #071B2B;
  --color-dark-blue: #0B2940;
  --color-blue-primary: #2563EB;
  --color-blue-electric: #2878E5;
  --color-teal: #16B8A6;
  --color-cyan: #5DE4D0;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F8FC;
  --color-bg-alt: #EDF3FA;
  --color-text-primary: #132338;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-card: rgba(226, 232, 240, 0.8);
  
  --shadow-sm: 0 1px 3px rgba(7, 27, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(7, 27, 43, 0.08);
  --shadow-lg: 0 12px 30px rgba(7, 27, 43, 0.12);
  --shadow-glow: 0 0 25px rgba(22, 184, 166, 0.25);
  --shadow-glow-blue: 0 0 25px rgba(37, 99, 235, 0.25);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-blue-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal);
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-navy);
  color: var(--color-cyan);
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 900px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-label.teal {
  background: rgba(22, 184, 166, 0.1);
  border-color: rgba(22, 184, 166, 0.3);
  color: #0f766e;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--color-text-secondary);
  max-width: 720px;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-blue-electric));
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--color-blue-primary));
  box-shadow: var(--shadow-glow-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-blue-primary);
  color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-dark-blue);
  color: var(--color-cyan);
  box-shadow: 0 8px 20px rgba(7, 27, 43, 0.25);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  color: var(--color-navy);
  font-weight: 800;
}
.btn-teal:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--color-navy);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.84rem;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  height: 44px;
  width: auto;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  position: relative;
  padding: 8px 2px;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-blue-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-blue-primary), var(--color-teal));
  border-radius: var(--radius-full);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-navy);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 27, 43, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.15rem;
  color: var(--color-white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active {
  color: var(--color-cyan);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  background: radial-gradient(circle at 85% 15%, rgba(93, 228, 208, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-light) 100%);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--color-navy);
}

.hero-content h1 span.gradient-text {
  background: linear-gradient(120deg, var(--color-blue-primary), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Challenge Banner in Hero */
.challenge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 27, 43, 0.04);
  border: 1px solid rgba(7, 27, 43, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--color-navy);
  font-weight: 600;
}

.challenge-pill .badge {
  background: var(--color-navy);
  color: var(--color-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

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

.phone-mockup {
  width: 320px;
  height: 640px;
  background: var(--color-navy);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(7, 27, 43, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #091F33 0%, #071725 100%);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.phone-screen {
  flex: 1;
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-white);
  font-size: 0.8125rem;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.screen-header .app-name {
  font-weight: 800;
  color: var(--color-white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-header .app-name span {
  color: var(--color-cyan);
}
.screen-header .lang-badge {
  background: rgba(22, 184, 166, 0.2);
  color: var(--color-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 86%;
  line-height: 1.4;
  font-size: 0.78rem;
}

.chat-bubble.citizen {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-blue-electric));
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-bottom-left-radius: 4px;
}

.service-card-mini {
  background: rgba(22, 184, 166, 0.12);
  border: 1px solid rgba(93, 228, 208, 0.3);
  border-radius: 12px;
  padding: 10px;
  margin-top: 6px;
}
.service-card-mini .title {
  font-weight: 700;
  color: var(--color-cyan);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.service-card-mini .details {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.voice-control-area {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Sound Wave Animation */
.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 28px;
}
.waveform-bars span {
  width: 3px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite alternate;
}
.waveform-bars span:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.waveform-bars span:nth-child(3) { animation-delay: 0.4s; height: 26px; }
.waveform-bars span:nth-child(4) { animation-delay: 0.1s; height: 20px; }
.waveform-bars span:nth-child(5) { animation-delay: 0.3s; height: 12px; }

@keyframes wave {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

.mock-mic-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  box-shadow: 0 0 15px rgba(93, 228, 208, 0.4);
}

/* Section Wrapper */
.section-pad {
  padding: 90px 0;
}
.section-pad-sm {
  padding: 60px 0;
}
.bg-alt {
  background-color: var(--color-bg-alt);
}
.bg-dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}
.bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-white);
}
.bg-dark .section-desc {
  color: var(--color-text-muted);
}

/* Problem Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gov-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gov-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.gov-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.gov-card-icon.teal {
  background: rgba(22, 184, 166, 0.1);
  color: var(--color-teal);
}

.gov-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.gov-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Dark Card Variant */
.gov-card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}
.gov-card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 228, 208, 0.3);
  transform: translateY(-4px);
}
.gov-card-dark p {
  color: var(--color-text-muted);
}

/* Workflow Step Diagrams */
.workflow-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 50px;
  position: relative;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.step-card:hover {
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-teal));
  color: var(--color-white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 0.9rem;
}

.step-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Languages Badge Grid */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.lang-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-fast);
}
.lang-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-2px);
}
.lang-name-native {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.lang-name-en {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-prototype {
  background: #DCFCE7;
  color: #166534;
}
.status-development {
  background: #FEF3C7;
  color: #92400E;
}
.status-planned {
  background: #E0E7FF;
  color: #3730A3;
}
.status-proposed {
  background: #F1F5F9;
  color: #475569;
}

/* Integrations Grid */
.integration-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.integration-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.integration-title {
  font-size: 1.15rem;
  color: var(--color-navy);
  font-weight: 700;
}

/* Interactive Demo Modal */
.demo-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 43, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal-backdrop.open {
  display: flex;
}

.demo-modal-window {
  width: 100%;
  max-width: 860px;
  background: #091F33;
  color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.demo-modal-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-modal-header h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}
.modal-close-btn:hover {
  color: var(--color-white);
}

.demo-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 6px;
}

.sim-select, .sim-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
}
.sim-select option {
  background: #091F33;
  color: #FFFFFF;
}

.sim-chat-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-muted);
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* Alert Boxes */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-info {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--color-navy);
}
.alert-success {
  background: rgba(22, 184, 166, 0.12);
  border: 1px solid rgba(22, 184, 166, 0.3);
  color: #0f766e;
}
.alert-warning {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1, .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .workflow-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-group {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid-3, .cards-grid-4 {
    grid-template-columns: 1fr;
  }
  .demo-modal-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-pad {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .workflow-track {
    grid-template-columns: 1fr;
  }
  .phone-mockup {
    width: 290px;
    height: 580px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ==========================================================================
   GovTech AI Technology Architecture & Interactive Inspector Styles
   ========================================================================== */

/* Technical Background Grid & Hero Section */
.tech-hero-section,
.tech-hero-bg {
  background-color: #071B2B;
  background: 
    radial-gradient(circle at 80% 20%, rgba(93, 228, 208, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #071B2B 0%, #0B2940 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 85px 0 95px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.7;
}

/* Capability Badges */
.cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cap-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.cap-badge.implemented {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.cap-badge.implemented::before {
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}

.cap-badge.in-development {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.cap-badge.in-development::before {
  background: #FBBF24;
  box-shadow: 0 0 8px #FBBF24;
}

.cap-badge.planned {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.cap-badge.planned::before {
  background: #A5B4FC;
  box-shadow: 0 0 8px #A5B4FC;
}

/* Architecture Workspace Layout */
.arch-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .arch-workspace {
    grid-template-columns: 1fr;
  }
}

.arch-layer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.arch-layer-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(93, 228, 208, 0.4);
  transform: translateX(4px);
}

.arch-layer-item.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(93, 228, 208, 0.2);
}

.arch-layer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arch-layer-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-layer-item.active .arch-layer-num {
  background: var(--color-cyan);
  color: var(--color-navy);
}

.arch-layer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2px;
}

.arch-layer-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Architecture Inspector Panel (Right) */
.arch-inspector-panel {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #0B2940 0%, #071B2B 100%);
  border: 1px solid rgba(93, 228, 208, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  color: var(--color-white);
}

.inspector-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.inspector-tag {
  font-size: 0.75rem;
  color: var(--color-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.inspector-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
}

.inspector-field {
  margin-bottom: 18px;
}

.inspector-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspector-field-content {
  font-size: 0.875rem;
  color: #E2E8F0;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
}

/* RAG Stepper Visual */
.rag-pipeline-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 36px;
  position: relative;
}

@media (max-width: 1024px) {
  .rag-pipeline-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .rag-pipeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rag-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.rag-node:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}

.rag-node-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-cyan);
  margin-bottom: 6px;
}

.rag-node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

/* Code & JSON Preview Container */
.json-preview-container {
  background: #061522;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-family-mono);
  font-size: 0.8125rem;
  color: #E2E8F0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.json-preview-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.json-preview-dots {
  display: flex;
  gap: 6px;
}

.json-preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.json-preview-body {
  padding: 20px;
  overflow-x: auto;
  line-height: 1.65;
}

/* Benchmark Metrics Grid */
.benchmark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.benchmark-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(7, 27, 43, 0.3);
}

.benchmark-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin: 12px 0 6px;
  font-feature-settings: "tnum";
}

.benchmark-value.cyan {
  color: var(--color-cyan);
}

.benchmark-value.gold {
  color: #FCD34D;
}

.benchmark-value.emerald {
  color: #34D399;
}

.benchmark-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #E2E8F0;
}

.benchmark-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Technology Stack Table Card */
.stack-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-top: 30px;
}

.stack-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.stack-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-cyan);
  padding: 14px 18px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
}

.stack-table tr:last-child td {
  border-bottom: none;
}

.stack-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.roadmap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all var(--transition-fast);
}

.roadmap-card:hover {
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.roadmap-q {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ==========================================================================
   404 Voice Signal Not Found Styles
   ========================================================================== */
.error-hero-section {
  background-color: #071B2B;
  background: 
    radial-gradient(circle at 50% 25%, rgba(93, 228, 208, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(22, 184, 166, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #071B2B 0%, #0B2940 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.error-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.8;
}

.soundwave-visual-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 90px;
  margin-bottom: 24px;
  position: relative;
}

.soundwave-bar {
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #5DE4D0 0%, #2563EB 100%);
  animation: wavePulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(93, 228, 208, 0.4);
}

.soundwave-bar:nth-child(1) { height: 25px; animation-delay: 0.0s; }
.soundwave-bar:nth-child(2) { height: 45px; animation-delay: 0.15s; }
.soundwave-bar:nth-child(3) { height: 65px; animation-delay: 0.3s; }
.soundwave-bar:nth-child(4) { height: 85px; animation-delay: 0.45s; }
.soundwave-bar:nth-child(5) { height: 50px; animation-delay: 0.6s; }
.soundwave-bar:nth-child(6) { height: 75px; animation-delay: 0.25s; }
.soundwave-bar:nth-child(7) { height: 35px; animation-delay: 0.4s; }
.soundwave-bar:nth-child(8) { height: 60px; animation-delay: 0.55s; }
.soundwave-bar:nth-child(9) { height: 30px; animation-delay: 0.1s; }

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
    box-shadow: 0 0 18px rgba(93, 228, 208, 0.8);
  }
}

.error-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 9999px;
  color: #FCA5A5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.error-title-huge {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 auto 12px;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.error-title-huge span {
  background: linear-gradient(120deg, #5DE4D0 0%, #2878E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.error-subheadline {
  color: #CBD5E1;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 680px;
  line-height: 1.7;
  margin: 0 auto 28px;
}

.multilingual-voice-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-notice-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: #94A3B8;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}
.voice-notice-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.voice-lang-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #5DE4D0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(93, 228, 208, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.voice-text-urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  color: #F1F5F9;
  direction: rtl;
}

.voice-text-pashto {
  font-size: 0.95rem;
  color: #F1F5F9;
  direction: rtl;
}

.error-actions-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-speak-voice {
  background: linear-gradient(135deg, #16B8A6 0%, #2563EB 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 25px rgba(22, 184, 166, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.btn-speak-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(93, 228, 208, 0.45);
}

.btn-return-home {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.btn-return-home:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #5DE4D0;
  transform: translateY(-2px);
}

.recovery-container {
  max-width: 1020px;
  margin: 0 auto;
  text-align: left;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.recovery-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}
.recovery-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(93, 228, 208, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.recovery-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #5DE4D0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.recovery-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recovery-card-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 14px;
}

.recovery-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5DE4D0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-hints-wrap {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.search-hints-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 14px;
}

.search-chips-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.service-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.service-chip:hover {
  background: rgba(93, 228, 208, 0.15);
  border-color: #5DE4D0;
  color: #5DE4D0;
  transform: translateY(-2px);
}
