/* ── Landing Page — Juris / LegalOS ──────────────────────────────────────── */

/* ── Header ───────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
[data-theme="dark"] .header,
[data-theme="auto"] .header {
  background: rgba(2, 6, 23, 0.85);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .header {
    background: rgba(2, 6, 23, 0.85);
  }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--violet-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}
.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.gradient {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .gradient {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-200));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Hero Engine Viz ──────────────────────────────────── */

.engine-viz {
  margin: 4rem auto 0;
  position: relative;
  width: 320px;
  height: 320px;
}

.ring {
  position: absolute;
  border: 1.5px solid var(--accent-border);
  border-radius: 50%;
}
.ring-1 {
  width: 320px; height: 320px;
  top: 0; left: 0;
  animation: spin 20s linear infinite;
}
.ring-2 {
  width: 240px; height: 240px;
  top: 40px; left: 40px;
  animation: spin 14s linear infinite reverse;
}
.ring-3 {
  width: 160px; height: 160px;
  top: 80px; left: 80px;
  animation: spin 9s linear infinite;
}

.ring-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.ring-1 .ring-dot { top: -4px; left: 50%; }
.ring-2 .ring-dot { bottom: -4px; left: 50%; }
.ring-3 .ring-dot { top: 50%; right: -4px; }

.engine-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.engine-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.engine-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.engine-status {
  margin-top: 0.5rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Stats Strip ──────────────────────────────────────── */

.stats-strip {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Section Base ─────────────────────────────────────── */

.section {
  padding: 5rem 2rem;
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ── Feature Grid ─────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-border);
}
[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ── Module Groups ────────────────────────────────────── */

.module-groups {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.module-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s;
}
.module-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.module-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.module-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.module-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Solutions / Pricing ──────────────────────────────── */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
}
.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.solution-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.solution-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.solution-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.solution-features li {
  padding: 0.3rem 0;
}
.solution-features li::before {
  content: '\2713';
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ── Compliance Tags ──────────────────────────────────── */

.compliance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.compliance-tag {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* ── Quote ─────────────────────────────────────────────── */

.quote-section {
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-text {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  color: var(--text);
}

.quote-attribution {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── CTA Banner ───────────────────────────────────────── */

.cta-banner {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--violet-950), var(--violet-900));
  color: #fff;
}
[data-theme="dark"] .cta-banner,
[data-theme="auto"] .cta-banner {
  background: linear-gradient(135deg, var(--violet-900), var(--slate-900));
}

.cta-banner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--violet-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-primary:hover {
  background: var(--violet-100);
  transform: translateY(-1px);
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 280px;
}
.footer-brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-brand-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Fade-Up Animation ────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .stats-inner { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .engine-viz { width: 240px; height: 240px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 180px; height: 180px; top: 30px; left: 30px; }
  .ring-3 { width: 120px; height: 120px; top: 60px; left: 60px; }
}
