/* ==========================================================================
   MODULUS WEB - Design System & Styling (BuyReach / Apprentice Aesthetic)
   Font: Della Respira & Plus Jakarta Sans
   Theme: Obsidian Dark, Gold Accents, Electric Cyan Highlights, Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Della+Respira&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --font-heading: 'Della Respira', serif;
  --font-body: 'Della Respira', serif;

  --bg-dark: #070A11;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-input: #0F172A;
  
  --color-gold: #FFD700;
  --color-gold-hover: #F59E0B;
  --color-gold-dim: rgba(255, 215, 0, 0.15);
  --color-gold-glow: rgba(255, 215, 0, 0.35);

  --color-cyan: #00F0FF;
  --color-cyan-dim: rgba(0, 240, 255, 0.12);
  --color-cyan-glow: rgba(0, 240, 255, 0.3);

  --color-purple: #A855F7;
  --color-green: #10B981;
  --color-red: #EF4444;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-sub: #64748B;

  --border-card: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(255, 215, 0, 0.3);
  --border-cyan: rgba(0, 240, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-gold: 0 0 25px rgba(255, 215, 0, 0.18);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.18);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Base Reset & Universal Della Respira Font Rule */
*, *::before, *::after, html, body, p, span, div, input, select, textarea, button, a, li, th, td {
  font-family: 'Della Respira', serif !important;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Della Respira', serif !important;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Lighting */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, rgba(7, 10, 17, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(7, 10, 17, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-heading, .brand-title, .nav-link, .card-title, .btn-heading {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.02em;
}

/* Gradient Text Utilities */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF099 0%, #FFD700 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan-gradient {
  background: linear-gradient(135deg, #70F3FF 0%, #00F0FF 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.modulus-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow-gold);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.58rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--color-gold);
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-actions .btn-modulus {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

/* Mobile Nav Actions - Hidden on Desktop */
.mobile-nav-actions {
  display: none !important;
}

/* Custom Buttons */
.btn-modulus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading) !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary-gold {
  background: linear-gradient(135deg, #FFD700 0%, #D97706 100%);
  color: #000000 !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #FFE033 0%, #F59E0B 100%);
}

.btn-outline-cyan {
  background: var(--color-cyan-dim);
  color: var(--color-cyan) !important;
  border-color: var(--border-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main) !important;
  border-color: var(--border-card);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Glassmorphism Cards */
.modulus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modulus-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow-gold);
}

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

/* Section Common Layout */
.section-wrapper {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5rem;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Live Signal Ticker / Demo Simulator */
.live-ticker-container {
  margin-top: 4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card), var(--shadow-glow-gold);
  text-align: left;
}

.ticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.ticker-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.signal-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.signal-item-row:hover {
  background: rgba(255, 215, 0, 0.06);
  border-color: var(--border-gold);
}

.priority-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.priority-low {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 4-Step Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.step-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-gold-dim);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

/* Intent Signals Grid & Filter Tabs */
.signal-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--color-gold-dim);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(17, 24, 39, 0.85) 100%);
  box-shadow: var(--shadow-glow-gold);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin: 1.25rem 0;
}

.price-val span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-check-list {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

/* Footer */
.modulus-footer {
  background: #04060A;
  border-top: 1px solid var(--border-card);
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

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

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0;
  max-width: 350px;
}

.footer-heading {
  font-size: 1rem;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--color-cyan);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-sub);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Hamburger Toggle Button */
.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-hamburger-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  box-shadow: var(--shadow-glow-gold);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .modulus-navbar {
    height: 70px;
  }

  .mobile-hamburger-btn {
    display: inline-flex;
  }

  .nav-links-menu {
    display: none;
  }

  .nav-links-menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 10, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    z-index: 1500;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), var(--shadow-glow-gold);
    animation: slideDownNav 0.3s ease-out;
  }

  .nav-links-menu.mobile-open .nav-link-item {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    width: 100%;
  }

  .nav-actions {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    width: 100%;
  }

  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-headline {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-wrapper {
    padding: 4rem 0;
  }

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

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.0rem;
  }

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

  .section-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  .signal-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .footer-content-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .live-ticker-container {
    padding: 1rem;
  }

  .ticker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive & Scrollable Modal Container */
.modulus-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  align-items: center;
  justify-content: center;
}

.modulus-modal-card {
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-glow-gold);
  animation: zoomInModal 0.25s ease-out;
}

.modulus-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modulus-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
}

@keyframes zoomInModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 576px) {
  .modulus-modal-card {
    padding: 1.5rem 1.15rem;
    max-height: 92vh;
  }
}

