/* ══════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Landing Nav ───────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 6, 12, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-1);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: 20%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.15), transparent 70%);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  top: 30%;
  right: 10%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.10), transparent 70%);
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  bottom: 0;
  left: 40%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08), transparent 70%);
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Hero Preview Window ───────────────────────────────── */
.preview-window {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 92, 252, 0.08);
  animation: fadeInUp 1s var(--ease) 0.3s both;
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-4);
}

.preview-dots span:first-child {
  background: var(--red);
  opacity: 0.5;
}

.preview-dots span:nth-child(2) {
  background: var(--yellow);
  opacity: 0.5;
}

.preview-dots span:nth-child(3) {
  background: var(--green);
  opacity: 0.5;
}

.preview-title {
  font-size: 0.6875rem;
  color: var(--text-3);
}

.preview-body {
  display: flex;
  height: 300px;
}

.preview-sidebar {
  width: 56px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-sidebar-item {
  width: 100%;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.preview-sidebar-item.active {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}

.preview-content {
  flex: 1;
  padding: 16px;
}

.preview-header-bar {
  width: 40%;
  height: 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
  margin-bottom: 16px;
}

.preview-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.preview-card {
  flex: 1;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.preview-card.accent {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-line {
  height: 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
}

.preview-line.w80 {
  width: 80%;
}

.preview-line.w60 {
  width: 60%;
}

.preview-line.w90 {
  width: 90%;
}

.preview-line.w40 {
  width: 40%;
}

/* ── Features ──────────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg-1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Workflow ──────────────────────────────────────────── */
.workflow {
  padding: 120px 0;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.workflow-step {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.workflow-step:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-4);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.workflow-step:hover .step-number {
  color: var(--accent-dim);
}

.step-content .step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 14px;
}

.step-content .step-icon i {
  width: 20px;
  height: 20px;
}

.step-content h4 {
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card>p {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb-1 {
  width: 400px;
  height: 400px;
  top: -40%;
  right: -10%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.12), transparent 70%);
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -30%;
  left: 5%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 70%);
}

.cta-card h2,
.cta-card>p,
.cta-card>.btn {
  position: relative;
  z-index: 1;
}

/* ── Footer ────────────────────────────────────────────── */
.landing-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--text-1);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Mobile Navigation ─────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.mobile-menu-btn:hover {
  background: var(--bg-3);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-1);
  flex-direction: column;
  padding: 20px;
  animation: mobileNavIn .2s ease;
}
.mobile-nav-overlay.open {
  display: flex;
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: background .15s;
}
.mobile-nav-links a:hover {
  background: var(--bg-3);
}

.mobile-nav-auth {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav-auth .btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .nav-auth-buttons {
    display: none;
  }
}
