/* AccessForge Marketing Site - Modern Dark Theme */
:root {
  --af-primary: #6366f1;
  --af-primary-light: #818cf8;
  --af-primary-dark: #4f46e5;
  --af-bg-dark: #0a0a0f;
  --af-bg-card: #111118;
  --af-bg-card-hover: #16161f;
  --af-border: rgba(255, 255, 255, 0.08);
  --af-border-light: rgba(255, 255, 255, 0.12);
  --af-text: #f1f5f9;
  --af-text-muted: #94a3b8;
  --af-text-dim: #64748b;
  --af-success: #10b981;
  --af-danger: #ef4444;
  --af-warning: #f59e0b;
  --af-gradient: linear-gradient(135deg, var(--af-primary) 0%, #8b5cf6 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--af-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--af-text);
  background: var(--af-bg-dark);
  min-height: 100vh;
}

a {
  color: var(--af-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--af-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--af-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--af-text);
}

.nav-brand:hover {
  color: var(--af-text);
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--af-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--af-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--af-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--af-text);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--af-primary);
  color: white !important;
  border-radius: 10px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--af-primary-dark);
  color: white;
}

.nav-app-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981 !important;
}

.nav-app-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
  color: #10b981;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--af-text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--af-primary-light);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--af-border-light);
  color: var(--af-text-muted);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--af-text) 0%, var(--af-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--af-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--af-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--af-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--af-text);
  border: 1px solid var(--af-border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--af-text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  padding: 16px 20px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--af-text-dim);
  margin-bottom: 4px;
}

.metric-value {
  font-weight: 600;
  color: var(--af-text);
}

/* Screenshot Panel */
.screenshot-panel {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--af-border);
  font-weight: 600;
  font-size: 0.9rem;
}

.screenshot-body {
  padding: 12px;
}

.screenshot-body img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.screenshot-body img:hover {
  opacity: 0.9;
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--af-bg-card);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--af-text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.card:hover {
  background: var(--af-bg-card-hover);
  border-color: var(--af-border-light);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--af-primary-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-text {
  color: var(--af-text-muted);
  font-size: 0.95rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Stack Diagram */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-item {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}

.stack-item-highlight {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.stack-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.stack-item-desc {
  font-size: 0.85rem;
  color: var(--af-text-muted);
}

.stack-arrow {
  text-align: center;
  color: var(--af-text-dim);
  font-size: 1.5rem;
}

/* Module Cards */
.module-card {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s;
}

.module-card:hover {
  background: var(--af-bg-card-hover);
  transform: translateX(4px);
}

.module-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--af-text-muted);
}

.module-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.module-badge-core {
  background: rgba(99, 102, 241, 0.15);
  color: var(--af-primary-light);
}

.module-badge-change {
  background: rgba(16, 185, 129, 0.15);
  color: var(--af-success);
}

.module-badge-risk {
  background: rgba(245, 158, 11, 0.15);
  color: var(--af-warning);
}

.module-badge-coverage {
  background: rgba(255, 255, 255, 0.08);
  color: var(--af-text-muted);
}

/* Callout */
.callout {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-left: 4px solid var(--af-primary);
  border-radius: 12px;
  padding: 20px 24px;
}

.callout-danger {
  border-left-color: var(--af-danger);
  background: rgba(239, 68, 68, 0.05);
}

.callout-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.callout-text {
  color: var(--af-text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--af-border);
}

.step:last-child {
  border-bottom: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--af-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.step-content p {
  color: var(--af-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Panel */
.contact-panel {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 20px;
  overflow: hidden;
}

.contact-header {
  padding: 24px;
  background: var(--af-gradient);
}

.contact-header h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.contact-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.contact-body {
  padding: 24px;
}

.contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

.contact-info {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--af-text-muted);
}

.contact-info a {
  display: block;
  margin-top: 8px;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--af-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--af-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--af-text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--af-text-muted);
}

.footer-tagline {
  color: var(--af-text-dim);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 50%;
  color: var(--af-text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: var(--af-bg-card-hover);
  transform: scale(1.1);
}

/* Page Header */
.page-header {
  padding: 140px 0 60px;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--af-text-muted);
  max-width: 700px;
  margin: 0;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* List Styles */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--af-text-muted);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--af-primary);
  border-radius: 50%;
}

/* Platform Notice */
.platform-notice {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 12px;
}

.platform-notice strong {
  color: var(--af-text);
}

.platform-notice p {
  margin: 0;
  color: var(--af-text-muted);
  font-size: 0.9rem;
}

/* Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-thumb {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.screenshot-thumb:hover {
  border-color: var(--af-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.screenshot-thumb-label {
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--af-border);
    padding: 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
