/* TruePrice PWA & Landing Page Styles */

:root {
  --primary-emerald: #10b981;
  --primary-teal: #0d9488;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --accent-blue: #0ea5e9;
  --accent-red: #f43f5e;
  --accent-orange: #f97316;
  --bg-dark: #090d16;
  --bg-card: rgba(17, 25, 40, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.25);
  --shadow-glow: 0 10px 40px rgba(16, 185, 129, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-emerald);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-link:hover { 
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
  color: #022c22;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Mobile tap target size minimum */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
  filter: brightness(1.1);
}

/* Google-Style Centered Search Hero */
.search-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  text-align: center;
  position: relative;
}

.search-hero-content {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-hero-logo {
  font-size: 54px;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 8px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 40%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-hero-tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.central-search-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.central-search-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 60px rgba(16, 185, 129, 0.1);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  min-height: 48px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.search-suggestions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.suggestion-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--primary-emerald);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.suggestion-tag:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-emerald);
}

/* Scroll Cue */
.scroll-cue {
  margin-top: 50px;
}

.scroll-cue a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

.scroll-cue a:hover {
  opacity: 0.8;
}

.arrow-down {
  font-size: 20px;
  color: var(--primary-emerald);
  margin-top: 4px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Main Flow Layout Below Hero */
.main-content-flow {
  background: linear-gradient(180deg, rgba(9,13,22,0) 0%, rgba(9,13,22,0.9) 10%), var(--bg-dark);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* Interactive Drift Calculator */
.drift-calc-card {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-full-width {
  grid-column: span 2;
}

.calc-input-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.calc-input {
  background: rgba(9, 13, 22, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.calc-input:focus {
  border-color: var(--primary-emerald);
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.calc-result-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.calc-result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 8px;
}

.calc-feedback-alert {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

/* Alert States */
.alert-safe {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.alert-warning {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}
.alert-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mockup Card & Portal Simulator */
.mockup-card {
  background: rgba(9, 13, 22, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.state-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.state-selector::-webkit-scrollbar {
  height: 4px;
}
.state-selector::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.state-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.state-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.state-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

/* Portal Simulator Listing */
.portal-listing-sim {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: #111827;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.portal-sim-header {
  background: #1f2937;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}
.sim-browser-dot:nth-child(2) { background: #f59e0b; }
.sim-browser-dot:nth-child(3) { background: #10b981; }

.sim-browser-address {
  flex: 1;
  background: #111827;
  border-radius: 4px;
  font-size: 10px;
  color: #6b7280;
  padding: 2px 8px;
  text-align: center;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.portal-sim-body {
  padding: 16px;
}

.sim-property-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.sim-property-meta {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary-emerald);
  font-weight: 700;
  margin-bottom: 4px;
}

.sim-property-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sim-property-specs {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sim-property-price {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Extension Floating Overlay inside Portal Simulator */
.sim-extension-overlay {
  position: absolute;
  top: 40px;
  right: 12px;
  width: 250px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 12px;
  z-index: 10;
  animation: widgetEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes widgetEntrance {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sim-extension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
}

.sim-extension-body {
  font-size: 12px;
}

.sim-toggle-wrapper {
  margin-top: 16px;
  text-align: center;
}

.btn-toggle-ext {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary-emerald);
  color: #34d399;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-toggle-ext:hover {
  background: var(--primary-emerald);
  color: #022c22;
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 60px auto 20px;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 12px;
  transition: transform 0.3s;
  color: var(--primary-emerald);
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-content p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  padding-bottom: 18px;
}

/* Testimonials */
.testimonials-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 24px;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 32px;
  color: var(--primary-emerald);
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 13px;
}

.author-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 22px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-smooth);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 60px;
}

/* Chrome Web Store Button styling */
.btn-chrome-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.btn-chrome-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
  background: #f1f5f9;
}

.chrome-store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chrome-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chrome-store-action {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.chrome-store-sub {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}

/* Prominent Hero CTA Card & Button */
.hero-cta-card {
  margin-top: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-chrome-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-chrome-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
  background: #f8fafc;
}

.chrome-hero-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.chrome-hero-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chrome-hero-action {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.chrome-hero-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.hero-cta-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

/* Standalone Features Section */
.features-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 28px 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  background: rgba(16, 185, 129, 0.1);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  color: #ffffff;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}



/* PWA Standalone Mode CSS overrides */
@media (display-mode: standalone) {
  .navbar {
    background: var(--bg-dark);
  }
  #installAppBtn {
    display: none !important; /* Hide install button since already installed */
  }
  .scroll-cue {
    display: none; /* Hide cues for scrolling to extensions */
  }
  .extension-only-card {
    display: none !important; /* Hide extension download steps inside the app wrapper */
  }
}

@media (max-width: 992px) {
  .main-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
  }
  .main-container > * {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 32px;
  }
  .sim-extension-overlay {
    width: 100%;
    position: relative;
    top: 0;
    right: 0;
    margin-top: 14px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
  }

  .nav-links .btn-primary {
    width: 100%;
    text-align: center;
  }

  .search-hero-logo {
    font-size: 40px;
  }

  .search-hero-tagline {
    font-size: 14px;
  }

  .central-search-card {
    padding: 20px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-full-width {
    grid-column: span 1 !important;
  }

  /* Mobile Centering & Balance */
  .extension-demo-section {
    text-align: center;
  }

  .extension-demo-section .hero-title,
  .extension-demo-section .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-card {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
  }

  .btn-chrome-hero {
    padding: 12px 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .chrome-hero-action {
    font-size: 15px;
  }

  .hero-cta-badge,
  .hero-cta-meta {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-cta-card {
    padding: 16px;
  }
  .btn-chrome-hero {
    padding: 12px 16px;
  }
  .chrome-hero-action {
    font-size: 15px;
  }
  .hero-cta-meta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
  }
  .mockup-card {
    padding: 16px;
  }
  .portal-sim-body {
    padding: 12px;
  }
  .sim-property-title {
    font-size: 14px;
    word-break: break-word;
  }
  .sim-property-specs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .state-selector {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .state-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .hero-cta-card {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .btn-chrome-hero {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 10px;
  }

  .chrome-hero-icon {
    width: 24px;
    height: 24px;
  }

  .chrome-hero-action {
    font-size: 13px;
  }

  .chrome-hero-sub {
    font-size: 9px;
  }

  .hero-cta-meta {
    font-size: 10px;
    gap: 8px;
  }

  .nav-container {
    padding: 14px 16px;
  }

  .hero-title {
    font-size: 26px;
  }
}

/* PWA Install Slide-up Prompt (matching vayu.xlabs.au structure & styling) */
.pwa-prompt-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pwa-prompt-banner.show {
  transform: translateX(-50%) translateY(0);
}

.pwa-prompt-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-prompt-icon {
  font-size: 24px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-prompt-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.pwa-prompt-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.pwa-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pwa-prompt-actions .btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pwa-prompt-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.pwa-prompt-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pwa-prompt-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
  color: #022c22;
}

.pwa-prompt-actions .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}


