/* MailThreatZero Professional Styles */
/* Color Palette: Dark Slate, Emerald, Amber - NO BLUE OR PURPLE */

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

:root {
  --primary-dark: #1e293b;
  --primary-dark-light: #334155;
  --accent-emerald: #dc2626;
  --accent-emerald-light: #ef4444;
  --primary-green: #dc2626;
  --primary-green-light: #ef4444;
  --accent-orange: #f59e0b;
  --accent-orange-light: #fbbf24;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light-gray: #f8fafc;
  --bg-medium-gray: #e2e8f0;
  --border-gray: #cbd5e1;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  font-weight: 400;
  padding-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
}

/* Header & Navigation - Unique Design */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-light) 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-emerald);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Bottom Navigation Bar */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-light) 100%);
  padding: 0.45rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 999;
  border-top: 2px solid var(--accent-emerald);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
}

.logo::before {
  content: "";
  display: none;
}

/* Hide lightning bolt when logo has an image */
.logo:has(img)::before {
  display: none;
}

/* Remove any background from logo container */
.logo:has(img) {
  background: none !important;
}

.logo img {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  padding: 0;
  background: none !important;
}

/* Logo on dark header - NO filters, completely transparent */
header .logo img {
  background: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  /* Transparent PNG will display exactly as uploaded */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex: 1;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  display: block;
  transition: all 0.3s;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

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

.nav-bottom .btn-admin {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.3s;
}

.nav-bottom .btn-admin:hover {
  border-color: var(--accent-emerald);
  background: rgba(16,185,129,0.1);
  transform: translateY(-1px);
}

.nav-bottom .btn-demo {
  background: var(--accent-emerald);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.3s;
  border: 1.5px solid var(--accent-emerald);
}

.nav-bottom .btn-demo:hover {
  background: var(--accent-emerald-light);
  border-color: var(--accent-emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4,120,87,0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--hero-bg-color, #dc2626) 0%, var(--hero-bg-color-light, #ef4444) 100%);
  color: white;
  padding: 2rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-orange);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--accent-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.cta-button-secondary {
  background-color: transparent;
  border: 2px solid white;
  margin-left: 1rem;
}

.cta-button-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-emerald);
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--accent-emerald);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-emerald);
}

.feature-card p {
  color: var(--text-medium);
}

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

.pricing-card {
  background: white;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--border-gray);
}

.pricing-card.featured {
  border-color: var(--accent-orange);
  transform: scale(1.05);
  position: relative;
}

.pricing-card.featured::before {
  content: "POPULAR";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-orange);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pricing-tier {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-medium);
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  margin-top: 3rem;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: var(--accent-emerald);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.comparison-table th {
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table tbody tr:hover {
  background-color: var(--bg-light-gray);
}

.comparison-table .checkmark {
  color: var(--success);
  font-weight: bold;
  font-size: 1.3rem;
}

.comparison-table .xmark {
  color: var(--danger);
  font-weight: bold;
  font-size: 1.3rem;
}

.highlight-row {
  background-color: #fffbf0;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--accent-emerald);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
  /* Reduce padding throughout */
  body {
    padding-bottom: 4rem;
  }

  nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-bottom {
    padding: 0.5rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  footer {
    padding: 2rem 0 1rem;
  }

  /* Logo sizing */
  .logo img {
    height: 50px;
    max-width: 250px;
  }

  /* Navigation - Make it wrap better on mobile */
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    font-size: 0.75rem;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }

  /* Hero section */
  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  /* Section headings */
  section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  /* CTA buttons */
  .cta-button {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .cta-button-secondary {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75rem;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  /* Pricing cards */
  .pricing-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  /* Comparison table - Make scrollable on mobile */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  /* Contact page responsive */
  .contact-grid,
  section > .container > div[style*="grid-template-columns: 1fr 1fr"],
  section > .container > div[style*="grid-template-columns: repeat(auto-fit"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Bottom nav buttons */
  .nav-bottom .btn-admin,
  .nav-bottom .btn-demo {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  /* Responsive font sizes for inline styles */
  div[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
  }

  /* Pricing calculator padding */
  div[style*="padding: 2rem"],
  div[style*="padding: 1.5rem"] {
    padding: 1rem !important;
  }
}

/* Hero Carousel - Single Image */
.hero-carousel {
  margin-top: 0;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-single {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-single:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.carousel-image {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

/* Lightbox */
.carousel-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
  font-weight: 300;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 60px;
  padding: 20px 15px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10001;
  line-height: 1;
  font-weight: 300;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .hero-carousel {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .carousel-single {
    border-radius: 8px;
    max-width: 100%;
  }

  .carousel-image {
    max-height: 250px;
  }

  .lightbox-nav {
    font-size: 40px;
    padding: 15px 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
