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

/* ─── DESIGN TOKENS (ChatGPT Codex Aesthetics) ─── */
:root {
  --bg-primary: #090C15;
  --bg-secondary: #111625;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --secondary: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --accent-green: #10B981;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  --shadow-glow: 0 0 50px rgba(139, 92, 246, 0.15);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(15, 23, 42, 0.04);
  --glass-border: rgba(15, 23, 42, 0.08);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --secondary: #2563EB;
  --accent-cyan: #0891B2;
  --accent-pink: #DB2777;
  --accent-green: #059669;
  --border-subtle: #E2E8F0;
  --shadow-glow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ─── COSMIC MESH GLOW BACKGROUND & ANIMATED VIDEO ─── */
.codex-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-video-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(140%) contrast(110%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.4s;
}

[data-theme="light"] .bg-video-loop {
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.bg-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.codex-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

[data-theme="light"] .codex-orb {
  opacity: 0.12;
}

.orb-primary {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #8B5CF6 0%, #6366F1 50%, transparent 80%);
  top: -15%;
  left: 20%;
}

.orb-secondary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3B82F6 0%, #06B6D4 50%, transparent 80%);
  top: 10%;
  right: -10%;
  animation-delay: -7s;
}

.orb-accent {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #EC4899 0%, #8B5CF6 50%, transparent 80%);
  bottom: 10%;
  left: -10%;
  animation-delay: -14s;
}

.codex-mesh-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}
[data-theme="light"] .codex-mesh-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  opacity: 0.5;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.08); }
  100% { transform: translate(-40px, 50px) scale(0.92); }
}

/* ─── FLOATING TOP HEADER ─── */
.codex-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(9, 12, 21, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

[data-theme="light"] .codex-header {
  background: rgba(248, 250, 252, 0.85);
}

.codex-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.codex-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-container {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.codex-brand:hover .brand-logo-container {
  transform: scale(1.04);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-badge {
  display: none;
}

/* Nav links */
.codex-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--text-primary);
}

/* Actions */
.codex-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-location-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-location-btn .chevron {
  font-size: 0.65rem;
  opacity: 0.7;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.nav-cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--accent-pink), var(--primary));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.btn-signin-codex {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-signin-codex:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-signin-codex.sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Primary CTA button */
.btn-primary-codex {
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-primary-codex {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
}

.btn-primary-codex:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.35);
}

/* ─── STICKY CONDENSED HEADER ─── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(17, 22, 37, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: none;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.sticky-header-container {
  display: flex;
  align-items: center;
  height: 64px;
}

.sticky-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.sticky-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
  margin-left: 16px;
  cursor: pointer;
}

.sticky-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.sticky-nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.sticky-nav-link:hover {
  color: var(--primary);
}

.cart-badge {
  background: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

/* ─── HERO SECTION (ChatGPT Codex Architecture) ─── */
.codex-hero-section {
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
  text-align: center;
}

.codex-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

/* Center Codex Glowing Logo Emblem Box */
.hero-emblem-wrapper {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(96, 165, 250, 0.3) 60%, transparent 80%);
  filter: blur(28px);
  animation: emblemPulse 4s ease-in-out infinite alternate;
}

@keyframes emblemPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.hero-emblem-box {
  position: relative;
  z-index: 2;
  padding: 16px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease;
}

.hero-logo-img {
  height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-emblem-wrapper:hover .hero-emblem-box {
  transform: scale(1.08) rotate(2deg);
}

/* Codex Headline */
.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-title {
  background: linear-gradient(180deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.4;
}

/* Double Search Widget */
.codex-search-widget {
  width: 100%;
  max-width: 760px;
  margin-bottom: 48px;
}

.swiggy-search-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .swiggy-search-container {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.swiggy-search-container:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.25);
}

.search-split-left {
  flex: 0.8;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
}

.search-split-right {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
}

.swiggy-search-container input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  padding: 18px 16px 18px 48px;
}

.swiggy-search-container svg.input-icon {
  position: absolute;
  left: 18px;
  color: var(--primary);
  pointer-events: none;
}

.location-chevron {
  position: absolute;
  right: 16px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Trust Ribbon ("Trusted by top teams") */
.hero-trust-ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trust-ribbon-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.trust-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-logo-chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

[data-theme="light"] .trust-logo-chip {
  background: rgba(15, 23, 42, 0.04);
}

.trust-logo-chip:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

/* ─── CODEX GLASS CARD REUSABLE CLASS ─── */
.codex-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .codex-glass-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.codex-glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(139, 92, 246, 0.15);
}

/* ─── SERVICES BENTO CARDS ─── */
.service-cards-section {
  padding: 60px 0 80px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 48px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 32px 24px 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-glow-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.service-card:hover .card-glow-bg {
  opacity: 1;
}

.service-card .sub-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.service-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.service-card .promo-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.service-card-img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 170px;
  height: 130px;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.08) translate(-4px, -4px);
}

.service-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  z-index: 5;
}

.service-card-eta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-arrow-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.25s ease;
}

