/* Landing page and login page. Loaded after app.css. */

.lp-wrap { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }

/* ---------- Hero ---------- */

.lp-hero { position: relative; overflow: hidden; min-height: min(900px, 100vh); display: flex; align-items: center; padding: 72px 0; }
.lp-bg { position: absolute; inset: 0; pointer-events: none; }
.lp-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px), linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.blob.violet { left: -128px; top: 40px; width: 544px; height: 544px; background: rgba(167, 139, 250, 0.4); }
.blob.cyan { right: -96px; top: 40px; width: 416px; height: 416px; background: rgba(103, 232, 249, 0.25); }
[data-theme='dark'] .blob.violet { background: rgba(124, 58, 237, 0.25); }
[data-theme='dark'] .blob.cyan { background: rgba(8, 145, 178, 0.15); }
.mouse-glow { position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(236, 72, 153, 0.16), transparent 60%); }

.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; width: 100%; }
.lp-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.lp-logo .tile { width: 52px; height: 52px; border-radius: 16px; }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px;
  background: rgba(253, 242, 248, 0.9); border: 1px solid #fbcfe8; color: #be185d; font-size: 14px; font-weight: 600;
}
[data-theme='dark'] .lp-kicker { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.3); color: #f9a8d4; }
.lp-hero h1 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lp-tags span { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.lp-hero p.lead { max-width: 52ch; margin-bottom: 30px; color: var(--text-2); font-size: 17.5px; line-height: 1.6; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 3D report that tilts with the mouse */
.lp-stage { position: relative; height: 520px; perspective: 1200px; }
.report3d {
  position: absolute; inset: 30px 40px 60px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -16deg)); transition: transform 0.25s ease-out;
}
.r-paper {
  position: absolute; inset: 0; padding: 26px 28px; border-radius: 26px; background: #fff; color: #0f172a;
  box-shadow: 0 50px 90px -40px rgba(76, 29, 149, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
[data-theme='dark'] .r-paper { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9); }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; white-space: nowrap; }
.r-head .who { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; color: #64748b; }
.r-head .tile { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.r-head .tile .i { width: 18px; height: 18px; }
.r-ready { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 800; }
.r-ready .i { width: 14px; height: 14px; }
.r-line { height: 11px; margin: 0 0 13px 34px; border-radius: 6px; background: #e8eaf2; transform-origin: left; animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.r-line.hl-red { background: #fda4af; } .r-line.hl-orange { background: #fdba74; }
.r-line.hl-cyan { background: #67e8f9; } .r-line.hl-violet { background: #d8b4fe; }
@keyframes grow { from { transform: scaleX(0); } }
.r-num {
  position: absolute; left: 22px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #f43f5e; color: #fff; font-size: 11px; font-weight: 800; animation: pop-in 0.4s ease both;
}
.r-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px;
  background: #fff; color: #0f172a; box-shadow: 0 24px 50px -20px rgba(76, 29, 149, 0.5); animation: pop-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.3) both;
}
[data-theme='dark'] .r-float { box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85); }
.r-float small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #64748b; }
.r-float strong { font-size: 24px; font-weight: 900; line-height: 1.1; }
.r-float.sim { left: -34px; top: 70px; transform: translateZ(60px); } .r-float.sim strong { color: #059669; }
.r-float.ai { right: -30px; top: 210px; transform: translateZ(80px); } .r-float.ai strong { color: #0891b2; }
.r-float.src { left: 10px; bottom: -26px; transform: translateZ(50px); font-size: 14px; font-weight: 700; }
.r-float.src .tile { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.r-float.src .tile .i { width: 16px; height: 16px; }
.r-tag { position: absolute; padding: 5px 11px; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; box-shadow: 0 12px 26px -12px rgba(76, 29, 149, 0.5); transform: translateZ(40px); animation: pop-in 0.4s ease both; }
.r-tag.sim { right: 26px; top: 96px; color: #e11d48; } .r-tag.ai { right: 46px; top: 166px; color: #0891b2; }
@keyframes pop-in { from { opacity: 0; scale: 0.85; } }
.lp-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- Sections ---------- */

.lp-section { position: relative; padding: 96px 0; }
.lp-section.tint-violet::before, .lp-section.tint-emerald::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.lp-section.tint-violet::before { background: linear-gradient(transparent, rgba(237, 233, 254, 0.6), transparent); }
.lp-section.tint-emerald::before { background: linear-gradient(transparent, rgba(209, 250, 229, 0.5), transparent); }
[data-theme='dark'] .lp-section.tint-violet::before { background: linear-gradient(transparent, rgba(76, 29, 149, 0.2), transparent); }
[data-theme='dark'] .lp-section.tint-emerald::before { background: linear-gradient(transparent, rgba(6, 78, 59, 0.12), transparent); }
.lp-section h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lp-sub { max-width: 56ch; margin: 0 auto 48px; color: var(--text-2); font-size: 17px; }

.lp-price-card { position: relative; max-width: 470px; margin: 0 auto; text-align: left; }
.lp-price-card .glow { position: absolute; inset: -12px; border-radius: 32px; background: var(--brand); opacity: 0.3; filter: blur(40px); }
.lp-price-card .card {
  position: relative; overflow: hidden; padding: 28px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px);
}
[data-theme='dark'] .lp-price-card .card { border-color: var(--border-strong); background: rgba(16, 18, 42, 0.82); }
.lp-price-card .bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-x); background-size: 300% 100%; animation: gradient-x 6s ease infinite; }
.secure-pill { display: flex; width: max-content; align-items: center; gap: 6px; margin: 0 auto 12px; padding: 4px 12px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 13px; font-weight: 800; }
[data-theme='dark'] .secure-pill { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.lp-price-card h3 { text-align: center; font-size: 22px; font-weight: 800; }
.lp-price-card .card > p { margin: 2px 0 20px; text-align: center; color: var(--text-2); font-size: 14.5px; }

.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
.lp-card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-card .tile { margin-bottom: 18px; }
.lp-card h3 { margin-bottom: 8px; font-size: 19px; font-weight: 800; }
.lp-card p { color: var(--text-2); font-size: 15px; }
.steps .lp-card { position: relative; padding-top: 40px; text-align: center; }
.steps .lp-card .tile { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 20px; }
.steps .lp-card .tile .i { width: 30px; height: 30px; }
.step-num { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--brand-glow); }
.steps + .btn { margin-top: 40px; }

.lp-final { position: relative; overflow: hidden; padding: 72px 32px; border-radius: 32px; background: var(--brand); color: #fff; text-align: center; box-shadow: 0 40px 80px -40px rgba(236, 72, 153, 0.7); }
.lp-final::before {
  content: ''; position: absolute; inset: 0; opacity: 0.4;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lp-final > * { position: relative; }
.lp-final h2 { color: #fff; }
.lp-final p { max-width: 50ch; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.9); font-size: 17px; }
.lp-final .btn { background: #fff; color: #7c3aed; box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.6); }
.lp-final small { display: block; margin-top: 20px; color: rgba(255, 255, 255, 0.8); font-size: 13.5px; }

.lp-footer { padding: 36px 32px 44px; text-align: center; color: var(--muted); font-size: 14px; }
.lp-footer a { color: var(--text-2); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Login ---------- */

.auth-page { display: flex; min-height: 100vh; }
.auth-side {
  position: relative; display: flex; width: 46%; overflow: hidden; align-items: center; justify-content: center;
  padding: 48px; background: #070a17; color: #fff;
}
.auth-side .blob.violet { left: -120px; top: -60px; background: rgba(124, 58, 237, 0.35); }
.auth-side .blob.orange { right: -140px; bottom: -120px; width: 460px; height: 460px; background: rgba(249, 115, 22, 0.3); }
.auth-side .blob.pink { left: 30%; bottom: 20%; width: 300px; height: 300px; background: rgba(236, 72, 153, 0.18); }
.auth-side-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 380px; text-align: center; }
.auth-side .tile-lg { width: 84px; height: 84px; border-radius: 24px; margin-bottom: 28px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 50px -20px rgba(124, 58, 237, 0.8); }
.auth-side .tile-lg .i { width: 38px; height: 38px; color: #c4b5fd; }
.auth-side h1 { margin-bottom: 16px; font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.auth-side p { margin-bottom: 30px; color: rgba(255, 255, 255, 0.72); font-size: 16.5px; }
.auth-feats { display: grid; gap: 12px; width: 100%; text-align: left; }
.auth-feat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(8px); }
.auth-feat .tile { width: 40px; height: 40px; border-radius: 12px; }
.auth-feat .tile .i { width: 19px; height: 19px; }
.auth-feat strong { display: block; font-size: 15px; }
.auth-feat small { color: rgba(255, 255, 255, 0.6); font-size: 13px; }

.auth-main { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  position: relative; overflow: hidden; width: min(440px, 100%); padding: 34px 32px; border-radius: 28px;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: 0 30px 70px -36px rgba(76, 29, 149, 0.45);
}
[data-theme='dark'] .auth-card { background: rgba(16, 18, 42, 0.9); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.auth-card .bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-x); background-size: 300% 100%; animation: gradient-x 6s ease infinite; }
.auth-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.auth-card .sub { margin: 4px 0 26px; color: var(--muted); }
.auth-card .field > span { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.auth-note {
  display: flex; align-items: flex-start; gap: 10px; margin: -8px 0 22px; padding: 11px 14px; border-radius: 14px;
  background: var(--banner-bg); border: 1px solid var(--banner-border); color: var(--banner-text); font-size: 14px; font-weight: 600;
}
.auth-note .i { margin-top: 2px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-switch button { padding: 0; border: 0; background: none; color: var(--violet); font-weight: 800; }
[data-theme='dark'] .auth-switch button { color: #c4b5fd; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .lp-hero { min-height: 0; padding: 48px 0 64px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-stage { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
  .auth-side { display: none; }
  .auth-page { min-height: calc(100vh - 64px); }
}
@media (max-width: 760px) {
  .lp-wrap { padding: 0 16px; }
  .lp-section { padding: 64px 0; }
  .lp-cards { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lp-stage { height: 400px; }
  .report3d { inset: 24px 30px 56px; }
  .r-float.sim { left: -20px; } .r-float.ai { right: -16px; }
  .lp-cta .btn { flex: 1; }
  .lp-final { padding: 52px 20px; border-radius: 24px; }
  .lp-price-card .card { padding: 22px 18px; }
  .auth-card { padding: 28px 20px; }
}
