:root {
  /* Obsidian & Electric Indigo B2B Palette */
  --bg-main: #0A0D14;
  --bg-card: #111520;
  --bg-card-hover: #161C2C;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.5);
  
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-glow: rgba(79, 70, 229, 0.3);
  
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.15);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --focus-ring: #6366F1;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
}

/* WCAG Accessible Keyboard Focus Rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hidden fully above viewport (-100px) so no top-left purple line appears */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Glassmorphic Sticky Navbar */
.navbar {
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
}

/* B2B Buttons & Hover Effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 100px 20px 80px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818CF8;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trust-signals {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

/* Premium Glass Cards (Audit, How It Works, Features, Pricing) */
.audit-section,
.how-it-works,
.features,
.faq-section {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.audit-section {
  max-width: 960px;
}

.audit-card,
.step-card,
.feature-card,
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.audit-card:hover,
.step-card:hover,
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.audit-header {
  margin-bottom: 22px;
}

.audit-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 260px;
}

.audit-form input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-form input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.audit-result {
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.audit-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 20px;
  border-radius: var(--radius);
  color: #FCA5A5;
}

.error-list {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.code-preview {
  background: #06080D;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  font-family: 'ui-monospace', 'SFMono-Regular', monospace;
  color: #34D399;
  font-size: 0.82rem;
  overflow-x: auto;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.badge-success {
  background: #064E1C;
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.audit-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Grids & Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #818CF8;
  margin-bottom: 12px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Pricing Card */
.pricing {
  max-width: 480px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.pricing-card {
  text-align: center;
  border-color: rgba(99, 102, 241, 0.35);
}

.badge-green {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.price {
  margin: 20px 0 6px;
}

.price .amount {
  font-size: 3.6rem;
  font-weight: 800;
  color: #FFFFFF;
}

.price .period {
  color: var(--text-muted);
}

.trial-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.pricing-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #CBD5E1;
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: bold;
  color: #818CF8;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  background: rgba(10, 13, 20, 0.95);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.link-btn:hover,
.footer-links a:hover {
  color: #FFFFFF;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

/* Accessible Legal Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #FFFFFF;
}

.legal-body {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-body h3 {
  color: #FFFFFF;
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.3rem; }
  .audit-form { flex-direction: column; }
  .nav-links { display: none; }
  .footer-content { flex-direction: column; text-align: center; }
}