.service-card:hover .btn-arrow-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* ─── FEATURED PRODUCTS CAROUSEL ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.products-carousel-container {
  position: relative;
  margin: 0 -12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.products-carousel-container::-webkit-scrollbar { display: none; }

.products-track {
  display: flex;
  gap: 24px;
  padding: 12px;
}

.product-card {
  width: 230px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="light"] .product-card {
  background: #FFFFFF;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
}

.product-card-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

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

.product-card-brand {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  height: 38px;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-weight {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.product-card .btn-add {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.product-card .btn-add:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ─── OFFERS & PROMO CODES ─── */
.offers-section {
  padding: 80px 0;
}

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

.offer-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.offer-card-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 16px;
}

.offer-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.offer-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.offer-card-code {
  background: var(--bg-glass);
  border: 1px dashed var(--primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  align-self: flex-start;
  cursor: pointer;
  transition: all 0.2s;
}

.offer-card-code:hover {
  background: var(--primary);
  color: white;
}

/* ─── TRUST FEATURE COLUMN ─── */
.trust-section {
  padding: 80px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  text-align: center;
  padding: 32px 24px;
}

.trust-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.trust-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* ─── FOOTER ─── */
.codex-footer {
  background: #060810;
  color: #94A3B8;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="light"] .codex-footer {
  background: #0F172A;
  color: #94A3B8;
}

.footer-top-status {
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #F8FAFC;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  font-weight: 800;
}

.footer-col ul li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-col ul li a:hover {
  color: #F8FAFC;
}

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

/* ─── LOCATION MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal {
  padding: 32px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.btn-modal-close:hover { color: var(--text-primary); }

.modal-detect-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--primary);
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-detect-btn:hover {
  background: var(--primary);
  color: white;
}

.modal-search {
  position: relative;
  margin-bottom: 20px;
}

.modal-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-glass);
}

.modal-search input:focus { border-color: var(--primary); }

.modal-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.modal-error {
  color: #EF4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: none;
}

.saved-locations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.saved-location-item {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.saved-location-item:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

/* ─── CART DRAWER ─── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
}

.cart-drawer-overlay.active { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active { right: 0; }

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-items {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-drawer-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.cart-drawer-item-details { flex: 1; }
.cart-drawer-item-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.cart-drawer-item-price { font-size: 0.8rem; color: var(--text-secondary); }

.cart-drawer-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-drawer-item-qty button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-cart-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-cart-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* ─── 3 ACTIVE SERVICES ENHANCEMENTS ─── */
.three-active-services-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.active-service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  min-height: 480px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.active-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
}

.card-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.bullet-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: auto;
  margin-bottom: 20px;
}

.price-tag {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.eta-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.service-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-whatsapp-outline:hover {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.full-width {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* HERO SERVICE PILLS */
.hero-service-selector-row {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
  width: 100%;
}

.hero-service-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 240px;
}

.hero-service-pill:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

.pill-icon {
  font-size: 1.8rem;
}

.pill-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.pill-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pill-text small {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pill-arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* MODAL FORM INPUTS */
.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

/* STEPS GRID */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 24px;
  border-radius: var(--radius-md);
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

/* ─── RESPONSIVE MEDIA QUERIES (Cascaded at bottom for priority) ─── */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.6rem; }
  .services-grid, .three-active-services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .codex-nav-links { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .codex-header { padding: 10px 0; }
  .codex-header-container { gap: 10px; }
  
  .brand-logo-container {
    padding: 6px 14px;
    border-radius: 10px;
  }
  .brand-logo-img {
    height: 42px;
    max-width: 130px;
  }

  .codex-hero-section { padding-top: 92px; padding-bottom: 48px; }
  .hero-emblem-wrapper { margin-bottom: 20px; }
  .hero-emblem-box { padding: 12px 24px; border-radius: 20px; }
  .hero-logo-img { height: 64px; }
  
  .hero-title { font-size: 2.4rem; letter-spacing: -1px; margin-bottom: 12px; }
  .hero-subtitle { font-size: 0.96rem; margin-bottom: 24px; padding: 0 6px; }
  
  .hero-service-selector-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 20px;
  }
  .hero-service-pill {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
  }
  
  .hero-trust-ribbon { margin-top: 28px; }
  .trust-logos-row { gap: 8px; justify-content: center; }
  .trust-logo-chip { font-size: 0.78rem; padding: 6px 12px; }

  .section-title-wrapper { margin-bottom: 32px; }
  .section-heading { font-size: 1.85rem; }
  .section-subheading { font-size: 0.92rem; }

  /* 3 Services Mobile Stacking */
  .services-grid, .three-active-services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    width: 100%;
  }
  .active-service-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .service-card h2 { font-size: 1.35rem; }
  .service-features-list { margin: 14px 0 20px; gap: 10px; }
  .card-price-row { padding: 10px 14px; margin-bottom: 16px; }

  /* Steps and Trust Grids */
  .steps-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .step-card { padding: 24px 18px; }
  .trust-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .trust-card { padding: 24px 18px; }
  
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  
  .nav-location-btn { display: none; }
  .nav-whatsapp-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .nav-wa-text { display: none; }
  .nav-whatsapp-btn span::after { content: "WhatsApp"; }

  .sticky-nav { display: none; }
  .sticky-location { margin-left: auto; font-size: 0.78rem; padding-left: 10px; }
  
  .modal {
    padding: 22px 18px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .brand-logo-container { padding: 5px 12px; }
  .brand-logo-img { height: 38px; max-width: 120px; }
  .hero-emblem-box { padding: 10px 20px; border-radius: 18px; }
  .hero-logo-img { height: 54px; }
  .active-service-card { padding: 20px 16px; }
  .hero-service-pill { padding: 12px 14px; }
  .pill-icon { font-size: 1.5rem; }
}

