/* ==========================================================================
   Connect Wifi Extenders - Light Pink & White Theme (Netgear Style)
   ========================================================================== */

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

:root {
  /* Color Palette - Light Pink & White Netgear Extender Style */
  --bg-dark: #FFFFFF;             /* Base main background: crisp white */
  --bg-card: #FFFFFF;             /* Crisp white card background */
  --bg-card-hover: #FFF5F8;       /* Subtle pinkish highlight on hover */
  --bg-light-surface: #FFF5F7;    /* Light pink-tinted section background */
  --bg-section-alt: #FDF4F7;      /* Secondary light surface */
  
  --primary: #E0004D;             /* Netgear Hot Pink / Magenta */
  --primary-hover: #C20042;       /* Rich Deep Pink */
  --primary-glow: rgba(224, 0, 77, 0.25);
  
  --accent-cyan: #E0004D;         /* Hot Pink accent */
  --accent-pink: #FF0066;         /* Vivid Electric Pink */
  --accent-rose: #FF2A85;         /* Bright Rose */
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  --accent-red: #EF4444;

  --text-main: #1E293B;           /* Deep Slate Body Text - sharp contrast */
  --text-muted: #64748B;          /* Medium Grey Muted Text */
  --text-dark: #0F172A;           /* Deep Dark Heading Text */

  --border-color: rgba(224, 0, 77, 0.12); /* Delicate pinkish border */
  --border-light: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Elevated Elements */
  --shadow-sm: 0 4px 12px rgba(224, 0, 77, 0.04);
  --shadow-lg: 0 15px 35px -5px rgba(224, 0, 77, 0.09), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(224, 0, 77, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #E0004D 0%, #FF2A85 100%);
  color: #FFF;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(224, 0, 77, 0.15);
}

.top-bar .top-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-bar a {
  text-decoration: underline;
  margin-left: 0.5rem;
  color: #FFF;
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  min-width: 0;
  max-width: 100%;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.logo span {
  color: var(--primary);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.phone-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: #FFF0F5;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224, 0, 77, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  color: #FFF;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid rgba(224, 0, 77, 0.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  background: #FFF0F5;
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: none;
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 50% 20%, rgba(224, 0, 77, 0.06) 0%, #FFFFFF 70%);
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF0F5;
  border: 1px solid rgba(224, 0, 77, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #FF0066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#new-setup,
#update-reset,
#troubleshoot {
  scroll-margin-top: 110px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.feature-item i {
  color: var(--primary);
}

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

.hero-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 560px;
}

.hero-cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1.1rem;
  border: none;
  border-radius: var(--radius-pill);
  min-width: 0;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #FFF;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  box-shadow: 0 8px 22px var(--primary-glow);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-normal);
}

.hero-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--primary-glow);
  color: #FFF;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

.floating-stat {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.floating-stat-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.2rem;
}

.floating-stat-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.floating-stat-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Products Section */
.products-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: 0 4px 15px rgba(224, 0, 77, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 0, 77, 0.35);
  box-shadow: 0 16px 35px rgba(224, 0, 77, 0.12);
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(224, 0, 77, 0.3);
}

.product-img-box {
  width: 100%;
  height: 230px;
  background: #FFF8FA;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(224, 0, 77, 0.06);
}

.product-img-box img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
}

