/* =============================================
   AccessPatch — Main Stylesheet
   ============================================= */

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

:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --bg-3: #111128;
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --white: #ffffff;
  --gray-1: #f8fafc;
  --gray-2: #e2e8f0;
  --gray-3: #94a3b8;
  --gray-4: #475569;
  --gray-5: #1e293b;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 60px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.logo-icon { font-size: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-3);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--border); }
.btn-primary {
  padding: 8px 18px;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-mobile-btn { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  top: -200px; left: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-3);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--white); }

/* Code Block */
.hero-code-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto 40px;
  overflow: hidden;
  text-align: left;
  position: relative;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #22c55e; }
.code-label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--gray-4);
  font-family: 'Inter', sans-serif;
}
.code-content {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}
.code-tag { color: #7dd3fc; }
.code-attr { color: #86efac; }
.code-val { color: #fbbf24; }
.copy-btn {
  position: absolute;
  top: 48px;
  right: 16px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: var(--blue-dark); }

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59,130,246,0.5); }
.btn-arrow { transition: transform 0.2s; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-hero-ghost {
  padding: 14px 28px;
  border: 1px solid var(--border);
  color: var(--gray-2);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-hero-ghost:hover { background: var(--border); color: white; }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--gray-3); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- Warning Section ---- */
.warning-section {
  padding: 32px 0;
  background: rgba(239,68,68,0.04);
  border-top: 1px solid rgba(239,68,68,0.15);
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.warning-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.warning-icon { font-size: 32px; flex-shrink: 0; }
.warning-content { flex: 1; min-width: 280px; }
.warning-content h3 { font-size: 18px; margin-bottom: 6px; color: #fca5a5; }
.warning-content p { font-size: 14px; color: var(--gray-3); }
.warning-content strong { color: var(--white); }
.btn-warning {
  padding: 12px 24px;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-warning:hover { background: rgba(239,68,68,0.35); }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

/* ---- Steps ---- */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.step-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--gray-3); line-height: 1.6; }
.step-card code {
  background: rgba(59,130,246,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #93c5fd;
}
.step-connector {
  font-size: 24px;
  color: var(--gray-4);
  flex-shrink: 0;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-large { grid-column: span 1; }
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-3); line-height: 1.6; }
.feature-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 13px; color: var(--gray-2); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(59,130,246,0.08), var(--bg-2));
  box-shadow: 0 0 50px rgba(59,130,246,0.15);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--gray-3); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.plan-price {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.price-currency { font-size: 24px; margin-top: 10px; color: var(--gray-3); }
.price-period { font-size: 16px; font-weight: 500; color: var(--gray-3); align-self: flex-end; margin-bottom: 8px; }
.plan-desc { font-size: 14px; color: var(--gray-3); margin-bottom: 24px; line-height: 1.5; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plan-features li { font-size: 14px; color: var(--gray-2); }
.btn-plan {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-plan:hover { background: var(--border); }
.btn-plan-featured {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-plan-featured:hover { background: var(--blue-dark) !important; }
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-3);
  margin-top: 32px;
}
.pricing-note strong { color: var(--white); }

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.faq-item p { font-size: 14px; color: var(--gray-3); line-height: 1.6; }

/* ---- CTA Section ---- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.cta-section p { font-size: 18px; color: var(--gray-3); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.cta-note { font-size: 14px; color: var(--gray-4); }

/* ---- Footer ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 64px; padding-bottom: 64px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--gray-3); max-width: 280px; margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--gray-4); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p { font-size: 12px; color: var(--gray-4); text-align: center; }

/* ---- Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .step-connector { display: none; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; margin-left: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
}
