/* Landing page — modern SaaS marketing layout */

html.landing-root {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(168, 85, 247, 0.12), transparent 50%),
    var(--bg);
}

.landing-page main {
  flex: 1;
}

.landing-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.landing-brand .brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.brand-icon.sm { width: 36px; height: 36px; border-radius: 10px; }

.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.landing-brand-text small {
  color: var(--text-muted);
  font-size: 12px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.landing-nav a:not(.btn):hover { color: var(--text); }

.landing-hero {
  padding: 72px 0 56px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.landing-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.landing-eyebrow a:hover {
  text-decoration: underline;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-hover), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
}

.hero-card {
  padding: 18px;
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: 0.8s;
  max-width: 100%;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.hero-card-body {
  display: grid;
  gap: 12px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  border: 1px solid var(--border);
  font-size: 14px;
}

.hero-stat span { color: var(--text-muted); }
.hero-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
  overflow: hidden;
}

.hero-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #a855f7);
}

.hero-caption {
  font-size: 13px;
  color: var(--text-muted);
}

.landing-section {
  padding: 72px 0;
  scroll-margin-top: 76px;
}

.landing-section-alt {
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
  border-block: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  min-width: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-hover);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.step-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.landing-cta-band {
  padding: 56px 0 80px;
}

.landing-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.landing-cta-band-inner h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.landing-cta-band-inner p {
  color: var(--text-muted);
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}

.landing-footer-inner {
  display: grid;
  gap: 18px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-footer-brand p,
.landing-copy {
  color: var(--text-muted);
  font-size: 13px;
}

.landing-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.landing-venture {
  font-size: 14px;
  color: var(--text-muted);
}

.landing-venture a {
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: none;
}

.landing-venture a:hover {
  text-decoration: underline;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease forwards;
  animation-fill-mode: forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.landing-hero-visual {
  min-width: 0;
}

@media (max-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .landing-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .landing-nav a:not(.btn) {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .landing-container {
    width: min(1120px, calc(100% - 24px));
  }

  .landing-hero { padding-top: 48px; }
  .landing-cta-row,
  .landing-cta-band-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-cta-row .btn { width: 100%; text-align: center; }

  .landing-brand-text small {
    display: none;
  }

  .landing-footer-links {
    gap: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .hero-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .feature-card:hover { transform: none; }
}

/* Legal pages (Privacy, Terms) */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}

.legal-main {
  padding: 40px 0 56px;
}

.legal-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: var(--radius);
}

.legal-article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hover);
}

.legal-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content section {
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content p { margin-bottom: 12px; }

.legal-content ul {
  margin: 0 0 12px 1.25rem;
  padding: 0;
}

.legal-content li { margin-bottom: 8px; }

.legal-content li strong { color: var(--text); }

.legal-content a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--primary); }

.legal-article-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-article-footer p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-related a {
  color: var(--primary-hover);
  font-size: 14px;
  font-weight: 500;
}

.legal-related a:hover { color: var(--primary); }

/* 404 / error page */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 64px;
}

.error-panel {
  width: min(520px, 100%);
  text-align: center;
  padding: 48px 32px;
  border-radius: 20px;
}

.error-code {
  margin: 0 0 8px;
  font-size: clamp(4rem, 18vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover, #818cf8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-panel h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.error-lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 600px) {
  .error-panel {
    padding: 36px 20px;
  }
}

@media (max-width: 600px) {
  .legal-article {
    padding: 24px 20px;
  }

  .legal-main {
    padding: 28px 0 40px;
  }
}
