:root {
  --primary-color: #6366f1;
  --secondary-color: #a855f7;
  --background-dark: #0f172a;
  --surface-dark: rgba(30, 41, 59, 0.7);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --error-color: #ef4444;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --header-bg: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] {
  --primary-color: #4f46e5;
  --secondary-color: #9333ea;
  --background-dark: #f8fafc;
  --surface-dark: rgba(255, 255, 255, 0.7);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --header-bg: rgba(248, 250, 252, 0.8);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Background Gradients & Effects */
.bg-gradient-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.shape-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  color: #fff;
}

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: var(--surface-dark);
}

/* Sections */
section {
  padding: 60px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-title {
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #a5b4fc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(to right, #0f172a, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.audit-form {
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
}

.input-group {
  display: flex;
  background: var(--surface-dark);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 20px;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
}

.url-input::placeholder {
  color: var(--text-secondary);
}

.audit-btn {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.badge i {
  color: var(--success-color);
}

/* Demo Report Image */
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: var(--glass-border);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.hero-mockup img {
  width: 100%;
  display: block;
}

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

.feature-card {
  background: var(--surface-dark);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* How It Works */
.steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--background-dark);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  color: var(--primary-color);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 200px;
  margin: 0 auto;
}

/* Pricing / Free Plan */
.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-dark) 0%, rgba(15, 23, 42, 0.4) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

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

.pricing-features li i {
  color: var(--success-color);
}

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

.faq-item {
  background: var(--surface-dark);
  border: var(--glass-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-q {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-a {
  padding: 0 20px 20px;
  max-height: 300px;
}

.faq-item.active .faq-q i {
  transform: rotate(180deg);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
  text-align: center;
  padding: 60px 20px;
}

/* Footer */
footer {
  background: var(--surface-dark);
  padding: 50px 0 20px;
  border-top: var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Dashboard Report Loading / UI */
#report-container {
  display: none;
  min-height: 100vh;
  background: var(--background-dark);
  padding-top: 80px;
}

.loading-screen {
  text-align: center;
  padding: 50px 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.progress-wrap {
  width: 100%;
  max-width: 500px;
  height: 8px;
  background: var(--surface-dark);
  border-radius: 4px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.3s ease;
}

/* Dashboard Layout */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: var(--surface-dark);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.action-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.score-card {
  background: var(--surface-dark);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--success-color) 0%, var(--surface-dark) 0%);
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  background: var(--background-dark);
  border-radius: 50%;
}

.score-value {
  position: relative;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.score-value span {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 150px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-val-good { color: var(--success-color); }
.stat-val-warn { color: var(--warning-color); }
.stat-val-err { color: var(--error-color); }

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.result-card {
  background: var(--surface-dark);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-left: 4px solid var(--text-secondary);
}

.result-card.status-good { border-left-color: var(--success-color); }
.result-card.status-warning { border-left-color: var(--warning-color); }
.result-card.status-error { border-left-color: var(--error-color); }

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.status-good .result-icon { background: rgba(34, 197, 94, 0.1); color: var(--success-color); }
.status-warning .result-icon { background: rgba(234, 179, 8, 0.1); color: var(--warning-color); }
.status-error .result-icon { background: rgba(239, 68, 68, 0.1); color: var(--error-color); }

.result-content {
  flex: 1;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.result-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.result-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-good .result-badge { background: var(--success-color); color: #fff; }
.status-warning .result-badge { background: var(--warning-color); color: #000; }
.status-error .result-badge { background: var(--error-color); color: #fff; }

.result-value {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.result-recommendation {
  color: var(--text-secondary);
  font-size: 0.95rem;
  background: rgba(0,0,0,0.1);
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}

.status-error .result-recommendation, .status-warning .result-recommendation {
  display: block;
}

/* Print Styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, .hero, #main-content .sections, footer {
    display: none !important;
  }
  #report-container {
    display: block !important;
    padding-top: 0;
  }
  .dashboard-actions {
    display: none;
  }
  .score-card, .result-card {
    background: none;
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 3rem; }
  .steps-container { flex-direction: column; gap: 40px; }
  .steps-container::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .input-group { flex-direction: column; background: transparent; box-shadow: none; border: none; }
  .url-input { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; background: var(--surface-dark); }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .nav-menu { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .score-circle { width: 150px; height: 150px; }
  .score-circle::before { width: 130px; height: 130px; }
  .score-value { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
