:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --text-main: #000000;
  --text-muted: #475569;
  --accent-red: #f50202;
  --accent-red-hover: #cc0000;
  --accent-black: #000000;
  --border-color: #e2e8f0;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header Layout */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--accent-red);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.header-left, .header-right {
  flex: 1;
  display: flex;
}

.header-right {
  justify-content: flex-end;
  align-items: center;
}

.nav-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-brand img {
  height: 80px; /* Made logo bigger */
  transition: transform 0.3s ease;
}

/* Mobile Nav Drawer */
.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--accent-red);
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 1001;
}

.nav-links.open {
  right: 0;
}

.nav-links a {
  font-weight: 800;
  font-size: 2rem; /* Big white links */
  color: #ffffff;
  transition: opacity 0.2s;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--accent-black);
  cursor: pointer;
}

.menu-close {
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

.desktop-cta {
  display: none;
}

.mobile-cta {
  margin-top: auto;
  text-align: center;
  background: #000000;
}

.mobile-cta:hover {
  background: #333333;
}

@media (min-width: 768px) {
  .menu-toggle, .menu-close, .maple-leaf, .mobile-cta {
    display: none !important;
  }
  
  .desktop-cta {
    display: inline-block;
  }
  
  /* Reset Nav Links for Desktop */
  .nav-links {
    position: static;
    height: auto;
    width: auto;
    background: none;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    align-items: center;
    gap: 2rem;
    right: 0;
    max-width: none;
  }
  
  .nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 600;
  }

  .nav-links a:hover {
    color: var(--accent-red);
    opacity: 1;
  }
  
  .header-left, .header-right {
    display: none;
  }
  
  header {
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('/website/assets/hero-bg.jpg') center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-red);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
  color: #ffffff;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Feature Grid */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 30px -10px rgba(245, 2, 2, 0.2);
}

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

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-muted);
  display: none;
  animation: fadeIn 0.3s ease;
}

.faq-answer.active {
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Stats Banner */
.stats-banner {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 5rem 2rem;
}

.stats-banner .section-title {
  color: #ffffff;
  margin-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Centered Feature Grid */
.feature-card.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  fill: var(--accent-red);
}

.feature-icon-fa {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-red);
}

.feature-cta {
  display: inline-block;
  margin-top: 1.5rem;
}

