/* ---------- Reset & Base ---------- */
:root{
  /* Existing colors */
  --focus-ring: #7c3aed80;
  --focus-ring-offset: 3px;
  --bg1: #0f1b4c;
  --bg2: #3b2bd6;
  --accent: #7c3aed;
  --muted: #94a3b8;
  --card-bg: #ffffff;
  --text-dark: #0b1220;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg,var(--bg1),var(--bg2));
  color: #0b1220;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* ---------- Utility ---------- */
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.small{max-width:720px;margin:0 auto}

/* Accessibility Enhancements */
.skip-to-main {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-to-main:focus {
  top: 0;
}

/* Enhanced focus states */
:focus-visible {
  outline: var(--focus-ring-offset) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 4px;
}

/* Remove focus ring from elements that already have strong focus styles */
.btn:focus-visible,
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring-offset) var(--focus-ring);
}
/* simple utility to hide elements (used for mobile nav toggling) */
.hidden{display:none !important}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:80;background:linear-gradient(180deg, rgba(15,27,76,0.12), rgba(15,27,76,0.06));backdrop-filter: blur(6px);padding:12px 0}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand a{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700}
.logo-dot{width:12px;height:12px;background:linear-gradient(90deg,#ffcc66,#ff7ab6);border-radius:50%;display:inline-block;box-shadow:0 6px 18px rgba(124,58,237,0.35)}
.nav{display:flex;gap:18px}
.nav-link{color:rgba(255,255,255,0.9);text-decoration:none;padding:8px;border-radius:6px;font-weight:500}
.nav-link:hover{background:rgba(255,255,255,0.06)}
.header-actions{display:flex;align-items:center;gap:10px}
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  font-weight:600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.sent {
  background: linear-gradient(90deg,#10b981,#059669);
  transform: scale(0.98);
}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,0.12)}
.btn-primary{background:linear-gradient(90deg,var(--accent),#5b21b6);color:#fff;box-shadow:0 8px 24px rgba(92,33,171,0.18)}
.btn-outline{background:transparent;border:1px solid rgba(255,255,255,0.18);color:#fff;padding:10px 14px;border-radius:10px}
.hide-md{display:inline-block}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:22px}

/* ---------- Hero ---------- */
.hero{padding:48px 0 28px}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center}
.hero-left{color:#fff}
.hero-title{font-size:clamp(28px,4vw,44px);margin:0 0 12px;line-height:1.02}
.hero-sub{color:rgba(255,255,255,0.85);margin-bottom:18px}
.hero-ctas{display:flex;gap:12px;margin-bottom:16px}
.hero-features{display:flex;gap:12px;color:rgba(255,255,255,0.85);list-style:none;padding:0;margin:12px 0 0}

/* ---------- Dashboard Card ---------- */
.dashboard-card{
  background:var(--card-bg);
  border-radius:18px;
  padding:20px;
  width:100%;
  max-width:420px;
  box-shadow:0 20px 40px rgba(2,6,23,0.35);
  color:var(--text-dark);
  border:1px solid rgba(12,17,26,0.06);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateZ(10px) rotateX(2deg) rotateY(-2deg);
}

/* Loading state animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading {
  background: linear-gradient(90deg, 
    var(--card-bg) 0%, 
    rgba(255,255,255,0.8) 50%, 
    var(--card-bg) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.dash-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.muted{color:var(--muted)}
.badge{background:linear-gradient(90deg,#fde68a,#fca5a5);padding:6px 10px;border-radius:999px;font-weight:700;font-size:13px}
.dash-stats{display:flex;gap:12px;justify-content:space-between;margin-bottom:14px}
.stat{flex:1;background:linear-gradient(180deg, #f8fafc, #ffffff);padding:12px;border-radius:12px;border:1px solid rgba(12,17,26,0.04)}
.stat-label{color:var(--muted);font-size:13px;margin-bottom:6px}
.stat-value{font-size:20px;font-weight:700;color:var(--bg1);margin-bottom:4px}
.stat-small{font-size:12px;color:var(--muted)}
.dash-chart{padding:6px 2px;margin:6px 0}
.chart-bars{display:flex;align-items:flex-end;gap:8px;height:86px;padding:6px}
.chart-bars .bar{flex:1;border-radius:8px;background:linear-gradient(180deg,#7c3aed,#5b21b6);height:8%;transition:height 800ms cubic-bezier(.2,.9,.2,1);box-shadow:0 8px 20px rgba(92,33,171,0.14)}
.dash-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--muted);font-size:13px}
.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}
.status-dot.online{background:linear-gradient(90deg,#34d399,#10b981)}

/* ---------- Sections & Cards ---------- */
.section{
  padding:48px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child animations */
.section.visible .feature-card,
.section.visible .price-card,
.section.visible .faq-item {
  animation: slideUpFade 0.6s ease forwards;
  opacity: 0;
}

.section.visible .feature-card:nth-child(2),
.section.visible .price-card:nth-child(2),
.section.visible .faq-item:nth-child(2) {
  animation-delay: 0.2s;
}

.section.visible .feature-card:nth-child(3),
.section.visible .price-card:nth-child(3),
.section.visible .faq-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section.alt{background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));border-top-left-radius:18px;border-top-right-radius:18px;margin-top:36px}
.section-title{font-size:22px;margin-bottom:8px;color:#fff}
.section-sub{color:rgba(255,255,255,0.85);margin-bottom:18px}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px}
.feature-card{
  background:rgba(255,255,255,0.95);
  padding:18px;
  border-radius:12px;
  color:#0b1220;
  box-shadow:0 10px 24px rgba(2,6,23,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:0 12px 28px rgba(2,6,23,0.15);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.98) 100%
  );
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, rgba(124,58,237,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.feature-card:hover::before {
  opacity: 1;
}

/* ---------- Pricing ---------- */
.pricing-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.billing-toggle{display:flex;align-items:center;gap:10px;color:var(--muted)}
.switch{position:relative;display:inline-block;width:46px;height:26px}
.switch input{display:none}
.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.18);border-radius:34px;transition:0.25s}
.slider:before{content:"";position:absolute;height:20px;width:20px;left:3px;top:3px;background:white;border-radius:50%;transition:0.25s;box-shadow:0 6px 12px rgba(0,0,0,0.12)}
.switch input:checked + .slider{background:linear-gradient(90deg,var(--accent),#5b21b6)}
.switch input:checked + .slider:before{transform:translateX(20px)}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.price-card{
  background:rgba(255,255,255,0.95);
  padding:20px;
  border-radius:12px;
  color:var(--text-dark);
  position:relative;
  box-shadow:0 12px 28px rgba(2,6,23,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow:0 16px 32px rgba(2,6,23,0.12);
}
.price-card.featured{transform:translateY(-8px);border:1px solid rgba(0,0,0,0.04)}
.ribbon{position:absolute;left:12px;top:-10px;background:#f97316;color:#fff;padding:6px 10px;border-radius:8px;font-weight:700;font-size:12px}
.price-amount{
  font-size:28px;
  font-weight:800;
  margin:12px 0;
  position: relative;
}

@keyframes priceUpdate {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.price-amount.updating {
  animation: priceUpdate 0.6s ease;
}
.currency{font-size:14px;font-weight:600;margin-right:6px;color:var(--muted)}
.price-features{
  list-style:none;
  padding:0;
  margin:12px 0 18px;
  color:var(--muted);
}

.price-features li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.feature-check, .feature-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 12px;
}

.feature-check {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.feature-x {
  background: rgba(255,255,255,0.1);
  color: var(--muted);
}
.fullwidth{width:100%}

/* ---------- Trusted By Section ---------- */
.trusted-by {
  background: rgba(255,255,255,0.02);
  padding: 32px 0;
}

.trusted-by-title {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.logo-item {
  width: 160px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.company-logo {
  width: 100%;
  height: auto;
}

.company-logo text {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonial-wrap{margin-top:18px;background:rgba(255,255,255,0.03);padding:18px;border-radius:12px;display:flex;align-items:center;gap:12px}
.testimonial{flex:1;color:#fff}
.testimonial .quote{font-size:16px;margin-bottom:8px}
.author{color:var(--muted);font-weight:600}
.test-controls{display:flex;gap:6px}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  list-style: none;
  color: var(--text-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px;
  margin: 0;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.faq-item[open] p {
  max-height: 200px;
  padding: 0 20px 20px;
}

.faq-item summary {
  transition: background-color 0.3s ease;
}

.faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Contact ---------- */
.contact-form{margin-top:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-grid textarea{grid-column:1/3}
input[type="text"],input[type="email"],textarea{
  width:100%;padding:12px;border-radius:10px;border:1px solid rgba(2,6,23,0.06);font-size:14px
}
.form-actions{display:flex;align-items:center;gap:12px;margin-top:10px}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ---------- Footer ---------- */
.site-footer{padding:48px 0 18px;color:rgba(255,255,255,0.8);margin-top:28px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;margin-top:32px;padding-top:24px;border-top:1px solid rgba(255,255,255,0.1)}
.footer-links a{color:rgba(255,255,255,0.7);text-decoration:none;margin-left:12px}

.newsletter-section {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-section h3 {
  color: white;
  margin: 0 0 8px;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}

.newsletter-input-group input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
}

.newsletter-input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-note {
  font-size: 13px;
  opacity: 0.7;
}

.newsletter-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.newsletter-success.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes successCheck {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-icon {
  color: #10b981;
  font-size: 24px;
  animation: successCheck 0.5s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr 360px}
  .nav{display:none}
  .menu-toggle{display:inline-block}
  .hide-md{display:none}
  .pricing-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .hero-grid{grid-template-columns:1fr;gap:20px}
  .dashboard-card{max-width:100%}
  .header-inner{gap:10px}
  .logo-dot{width:10px;height:10px}
  .section{padding:28px 0}
}
