/* ═══════════════════════════════════════════
   AxLens — Page-Specific Styles
   ═══════════════════════════════════════════ */

/* ── Section Nav (index page jump nav) ────── */
.section-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: rgba(11,11,17,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid rgba(0,212,170,0.08);
  padding: 0;
  transition: background var(--transition);
}
[data-theme="light"] .section-nav {
  background: rgba(244,245,249,0.94);
  border-top-color: rgba(0,158,128,0.06);
}
.section-nav .container {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.section-nav .container::-webkit-scrollbar { display: none; }
.section-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  min-width: max-content;
  justify-content: center;
}
.section-nav-link {
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 20px;
  white-space: nowrap;
  transition: all 250ms ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.section-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border);
}
.section-nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  box-shadow: 0 0 10px rgba(0,212,170,0.08);
}


/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -180px; right: -120px;
  animation: float 20s ease-in-out infinite;
}
.hero::after {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,212,170,0.10), transparent 70%);
  bottom: -100px; left: -80px;
  animation: float 16s ease-in-out infinite reverse;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .text-accent { display: inline; }
.hero .hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge-coming-soon {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--warning); color: #0b0b11;
  padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}

/* ── Section Headings ─────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { margin-top: 12px; }

/* ── Feature Grid ─────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid .card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-grid .card .feature-text { font-size: 0.9rem; }
.feature-grid .card .feature-list {
  margin-top: 10px; margin-bottom: 10px;
}
.feature-grid .card .feature-list li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.feature-grid .card .feature-list li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent);
}

/* ── Drawbacks Section ────────────────────── */
.drawbacks-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.drawbacks-section h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.drawbacks-section .drawback-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.drawbacks-section .drawback-item:last-child { border-bottom: none; }
.drawback-item strong { color: var(--text-primary); }

/* ── Deep Dive / Accordion ────────────────── */
.deep-dive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dive-card { padding: 28px; }
.dive-card h4 { color: var(--accent); margin-bottom: 8px; font-size: 1rem; }
.dive-card p, .dive-card .dive-text { font-size: 0.875rem; }
.dive-card ul, .dive-card .dive-list { margin-top: 10px; }
.dive-card ul li, .dive-card .dive-list li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.dive-card ul li::before, .dive-card .dive-list li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent);
}

/* ── Shortcuts Table ──────────────────────── */
.shortcuts-section { max-width: 800px; margin: 0 auto; }

/* ── Auth Pages ───────────────────────────── */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-height)); padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  backdrop-filter: blur(20px);
}
.auth-card .auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-card .auth-logo img { width: 48px; height: 48px; border-radius: 10px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }
.auth-card .auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-secondary); }
.auth-card .auth-footer a { font-weight: 500; }

/* ── Multi-step Sign Up ───────────────────── */
.signup-card { max-width: 540px; }
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 32px;
}
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
  background: var(--bg-elevated); color: var(--text-tertiary);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.step-dot.active { background: var(--accent); color: #0b0b11; border-color: var(--accent); }
.step-dot.completed { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent); }
.step-line { width: 40px; height: 2px; background: var(--border); }
.step-line.active { background: var(--accent); }
.signup-step { display: none; animation: fadeIn 0.3s ease; }
.signup-step.active { display: block; }
.step-title { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); }
.step-actions { display: flex; gap: 12px; margin-top: 24px; }
.step-actions .btn { flex: 1; }
.password-strength {
  height: 4px; border-radius: 2px; background: var(--bg-elevated);
  margin-top: 6px; overflow: hidden;
}
.password-strength-bar {
  height: 100%; width: 0; border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

/* ── Profile Page ─────────────────────────── */
.profile-page { padding: 40px 24px; }
.profile-container { max-width: 640px; margin: 0 auto; }
.profile-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-subtle); border: 2px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.profile-header-info h1 { font-size: 1.5rem; margin-bottom: 2px; }
.profile-header-info p { font-size: 0.9rem; }
.profile-details { display: grid; gap: 16px; }
.profile-field {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; background: var(--bg-glass);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.profile-field .field-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-tertiary);
}
.profile-field .field-value { font-size: 0.95rem; color: var(--text-primary); }
.profile-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ── Edit Profile ─────────────────────────── */
.edit-profile-page { padding: 40px 24px; }
.edit-profile-container { max-width: 600px; margin: 0 auto; }
.edit-profile-container h1 { margin-bottom: 24px; }

