* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  overflow-x: hidden;
  background: #000;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(255, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Hide navbar when scrolling down */
.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 185px; /* bigger logo on desktop */
  width: auto;
  display: block;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #ff0000;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  font-size: 0.95rem;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.6);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #ff0000;
}

/* Hero Section */
.hero {
  margin-top: 70px;
  min-height: 100vh;
  background: linear-gradient(135deg, #000 0%, #1a0000 50%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 0, 0, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 255, 136, 0.12) 0%,
      transparent 55%
    );
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title {
  font-size: 3.6rem;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 40%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: #ccc;
}

.hero-subtitle2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 40%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
  text-align: center;
}

.hero-note {
  margin-top: 24px;
  color: #999;
  font-size: 0.95rem;
}

.hero-features-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-feature {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 34px;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid #00ff88;
}

.btn-secondary:hover {
  background: #00ff88;
  color: #000;
}

.btn-outline {
  background: transparent;
  color: #ff0000;
  border: 2px solid #ff0000;
}

.btn-outline:hover {
  background: #ff0000;
  color: white;
}

.btn-large {
  width: 100%;
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-view {
  background: rgba(255, 0, 0, 0.9);
  color: white;
  margin-bottom: 8px;
}

.btn-select {
  background: rgba(0, 255, 136, 0.95);
  color: #000;
  font-weight: 800;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #ff0000 0%, #000 100%);
  padding: 50px 20px;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #00ff88;
  margin-bottom: 8px;
}
/* target just that last stat, or add a special class instead */
.stat-item:last-child .stat-number::after {
  content: "/7";
}

.stat-label {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff0000 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 50px;
}

.section-subtitle-left {
  text-align: left;
}

/* Templates Layout */
.templates {
  padding: 90px 20px;
  background: #050505;
}

.templates-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Sidebar */
.templates-sidebar {
  flex: 0 0 260px;
  background: #0a0a0a;
  border-radius: 20px;
  border: 1px solid #222;
  padding: 24px 20px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.templates-sidebar-header {
  margin-bottom: 18px;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar-subtitle {
  font-size: 0.9rem;
  color: #aaa;
}

.sidebar-label {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff6b6b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.templates-sidebar-footnote {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #888;
}

/* Filters */
.filter-btn {
  padding: 10px 14px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  color: #ff0000;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  text-align: left;
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff0000;
  color: white;
}

/* Templates Main */
.templates-main {
  flex: 1;
}

.templates-main-header {
  margin-bottom: 32px;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.template-card {
  background: #101010;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #222;
  position: relative;
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: #ff0000;
  box-shadow: 0 18px 40px rgba(255, 0, 0, 0.3);
}

.template-card.featured {
  border: 2px solid #00ff88;
}

.template-card.coming-soon {
  opacity: 0.8;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  color: white;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.template-card.featured .badge {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
}

.template-preview {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #2b0000, #050505);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.preview-icon {
  font-size: 3.2rem;
}

.preview-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-info {
  padding: 24px 22px 26px;
}

.template-info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 800;
}

.template-info p {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.template-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #ff0000;
}

/* Services Section */
.services {
  padding: 90px 20px;
  background: #000;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.service-card {
  background: #101010;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid #222;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: #ff0000;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(255, 0, 0, 0.3);
}

.service-card.featured {
  border: 2px solid #00ff88;
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 800;
}

.service-card > p {
  color: #bbb;
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: 0.98rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 8px 0;
  color: #ccc;
  border-bottom: 1px solid #222;
  font-size: 0.95rem;
}

/* Features / Engineering Section */
.features {
  padding: 90px 20px;
  background: #050505;
}

/* Products & Services layout inside Features section */
.ps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-bottom: 50px;
}

.ps-column {
  background: #101010;
  border-radius: 20px;
  border: 1px solid #222;
  padding: 26px 24px;
}

.ps-heading {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.ps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-item-title {
  display: block;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.ps-item-desc {
  font-size: 0.93rem;
  color: #b5b5b5;
  line-height: 1.7;
}

/* Subheading above the existing feature cards */
.features-subheading {
  margin-bottom: 24px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-align: left;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 24px 22px;
  background: #101010;
  border-radius: 16px;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #ff0000;
  transform: translateY(-4px) scale(1.02);
}

.feature-icon {
  font-size: 2.7rem;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-item p {
  color: #aaa;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
  padding: 90px 20px;
  background: #000;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 48px;
}

.pricing-card {
  background: #101010;
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid #222;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: #ff0000;
  transform: translateY(-4px) scale(1.02);
}

.pricing-card.featured {
  border: 2px solid #00ff88;
  transform: translateY(-6px) scale(1.03);
}

.pricing-card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 800;
}

.price-container {
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ff0000;
}

.period {
  font-size: 1rem;
  color: #999;
}

.build-fee {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 4px;
}

.plan-description {
  color: #bbb;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  color: #ccc;
  border-bottom: 1px solid #222;
  font-size: 0.95rem;
}

.pricing-note {
  text-align: center;
  background: #101010;
  padding: 22px;
  border-radius: 15px;
  border: 1px solid #222;
}

.pricing-note p {
  color: #aaa;
  font-size: 1.58rem;
  margin: 6px 0;
}

/* Testimonials Section */
.testimonials {
  padding: 90px 20px;
  background: #050505;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #101010;
  padding: 30px 26px;
  border-radius: 18px;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: #ff0000;
  transform: translateY(-4px);
}

.stars {
  color: #ffa500;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  font-size: 0.98rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-initial {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
}

.author-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.author-company {
  color: #999;
  font-size: 0.9rem;
}

/* Contact/CTA Section */
.contact-cta {
  padding: 90px 20px;
  background: #000;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.contact-form {
  background: #101010;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid #222;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 18px;
  background: #050505;
  border: 1px solid #222;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff0000;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  background: #101010;
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid #222;
  text-align: center;
}

.contact-icon {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-card p {
  color: #aaa;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #000;
  color: white;
  padding: 50px 20px 26px;
  border-top: 2px solid #ff0000;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  max-width: 1400px;
  margin-inline: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-section h4 {
  color: #ff6b6b;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-section p {
  color: #999;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #999;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  font-size: 0.93rem;
}

.footer-section ul li a:hover {
  color: #ff0000;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
  color: #666;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 4px 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .templates-layout {
    flex-direction: column;
  }

  .templates-sidebar {
    position: static;
    width: 100%;
  }

  .ps-layout {
    grid-template-columns: 1fr;
  }
}

/* MOBILE TWEAKS */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 16px 20px 20px;
    box-shadow: 0 5px 10px rgba(255, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .cta-btn {
    display: none;
  }

  /* shrink logo + header on mobile so it doesn't overlap */
  .navbar {
    padding: 4px 10px;
  }

  .nav-container {
    padding: 0 4px;
  }

  .logo-img {
    height: 110px;
  }

  .hero {
    margin-top: 110px; /* more space so hero isn't hidden under fixed nav */
    padding-top: 90px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .templates-sidebar {
    top: auto;
  }

  .template-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .pricing-card.featured {
    transform: translateY(0) scale(1);
  }
}

/* EXTRA SMALL SCREENS */
@media (max-width: 480px) {
  .logo-img {
    height: 90px;
  }

  .hero {
    margin-top: 100px;
    padding-top: 80px;
  }

  .hero-title {
    font-size: 2rem;
  }
}