.stars {
  color: #FBBF24;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.spec-pill {
  background: #FFF0F5;
  border: 1px solid rgba(224, 0, 77, 0.15);
  color: var(--text-main);
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.spec-pill i {
  color: var(--primary);
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

/* Setup Steps Section */
.setup-section {
  padding: 5rem 0;
  background: var(--bg-light-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 2rem;
}

.setup-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(224, 0, 77, 0.03);
}

.setup-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(224, 0, 77, 0.1);
}

.setup-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.setup-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.setup-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.led-indicator-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.led-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.led-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.led-green { background: #10B981; box-shadow: 0 0 10px #10B981; }
.led-yellow { background: #F59E0B; box-shadow: 0 0 10px #F59E0B; }
.led-red { background: #EF4444; box-shadow: 0 0 10px #EF4444; }

/* About Us Section */
.about-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

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

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-light-surface);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(224, 0, 77, 0.1);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.faq-header span {
  min-width: 0;
}

.faq-header i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFF;
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #FAF4F6;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.875rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--primary);
}

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

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-badge {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* Modal Enquiry Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #FFF0F5;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary);
  color: #FFF;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.selected-product-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FFF0F5;
  border: 1px solid rgba(224, 0, 77, 0.2);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.selected-product-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #FFF;
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.selected-product-details h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.selected-product-details p {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(224, 0, 77, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Success Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10B981;
  color: #FFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  z-index: 1100;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* Policy Pages Styling */
.policy-page {
  padding: 4rem 0 6rem;
  background: var(--bg-light-surface);
}

.policy-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.policy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

.policy-content p {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.policy-content ul {
  color: var(--text-main);
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 1.75rem 0 1.85rem;
  }

  .hero .hero-grid,
  .hero .hero-text {
    display: block;
    width: 100%;
  }

  .navbar {
    padding: 0.7rem 0;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 1.35rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    margin-bottom: 1.85rem;
  }

  .feature-item {
    font-size: 0.92rem;
  }

  .hero-cta-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-cta-card {
    padding: 1.05rem 1.15rem;
    font-size: 1.02rem;
    text-decoration: none;
  }

  .hero-image-wrapper {
    display: none;
  }

  .products-section {
    padding: 2rem 0 3.5rem;
  }

  .products-section .section-header {
    margin-bottom: 1.75rem;
  }

  .top-bar,
  .nav-links,
  .nav-cta,
  .mobile-toggle {
    display: none !important;
  }

  .nav-container {
    justify-content: center;
  }

  .container {
    padding: 0 1.2rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    padding: 1.6rem 0 1.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 1.5rem;
  }

  .hero-actions .btn,
  .hero-cta-card,
  .product-footer .btn {
    width: 100%;
  }

  .floating-stat {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 0.75rem 0.9rem;
  }

  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Extender setup wizard (OEM-style) */
.ext-wizard {
  --ext-accent: #1e3a5f;
  --ext-accent-dark: #0f2744;
  min-height: 100svh;
  background: #eef1f4;
  display: flex;
  flex-direction: column;
  color: #1f2933;
}

.ext-topbar {
  background: #fff;
  border-bottom: 1px solid #dce3ea;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ext-topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ext-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ext-topbar-brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.ext-topbar-brand small {
  display: block;
  color: #6b7c8d;
  font-size: 0.75rem;
}

.ext-wifi-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ext-accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.ext-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ext-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ext-accent-dark);
  background: #f3f6f9;
  border: 1px solid #dce3ea;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.ext-topbar-meta {
  font-size: 0.75rem;
  color: #6b7c8d;
  font-weight: 600;
}

.ext-main {
  flex: 1;
  padding: 1.75rem 1.1rem 2rem;
}

.ext-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  padding: 1.6rem 1.5rem 1.75rem;
}

.ext-card-narrow {
  max-width: 560px;
}

.ext-steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8eef3;
}

.ext-steps li {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9aab;
  position: relative;
  padding-top: 0.85rem;
}

.ext-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 99px;
  background: #dce3ea;
}

.ext-steps li.is-active {
  color: var(--ext-accent-dark);
}

.ext-steps li.is-active::before,
.ext-steps li.is-done::before {
  background: var(--ext-accent);
}

.ext-h1 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #122033;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.ext-lead {
  color: #5b6b7c;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

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

a.brand-card,
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  background: #f8fafc;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 0.9rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.brand-card img {
  width: 100%;
  max-width: 150px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.brand-card-invert img {
  filter: invert(1);
}

.brand-card:hover {
  background: #fff;
  border-color: var(--ext-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-accent) 18%, transparent);
}

.model-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.model-form label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #122033;
}

.model-input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #c9d4de;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
}

.model-input:focus {
  border-color: var(--ext-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-accent) 20%, transparent);
}

.ext-hint {
  color: #6b7c8d;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.85rem;
}

.ext-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  padding-right: 1.35rem;
  scroll-margin-bottom: 16px;
}

.ext-btn-primary,
.ext-btn-ghost {
  min-width: 108px;
  padding: 0.72rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

.ext-btn-primary {
  border: 0;
  background: var(--ext-accent);
  color: #fff;
}

.ext-btn-primary:hover {
  background: var(--ext-accent-dark);
}

.ext-btn-ghost {
  border: 1px solid #c9d4de;
  background: #fff;
  color: #334155;
}

.ext-btn-full {
  width: 100%;
  margin-top: 0.35rem;
}

.ext-connect-visual {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0.2rem auto 1.1rem;
}

.ext-ring {
  position: absolute;
  inset: 0;
  border: 2px solid color-mix(in srgb, var(--ext-accent) 35%, transparent);
  border-radius: 50%;
  animation: extPulse 2s ease-out infinite;
}

.ext-ring:nth-child(2) {
  inset: 12px;
  animation-delay: 0.45s;
}

.ext-device {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--ext-accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

@keyframes extPulse {
  0% { transform: scale(0.86); opacity: 0.85; }
  100% { transform: scale(1.12); opacity: 0; }
}

.ext-progress-wrap {
  margin: 0.4rem 0 1.1rem;
}

.ext-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #5b6b7c;
  margin-bottom: 0.4rem;
}

.ext-progress-row strong {
  color: var(--ext-accent-dark);
}

.connect-progress {
  width: 100%;
  height: 8px;
  background: #e6edf3;
  border-radius: 999px;
  overflow: hidden;
}

.connect-progress span {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--ext-accent);
  transition: width 0.8s ease;
}