/* ── Contact Page ─────────────────────────── */
.contact-page { padding: 60px 24px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 900px; margin: 0 auto; align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 16px; font-size: 0.95rem; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; font-size: 0.9rem; color: var(--text-secondary);
}
.contact-link .link-icon { color: var(--accent); font-size: 1.1rem; }

/* ── 404 Page ─────────────────────────────── */
.not-found-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-height)); text-align: center; padding: 40px 24px;
}
.not-found-content h1 {
  font-size: clamp(5rem, 15vw, 9rem); font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 16px;
  animation: glitch 3s infinite;
}
.not-found-content h2 { font-size: 1.4rem; margin-bottom: 12px; }
.not-found-content p { margin-bottom: 28px; }
@keyframes glitch {
  0%, 90%, 100% { text-shadow: none; filter: none; }
  92% { filter: hue-rotate(90deg); transform: translate(2px, -1px); }
  94% { filter: hue-rotate(-90deg); transform: translate(-2px, 1px); }
  96% { filter: none; transform: translate(1px, 2px); }
  98% { transform: translate(-1px, -2px); }
}

/* ── Getting Started Section (Install + Setup) */
.getting-started-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.getting-started-grid .card {
  padding: 32px;
}
.getting-started-grid .card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.getting-started-grid .card h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 12px;
  margin-top: 24px;
}
.getting-started-grid .card h4:first-of-type {
  margin-top: 0;
}

/* Numbered step lists */
.step-list {
  counter-reset: step-counter;
  padding: 0;
}
.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.step-list li code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Tip divider within setup tips card */
.tip-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Legal Pages (Privacy Policy, Terms) ──── */
.legal-page {
  padding: 60px 24px 80px;
}
.legal-container {
  max-width: 720px;
  margin: 0 auto;
}
.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}
.legal-header .legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-top: 8px;
}
.legal-body {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body h3 {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.legal-body ul, .legal-body ol {
  margin: 8px 0 16px;
  padding-left: 0;
}
.legal-body ul li, .legal-body ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.legal-body ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.legal-body ol {
  counter-reset: legal-counter;
}
.legal-body ol li {
  counter-increment: legal-counter;
}
.legal-body ol li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--accent-hover);
}
.legal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}
.legal-body .legal-highlight {
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Agreement Checkbox (Signup) ─────────── */
.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 4px;
  cursor: pointer;
}
.form-agreement input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border-hover);
  border-radius: 4px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 2px;
  position: relative;
}
.form-agreement input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-agreement input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #0b0b11;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-agreement input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-agreement input[type="checkbox"].error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-subtle);
}
.form-agreement .agreement-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.form-agreement .agreement-text a {
  font-weight: 500;
}

/* ── Responsive overrides for pages ───────── */
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .deep-dive-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .getting-started-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .auth-card { padding: 28px; }
  .profile-header { flex-direction: column; text-align: center; }
  .section-nav-list { justify-content: flex-start; padding: 8px 0; }
  .section-nav-link { font-size: 0.78rem; padding: 5px 12px; }
  /* Scroll-hint gradients for section nav on mobile */
  .section-nav .container::before,
  .section-nav .container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
  }
  .section-nav .container::before {
    left: 0;
    background: linear-gradient(to right, rgba(11,11,17,0.92), transparent);
  }
  .section-nav .container::after {
    right: 0;
    background: linear-gradient(to left, rgba(11,11,17,0.92), transparent);
  }
  [data-theme="light"] .section-nav .container::before {
    background: linear-gradient(to right, rgba(244,245,249,0.94), transparent);
  }
  [data-theme="light"] .section-nav .container::after {
    background: linear-gradient(to left, rgba(244,245,249,0.94), transparent);
  }
  .legal-body { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .signup-card { padding: 24px 18px; }
  .legal-body { padding: 24px 20px; border-radius: var(--radius-lg); }
}
