/* ============================================================
   NexoCRE — Public landing page
   Dark theme inspired by Reflect.app: deep black + purple glow.
   ============================================================ */

:root {
  --lp-bg: #050508;
  --lp-surface: #0D0D1A;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-purple: #7B2FBE;
  --lp-purple-light: #B76FE0;
  --lp-purple-dark: #2E0A4D;
  --lp-text: #F5F3FA;
  --lp-text-muted: #A79FC0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.lp {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--lp-text);
  background:
    radial-gradient(ellipse 900px 600px at 50% -10%, rgba(123, 47, 190, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 15%, rgba(123, 47, 190, 0.12), transparent 55%),
    var(--lp-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.lp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Navbar ---------- */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-logo img {
  height: 32px;
  width: auto;
}

.lp-logo-fallback {
  display: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lp-logo-fallback .dot { color: var(--lp-purple-light); }

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

.lp-nav-links a {
  color: var(--lp-text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.lp-btn-primary {
  background: var(--lp-purple);
  color: #fff;
  padding: 11px 22px;
  box-shadow: 0 4px 20px rgba(123, 47, 190, 0.45);
}

.lp-btn-primary:hover {
  background: #8C3ED4;
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(123, 47, 190, 0.6);
}

.lp-btn-lg {
  padding: 16px 30px;
  font-size: 16px;
}

.lp-btn-outline {
  background: transparent;
  color: var(--lp-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 15px 29px;
}

.lp-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.lp-hero {
  text-align: center;
  padding: 72px 32px 40px;
  position: relative;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(123, 47, 190, 0.14);
  border: 1px solid rgba(123, 47, 190, 0.4);
  color: var(--lp-purple-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.lp-hero h1 {
  font-size: 72px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}

.lp-hero p.lp-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--lp-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ---------- Sphere ---------- */
.lp-sphere-wrap {
  position: relative;
  width: 560px;
  height: 560px;
  max-width: 90vw;
  max-height: 90vw;
  margin: 56px auto 0;
}

.lp-sphere-halo {
  position: absolute;
  inset: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.35) 0%, rgba(123, 47, 190, 0.12) 45%, transparent 72%);
  filter: blur(30px);
  animation: lp-pulse 5s ease-in-out infinite;
}

.lp-sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, transparent 8%),
    radial-gradient(circle at 38% 32%, var(--lp-purple-light) 0%, var(--lp-purple) 42%, var(--lp-purple-dark) 75%, #0B0212 100%);
  box-shadow:
    0 0 90px 20px rgba(123, 47, 190, 0.55),
    0 0 180px 60px rgba(123, 47, 190, 0.25),
    inset -30px -30px 80px rgba(0, 0, 0, 0.55),
    inset 20px 20px 60px rgba(255, 255, 255, 0.08);
  animation: lp-pulse 5s ease-in-out infinite;
  overflow: hidden;
}

.lp-sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 105%, rgba(183, 111, 224, 0.5), transparent 55%);
  mix-blend-mode: screen;
}

@keyframes lp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.92; }
}

/* Mockup "screenshot" floating inside the sphere */
.lp-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  height: 46%;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: rgba(16, 8, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  overflow: hidden;
  animation: lp-float 6s ease-in-out infinite;
}

@keyframes lp-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(-4deg) translateY(-10px); }
}

.lp-mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.lp-mockup-body {
  display: flex;
  gap: 10px;
  padding: 14px;
  height: calc(100% - 34px);
}

.lp-mockup-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-mockup-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.lp-mockup-line.short { width: 60%; }

.lp-mockup-card {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(183, 111, 224, 0.35), rgba(123, 47, 190, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Features ---------- */
.lp-features {
  background: var(--lp-surface);
  padding: 96px 32px;
  margin-top: 40px;
  border-top: 1px solid var(--lp-border);
}

.lp-features-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lp-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 47, 190, 0.5);
  background: rgba(123, 47, 190, 0.07);
}

.lp-feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.lp-feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #fff;
}

.lp-feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-text-muted);
  margin: 0;
}

/* ---------- Footer ---------- */
.lp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 32px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--lp-border);
  color: var(--lp-text-muted);
  font-size: 14px;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-footer-brand img {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .lp-nav-links { display: none; }
  .lp-hero h1 { font-size: 44px; }
  .lp-hero p.lp-sub { font-size: 17px; }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 520px) {
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 34px; }
  .lp-sphere-wrap { width: 320px; height: 320px; }
}
