:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #f43f5e;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s;
}

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #f0f1ff 0%, var(--light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: pulse 8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: var(--gray);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 20px 50px;
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-gray {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: #94a3b8;
}

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

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.8;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.content-block h3 {
  font-size: 1.6rem;
  margin: 35px 0 15px;
  color: var(--dark);
}

.content-block p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--gray);
}

.content-block ul {
  margin: 20px 0 30px 25px;
}

.content-block li {
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 1.05rem;
}

.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: ctaMove 30s linear infinite;
}

@keyframes ctaMove {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient);
  color: var(--white);
  padding: 18px 30px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section a {
  color: #94a3b8;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #334155;
  color: #64748b;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.card-image {
  height: 200px;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card-body {
  padding: 30px;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card-body p {
  color: var(--gray);
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  gap: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb span {
  color: var(--gray);
}

.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, #f0f1ff 0%, var(--light) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  animation: fadeInUp 0.6s ease-out;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--gray);
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 5px;
}

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

.pricing-card {
  background: var(--white);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.pricing-period {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--gray);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
}

.testimonial-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

.step-card {
  text-align: center;
  padding: 40px 30px;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 25px;
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.step-card p {
  color: var(--gray);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* codex-ui-fixes */
.logo,
.logo:hover,
.logo:focus,
.logo:active {
    text-decoration: none;
}

.menu-toggle,
.nav-toggle,
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover,
.nav-toggle:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
}

.menu-toggle:focus-visible,
.nav-toggle:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.menu-toggle i,
.nav-toggle i,
.mobile-menu-btn i,
.menu-toggle svg,
.nav-toggle svg,
.mobile-menu-btn svg {
    display: block;
    margin: 0 auto;
}

.menu-toggle span,
.nav-toggle span,
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding: 130px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .btn-large {
    padding: 16px 35px;
    font-size: 1rem;
  }
  
  .floating-btn {
    padding: 15px 25px;
    font-size: 0.9rem;
    bottom: 20px;
    right: 20px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}

.cta-box {
  background: var(--white);
  border-radius: 25px;
  padding: 50px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-top: 40px;
}

.cta-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-box p {
  color: var(--gray);
  margin-bottom: 25px;
}

.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.icon-list .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.icon-list h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.icon-list p {
  color: var(--gray);
  font-size: 0.95rem;
}

.alert-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
}

.alert-box.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left-color: #3b82f6;
}

.alert-box.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: #10b981;
}

.alert-box h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.alert-box p {
  color: var(--dark);
  font-size: 0.95rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #f8fafc;
}

.check-icon {
  color: #10b981;
  font-weight: bold;
}

.cross-icon {
  color: #ef4444;
  font-weight: bold;
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