.ext-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.ext-checks li {
  font-size: 0.88rem;
  color: #8a9aab;
  padding-left: 1.5rem;
  position: relative;
}

.ext-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c9d4de;
  background: #fff;
}

.ext-checks li.is-active {
  color: var(--ext-accent-dark);
  font-weight: 600;
}

.ext-checks li.is-active::before {
  border-color: var(--ext-accent);
  background: var(--ext-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ext-accent) 18%, transparent);
}

.ext-checks li.is-done {
  color: #2f6b3a;
}

.ext-checks li.is-done::before {
  content: "✓";
  border: 0;
  background: #2f6b3a;
  color: #fff;
  font-size: 0.62rem;
  line-height: 12px;
  text-align: center;
  width: 14px;
  height: 14px;
}

.ext-wait-note {
  font-size: 0.8rem;
  color: #6b7c8d;
  background: #f4f7fa;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ext-alert {
  display: flex;
  gap: 0.75rem;
  background: #fff6f4;
  border: 1px solid #f0c9c0;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.85rem;
}

.ext-alert i {
  color: #c0392b;
  margin-top: 0.15rem;
}

.ext-alert strong {
  display: block;
  color: #8e2418;
  margin-bottom: 0.15rem;
}

.ext-alert p {
  color: #6d3a32;
  font-size: 0.88rem;
  margin: 0;
}

.ext-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  background: #f6f8fb;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
}

.ext-meta-grid dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8b9c;
}

.ext-meta-grid dd {
  font-size: 0.88rem;
  font-weight: 700;
  color: #122033;
}

.ext-hint-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.ext-reasons {
  margin: 0 0 1.15rem 1.1rem;
  color: #5b6b7c;
  font-size: 0.88rem;
}

.ext-reasons li + li {
  margin-top: 0.28rem;
}

.ext-foot {
  text-align: center;
  font-size: 0.75rem;
  color: #7a8b9c;
  padding: 0.85rem 1rem 1.2rem;
}

@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-card {
    min-height: 74px;
    padding: 0.7rem 0.5rem;
  }

  .brand-card img {
    height: 34px;
  }

  .ext-h1 {
    font-size: 1.28rem;
  }

  .ext-card {
    padding: 1.2rem 1rem 1.3rem;
  }

  .ext-meta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.55rem 0.5rem;
  }

  .ext-meta-grid dd {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .ext-topbar-inner {
    padding: 0.7rem 0.9rem;
    justify-content: center;
  }

  .ext-topbar-end {
    display: none;
  }

  .ext-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ext-logo img {
    height: 32px;
    margin: 0 auto;
  }

  .ext-wizard.kb-open .ext-steps {
    display: none;
  }

  .ext-wizard.kb-open .ext-topbar {
    display: none;
  }

  .ext-wizard.is-error {
    height: 100svh;
    max-height: 100svh;
    overflow: visible;
  }

  .ext-wizard.is-error .ext-steps,
  .ext-wizard.is-error .ext-foot,
  .ext-wizard.is-error .ext-topbar-meta {
    display: none;
  }

  .ext-wizard.is-error .ext-main {
    overflow: hidden;
    min-height: 0;
    flex: 1;
    padding: 0.7rem 0.8rem;
    display: flex;
    align-items: flex-start;
  }

  .ext-wizard.is-error .ext-card {
    width: 100%;
    padding: 0.95rem 0.85rem 1rem;
    margin: 0;
  }

  .ext-wizard.is-error .ext-alert {
    padding: 0.65rem 0.7rem;
    margin-bottom: 0.7rem;
  }

  .ext-wizard.is-error .ext-alert p {
    font-size: 0.82rem;
  }

  .ext-wizard.is-error .ext-btn-full {
    margin-top: 0;
    padding: 0.8rem 1rem;
  }
}

