/* ============================================
   ANVIL - Professional SaaS Product Page
   Ocean Blue, Gold & Bone White Theme
   ============================================ */

:root {
  /* Ocean Blue palette */
  --anvil-ocean-deep: #0D4F6B;
  --anvil-ocean: #1A7BA8;
  --anvil-ocean-light: #2A9FD6;
  --anvil-sky: #5BC0DE;
  
  /* Gold accents */
  --anvil-gold: #D4A03E;
  --anvil-gold-light: #E8C068;
  --anvil-gold-dark: #B8892E;
  
  /* Bone white backgrounds */
  --anvil-bone: #FAFAF8;
  --anvil-bone-alt: #F2F1ED;
  --anvil-white: #FFFFFF;
  
  /* Text */
  --anvil-text: #1A1A1A;
  --anvil-text-muted: #5A6570;
  
  /* Shadows */
  --anvil-shadow-sm: 0 2px 8px rgba(13, 79, 107, 0.08);
  --anvil-shadow-md: 0 8px 24px rgba(13, 79, 107, 0.1);
  --anvil-shadow-lg: 0 16px 48px rgba(13, 79, 107, 0.12);
  --anvil-shadow-xl: 0 24px 64px rgba(13, 79, 107, 0.15);
}

/* ============================================
   BASE OVERRIDES
   ============================================ */

body {
  background: var(--anvil-bone);
  overflow-x: hidden;
}

/* ============================================
   NAVBAR - Professional Gradient
   ============================================ */

body .navbar.bg-metal {
  background: linear-gradient(135deg, var(--anvil-ocean-deep) 0%, var(--anvil-ocean) 60%, var(--anvil-ocean-light) 100%);
  box-shadow: var(--anvil-shadow-md);
  position: relative;
  z-index: 1000;
}

body .navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

body .navbar .navbar-brand::before {
  background: var(--anvil-gold);
  box-shadow: 0 0 12px rgba(212, 160, 62, 0.4);
}

body .navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

body .navbar .nav-link:hover,
body .navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION - Premium Layout
   ============================================ */

.hero {
  background: linear-gradient(180deg, var(--anvil-white) 0%, var(--anvil-bone) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(26, 123, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 123, 168, 0.15), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--anvil-text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--anvil-ocean);
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--anvil-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Hero Feature List */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--anvil-text-muted);
}

.hero-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--anvil-gold), var(--anvil-gold-light));
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Hero Card */
.hero-card {
  background: var(--anvil-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--anvil-shadow-lg);
  border: 1px solid rgba(26, 123, 168, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--anvil-ocean), var(--anvil-gold));
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--anvil-ocean-deep), var(--anvil-ocean));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(13, 79, 107, 0.25);
}

.hero-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--anvil-ocean-deep);
  margin-bottom: 0.75rem;
}

