/* Landing Page Styles */
.landing-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 17, 23, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .landing-header {
  background: rgba(255, 255, 255, 0.85);
}
.landing-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-logo { display: flex; align-items: center; gap: 0.5rem; }
.landing-logo-icon {
  width: 32px; height: 32px; background: var(--accent); color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.landing-logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.landing-nav { display: flex; align-items: center; gap: 1.5rem; }
.landing-nav a {
  color: var(--text2); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.landing-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 8rem 2rem 4rem; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,140,255,0.08) 0%, transparent 60%);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
  background: rgba(79,140,255,0.1); border: 1px solid rgba(79,140,255,0.2);
  color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero-highlight { color: var(--accent); }
.hero-subtitle {
  font-size: 1.1rem; color: var(--text2); line-height: 1.65;
  max-width: 620px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; }

.btn-xl { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; font-weight: 600; }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; gap: 3rem; justify-content: center; }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 0.75rem; color: var(--text2); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Features */
.features { padding: 5rem 2rem; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem;
}
.section-desc {
  text-align: center; font-size: 1rem; color: var(--text2); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

/* How It Works */
.how-it-works { padding: 5rem 2rem; background: var(--surface); }
.hiw-inner { max-width: 900px; margin: 0 auto; }
.hiw-steps { display: flex; gap: 2rem; }
.hiw-step { flex: 1; text-align: center; }
.hiw-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.hiw-step h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.hiw-step p { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

/* CTA */
.cta-section {
  padding: 5rem 2rem; text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(79,140,255,0.06) 0%, transparent 60%);
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.cta-inner p { font-size: 1rem; color: var(--text2); margin-bottom: 2rem; }

/* Footer */
.landing-footer { padding: 3rem 2rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 4rem; padding-bottom: 2rem;
}
.footer-brand { flex: 2; }
.footer-brand p { font-size: 0.875rem; color: var(--text2); margin-top: 0.5rem; }
.footer-links { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); margin-bottom: 0.25rem; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 1.5rem 0; border-top: 1px solid var(--border); text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text2); }

/* Auth Modal */
.auth-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.auth-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.auth-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--text2); font-size: 1.5rem; cursor: pointer; line-height: 1;
  padding: 0.25rem; transition: color 0.2s;
}
.auth-close:hover { color: var(--text); }
.auth-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.auth-card h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.auth-switch {
  text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text2);
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

/* Access control section */
.access-control { margin-top: 1.5rem; padding: 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; }
.access-control h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.access-control .access-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.access-control .access-row:last-child { margin-bottom: 0; }
.access-control label.access-label { font-size: 0.8rem; color: var(--text2); font-weight: 500; display: block; margin-bottom: 0.35rem; }
.access-control .checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.access-control .checkbox-group label { font-size: 0.8rem; color: var(--text); display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .landing-nav a { display: none; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hiw-steps { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .auth-card { margin: 1rem; padding: 1.5rem; }
}
