/* Base Styles & Variables */
:root {
  --primary: #251D3A;
  --secondary: #E04D01;
  --accent: #FF7700;
  --text-light: #ffffff;
  --text-muted: #B9B9B9;
  --bg-dark: #151022;
  --bg-card: #251D3A;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --glow: 0 0 15px rgba(224, 77, 1, 0.6);
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Page Wrapper with Animated Background */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.dot1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  animation: float 15s infinite alternate ease-in-out;
}

.dot2 {
  top: 60%;
  right: 10%;
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  animation: float 20s infinite alternate-reverse ease-in-out;
}

.dot3 {
  bottom: 10%;
  left: 30%;
  width: 250px;
  height: 250px;
  background-color: var(--accent);
  animation: float 17s infinite alternate ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1.5rem;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background-color: rgba(21, 16, 34, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-wrapper {
  margin-right: 12px;
}

.brand h1 {
  font-size: 1.6rem;
  margin: 0;
}

.brand h1 span {
  color: var(--secondary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 200;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem;
  position: relative;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Glitch Effect for Hero Title */
.glitch {
  position: relative;
  color: var(--text-light);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--secondary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  10% { clip: rect(112px, 9999px, 76px, 0); }
  20% { clip: rect(85px, 9999px, 77px, 0); }
  30% { clip: rect(149px, 9999px, 34px, 0); }
  40% { clip: rect(38px, 9999px, 92px, 0); }
  50% { clip: rect(102px, 9999px, 5px, 0); }
  60% { clip: rect(7px, 9999px, 122px, 0); }
  70% { clip: rect(94px, 9999px, 34px, 0); }
  80% { clip: rect(89px, 9999px, 73px, 0); }
  90% { clip: rect(37px, 9999px, 153px, 0); }
  100% { clip: rect(16px, 9999px, 42px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 119px, 0); }
  10% { clip: rect(79px, 9999px, 61px, 0); }
  20% { clip: rect(47px, 9999px, 21px, 0); }
  30% { clip: rect(70px, 9999px, 83px, 0); }
  40% { clip: rect(89px, 9999px, 6px, 0); }
  50% { clip: rect(32px, 9999px, 106px, 0); }
  60% { clip: rect(69px, 9999px, 16px, 0); }
  70% { clip: rect(57px, 9999px, 98px, 0); }
  80% { clip: rect(113px, 9999px, 75px, 0); }
  90% { clip: rect(46px, 9999px, 144px, 0); }
  100% { clip: rect(18px, 9999px, 94px, 0); }
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(224, 77, 1, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(224, 77, 1, 0.5);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-large {
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
}

.full-width {
  width: 100%;
  display: block;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  text-align: center;
}

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

.feature-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--secondary);
  transition: height 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  margin: 0 auto 1.5rem;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  background-color: rgba(37, 29, 58, 0.5);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
  text-align: center;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 2rem;
}

.quote::before,
.quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
  line-height: 0;
}

.quote::before {
  top: 15px;
  left: 0;
}

.quote::after {
  bottom: -10px;
  right: 0;
}

.author {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.rating {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  text-align: center;
}

.section-subtitle {
  max-width: 600px;
  margin: -1rem auto 3rem;
  color: var(--text-muted);
}

.price-card {
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.price-header {
  background: var(--gradient);
  padding: 2rem;
  color: var(--text-light);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price-features {
  list-style: none;
  padding: 2rem;
  text-align: left;
}

.price-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.price-card .btn {
  margin: 0 2rem 2rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--gradient);
  margin-top: 4rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background-color: var(--text-light);
  color: var(--secondary);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

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

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--secondary);
}

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .feature-grid,
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .main-nav ul.show {
    right: 0;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-around;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