.hero-card p {
  font-size: 0.95rem;
  color: var(--anvil-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--anvil-gold), var(--anvil-gold-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Redirect Note */
.redirect-note {
  font-size: 0.85rem;
  color: var(--anvil-text-muted);
  margin-top: 1.5rem;
  padding: 12px 16px;
  background: rgba(26, 123, 168, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--anvil-ocean);
}

.redirect-note a {
  color: var(--anvil-ocean);
  font-weight: 600;
}

/* ============================================
   BUTTONS - Premium Styling
   ============================================ */

.btn-neon {
  background: linear-gradient(135deg, var(--anvil-gold), var(--anvil-gold-light));
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(212, 160, 62, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 160, 62, 0.4);
  color: #fff;
}

.btn-outline-metal {
  background: transparent;
  color: var(--anvil-ocean);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  border: 2px solid var(--anvil-ocean);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-metal:hover {
  background: var(--anvil-ocean);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   SECTION TITLES - Modern Design
   ============================================ */

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--anvil-text);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--anvil-gold), var(--anvil-gold-light));
  border-radius: 2px;
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

/* ============================================
   FEATURE CARDS - Professional Grid
   ============================================ */

.feature-card {
  background: var(--anvil-white);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(26, 123, 168, 0.08);
  box-shadow: var(--anvil-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--anvil-ocean), var(--anvil-ocean-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--anvil-shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--anvil-ocean-deep);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--anvil-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   SCREENSHOT CARDS - Smaller, Professional
   ============================================ */

.screenshot-card {
  background: var(--anvil-white);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--anvil-shadow-md);
  border: 1px solid rgba(26, 123, 168, 0.08);
  transition: all 0.3s ease;
  max-width: 500px;
  margin: 0 auto;
}

.screenshot-card.spotlight {
  padding: 16px;
  max-width: 500px;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.screenshot-card a {
  display: block;
  cursor: zoom-in;
}

.screenshot-card a:hover img {
  transform: scale(1.02);
  opacity: 0.95;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--anvil-shadow-lg);
}

/* ============================================
   DARK SECTIONS
   ============================================ */

.bg-dark-section {
  background: var(--anvil-bone-alt);
  border-top: 1px solid rgba(26, 123, 168, 0.06);
  border-bottom: 1px solid rgba(26, 123, 168, 0.06);
}

.bg-dark-section .lead {
  color: var(--anvil-ocean-deep);
  font-weight: 600;
}

/* Feature Lists in Sections */
ul.muted {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

ul.muted li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--anvil-text-muted);
  font-size: 0.95rem;
}

ul.muted li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--anvil-gold), var(--anvil-gold-light));
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   TECH STACK - Modern Grid
   ============================================ */

.tech-section {
  background: var(--anvil-bone-alt);
  border-top: 1px solid rgba(26, 123, 168, 0.06);
  border-bottom: 1px solid rgba(26, 123, 168, 0.06);
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.tech-item {
  background: var(--anvil-white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(26, 123, 168, 0.08);
  box-shadow: var(--anvil-shadow-sm);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--anvil-shadow-md);
  border-color: var(--anvil-ocean-light);
}

.tech-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--anvil-ocean-deep);
  margin-bottom: 4px;
}

.tech-item span {
  font-size: 0.8rem;
  color: var(--anvil-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--anvil-bone-alt) 0%, var(--anvil-bone) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(26, 123, 168, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--anvil-text);
}

.cta-section .lead {
  color: var(--anvil-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--anvil-bone-alt);
  border-top: 1px solid rgba(26, 123, 168, 0.08);
  padding: 2rem 0;
}

.footer p {
  color: var(--anvil-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   ICON OVERRIDES
   ============================================ */

.icon-bg, .icon-bg.app-large {
  background: linear-gradient(135deg, var(--anvil-ocean-deep), var(--anvil-ocean));
  border: none;
  box-shadow: 0 8px 24px rgba(13, 79, 107, 0.3);
}

/* App Card Override */
.app-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.app-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.app-card-link:hover .app-card {
  transform: translateY(-4px);
  box-shadow: var(--anvil-shadow-xl);
}

.app-card {
  background: var(--anvil-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--anvil-shadow-lg);
  border: 1px solid rgba(26, 123, 168, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--anvil-ocean), var(--anvil-gold));
}

.app-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--anvil-ocean-deep);
}

/* ============================================
   UTILITIES
   ============================================ */

.muted,
p.muted {
  color: var(--anvil-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

section p.muted.mt-3 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-ocean {
  color: var(--anvil-ocean);
}

.text-gold {
  color: var(--anvil-gold);
}

/* Badge */
.badge-ghost {
  background: linear-gradient(135deg, var(--anvil-gold), var(--anvil-gold-light));
  box-shadow: 0 4px 12px rgba(212, 160, 62, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hero {
    padding: 60px 0 80px;
    text-align: center;
  }
  
  .hero-features {
    justify-content: center;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  
  .app-card {
    margin-top: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-title.text-start {
    text-align: center !important;
  }
  
  .section-title.text-start::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .screenshot-card {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-features {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .btn-neon, .btn-outline-metal {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   IMAGE MODAL
   ============================================ */

.image-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
  transform: scale(1);
}

.image-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.image-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.image-modal-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}