/* Connectors Grid */
.grid-connectors {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.connector-card {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.connector-card .feature-icon-fa {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.connector-card .feature-title {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.bg-red {
  background-color: var(--accent-red);
  color: #ffffff;
}
.bg-red .section-title {
  color: #ffffff;
}

/* High-Contrast Centered Feature Cards for Red Section */
.bg-red .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .bg-red .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bg-red .feature-card {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-red .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bg-red .feature-card .feature-icon,
.bg-red .feature-card .feature-icon-fa {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  background: #fff1f2;
  border-radius: 50%;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  color: var(--accent-red);
  border: 1px solid rgba(245, 2, 2, 0.15);
  box-shadow: 0 4px 12px rgba(245, 2, 2, 0.08);
}

.bg-red .feature-card .feature-title {
  color: #0f172a !important;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.bg-red .feature-card .feature-desc {
  color: #475569 !important;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.bg-red .feature-card .feature-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  background: var(--accent-red);
  color: #ffffff;
  transition: all 0.2s ease;
}

.bg-red .feature-card .feature-cta:hover {
  background: var(--accent-black);
  transform: translateY(-2px);
}

/* Reusable Parallax CTA Component */
.parallax-cta {
  position: relative;
  height: 65vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Basic parallax for the background image */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Top Red Rule, Bottom Black Rule */
  border-top: 6px solid var(--accent-red);
  border-bottom: 6px solid #111;
  overflow: hidden;
  padding: 2rem;
  margin: 8rem 0;
}

.parallax-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* A semi-transparent overlay to ensure text is readable */
  background: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

.parallax-foreground {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  pointer-events: none;
  z-index: 2;
  /* Creates intersecting grid shapes that look like the background's red/black grid */
  background-image: 
    linear-gradient(45deg, var(--accent-red) 2px, transparent 2px),
    linear-gradient(-45deg, #111 2px, transparent 2px);
  background-size: 60px 60px;
  opacity: 0.15;
  transform: translateY(0);
}

.parallax-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 700px;
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 4rem 3rem;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parallax-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

/* Reusable Split Content Component */
.split-content {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  min-height: 400px;
  margin: 6rem auto;
  gap: 3rem;
  align-items: center;
  max-width: 1400px;
  padding: 0 1rem;
}
@media (min-width: 992px) {
  .split-content {
    flex-direction: row;
    gap: 6rem;
    padding: 0 4rem;
  }
  .split-reverse {
    flex-direction: row-reverse;
  }
}
.split-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 600px;
}
.split-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #111;
  line-height: 1.2;
}
.split-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.split-image {
  flex: 1;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 4px solid var(--accent-red);
  box-shadow: 20px 20px 0px #111;
  position: relative;
}

/* Pricing Banner Component */
.pricing-banner {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
  margin: 6rem 0;
  border-top: 6px solid #111;
  border-bottom: 6px solid var(--accent-red);
}
.pricing-container {
  max-width: 800px;
  margin: 0 auto;
}
.pricing-container h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 4rem;
  font-weight: 900;
  text-transform: uppercase;
}
.pricing-os-box {
  background: linear-gradient(135deg, #1f1f1f 0%, #000 100%);
  border: 2px solid var(--accent-red);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}
@media (min-width: 768px) {
  .pricing-os-box {
    flex-direction: row;
    align-items: center;
  }
}
.os-price-col {
  flex: 1;
  padding-right: 2rem;
}
@media (min-width: 768px) {
  .os-price-col {
    border-right: 1px solid #333;
  }
}
.os-features-col {
  flex: 2;
  padding-left: 0;
}
@media (min-width: 768px) {
  .os-features-col {
    padding-left: 2rem;
  }
}
.os-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 992px) {
  .os-features {
    grid-template-columns: 1fr 1fr;
  }
}
.os-features li {
  color: #ddd;
  font-size: 1.05rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.os-features li i {
  color: var(--accent-red);
  margin-top: 0.25rem;
}
.os-header {
  color: var(--accent-red);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.os-price {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
}
.os-desc {
  color: #aaa;
  font-size: 1.1rem;
}
.pricing-chart-container {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 2rem;
}
.pricing-chart-container h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 700;
}
.pricing-chart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #333;
}
.pricing-chart-row:last-child {
  border-bottom: none;
}
.tier-name {
  font-weight: 700;
  color: #fff;
  width: 25%;
  text-align: left;
  font-size: 1.2rem;
}
.tier-volume {
  color: #aaa;
  width: 45%;
  text-align: center;
}
.tier-rate {
  font-weight: 900;
  color: var(--accent-red);
  font-size: 1.4rem;
  width: 30%;
  text-align: right;
}
.rate-sub {
  font-size: 0.8rem;
  color: #777;
  display: block;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Interactive Cost Calculator
   ========================================================================== */
.calculator-box {
  background: #111;
  border: 2px solid var(--accent-red);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.calculator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}
.calculator-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}
.calculator-tag {
  background: rgba(245, 2, 2, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.slider-container {
  margin: 2.5rem 0;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.slider-value-display {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #333;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-red);
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-red);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 2, 2, 0.8);
  border: 2px solid #fff;
}
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #181818;
  border-radius: 8px;
  border: 1px solid #282828;
}
.calc-metric-label {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.calc-metric-val {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}
.calc-metric-val.highlight {
  color: var(--accent-red);
}
.calc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.btn-outline-light {
  padding: 0.85rem 1.75rem;
  border: 2px solid #555;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Bulldog OS Portal Showcase Mockup
   ========================================================================== */
.portal-showcase-section {
  padding: 6rem 2rem;
  background: #0d0d0d;
  color: #fff;
  text-align: center;
}
.portal-showcase-container {
  max-width: 1100px;
  margin: 0 auto;
}
.portal-showcase-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.portal-showcase-header p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 3rem;
}
.browser-mockup {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 3.5rem;
  text-align: left;
}
.browser-header {
  background: #2a2a2a;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid #333;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.browser-url-bar {
  flex: 1;
  background: #181818;
  color: #888;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-tabs {
  display: flex;
  background: #1f1f1f;
  border-bottom: 1px solid #333;
}
.browser-tab-btn {
  padding: 0.85rem 1.5rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.browser-tab-btn:hover {
  color: #fff;
}
.browser-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-red);
  background: #141414;
}
.browser-screen {
  background: #000;
  position: relative;
  min-height: 400px;
}
.browser-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.portal-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: left;
}
.pillar-card {
  background: #161616;
  border: 1px solid #282828;
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
}
.pillar-icon {
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}
.pillar-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pillar-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

