/* Standalone stylesheet for the public landing + auth pages. Not loaded by dashboard pages. */

:root {
  --l-bg: #f7f9ff;
  --l-surface: #ffffff;
  --l-text: #14203a;
  --l-muted: #5d6b87;
  --l-line: rgba(96, 116, 164, 0.16);
  --l-primary: #3b6df6;
  --l-primary-dark: #2450cc;
  --l-accent: #f2994a;
  --l-good: #169f6b;
  --l-bad: #dd5b52;
  --l-radius: 20px;
  --l-shadow: 0 22px 55px rgba(24, 39, 79, 0.12);
  --l-shadow-soft: 0 10px 26px rgba(24, 39, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l-text);
  background:
    radial-gradient(circle at 12% -4%, rgba(59, 109, 246, 0.14), transparent 34%),
    radial-gradient(circle at 90% 2%, rgba(242, 153, 74, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--l-bg) 60%, #eef3fd 100%);
}

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

.landing h1,
.landing h2,
.landing h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

.l-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 255, 0.85);
  border-bottom: 1px solid var(--l-line);
}

.l-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.l-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--l-primary), #6f96ff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(59, 109, 246, 0.35);
}

.l-nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--l-muted);
}

.l-nav__links a:hover {
  color: var(--l-text);
}

.l-nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Buttons ---------- */

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.l-btn--primary {
  background: linear-gradient(135deg, var(--l-primary), var(--l-primary-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(59, 109, 246, 0.35);
}

.l-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(59, 109, 246, 0.42);
}

.l-btn--ghost {
  background: transparent;
  color: var(--l-text);
  border: 1px solid var(--l-line);
  background: rgba(255, 255, 255, 0.7);
}

.l-btn--ghost:hover {
  border-color: rgba(59, 109, 246, 0.45);
  color: var(--l-primary-dark);
}

.l-btn--lg {
  padding: 15px 28px;
  font-size: 15px;
  border-radius: 14px;
}

.l-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

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

.l-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.l-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(59, 109, 246, 0.1);
  border: 1px solid rgba(59, 109, 246, 0.22);
  color: var(--l-primary-dark);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.l-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--l-accent);
}

.l-hero h1 {
  margin: 22px auto 0;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  max-width: 820px;
}

.l-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--l-primary), #7aa0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.l-hero__sub {
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--l-muted);
  font-size: 17px;
}

.l-hero__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.l-hero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--l-muted);
  font-weight: 600;
}

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

.l-mockup-wrap {
  margin: 56px auto 0;
  max-width: 960px;
  position: relative;
}

.l-mockup-wrap::before {
  content: "";
  position: absolute;
  inset: 40px -30px -30px;
  background: radial-gradient(closest-side, rgba(59, 109, 246, 0.18), transparent);
  z-index: 0;
}

.l-mockup {
  position: relative;
  z-index: 1;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  box-shadow: var(--l-shadow);
  overflow: hidden;
  text-align: left;
}

.l-mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--l-line);
  background: #fbfcff;
}

.l-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e3e8f4;
}

.l-mockup__dot:nth-child(1) { background: #ffb4ac; }
.l-mockup__dot:nth-child(2) { background: #ffd9a0; }
.l-mockup__dot:nth-child(3) { background: #b5e5c9; }

.l-mockup__title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--l-muted);
}

.l-mockup__body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.l-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.l-kpi {
  border: 1px solid var(--l-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff, #fafbff);
}

.l-kpi__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--l-muted);
}

.l-kpi__value {
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.l-kpi__delta {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.l-kpi__delta--up { color: var(--l-good); }
.l-kpi__delta--down { color: var(--l-bad); }

.l-mockup__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.l-chart-card,
.l-table-card {
  border: 1px solid var(--l-line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.l-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--l-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.l-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}

.l-chart span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #6f96ff, var(--l-primary));
  opacity: 0.92;
  min-width: 0;
}

.l-chart span:nth-child(even) {
  background: linear-gradient(180deg, #ffc78e, var(--l-accent));
}

.l-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.l-table-card th {
  text-align: left;
  color: var(--l-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 4px;
  border-bottom: 1px solid var(--l-line);
}

.l-table-card td {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(96, 116, 164, 0.08);
  font-weight: 600;
}

.l-table-card td:last-child,
.l-table-card th:last-child {
  text-align: right;
}

.l-profit-pos { color: var(--l-good); }
.l-profit-neg { color: var(--l-bad); }

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

.l-section {
  padding: 76px 0;
}

.l-section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
}

.l-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.l-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--l-accent);
  margin: 0 0 10px;
}

.l-section__head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}

.l-section__head p {
  margin: 14px 0 0;
  color: var(--l-muted);
  font-size: 16px;
}

/* Steps */

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

.l-step {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  padding: 26px;
  box-shadow: var(--l-shadow-soft);
}

.l-step__num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--l-primary), #6f96ff);
  margin-bottom: 16px;
}

.l-step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.l-step p {
  margin: 0;
  color: var(--l-muted);
  font-size: 14.5px;
}

/* Features */

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

.l-feature {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.l-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--l-shadow-soft);
}

.l-feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 109, 246, 0.1);
  color: var(--l-primary);
  margin-bottom: 14px;
}

.l-feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.l-feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.l-feature p {
  margin: 0;
  color: var(--l-muted);
  font-size: 14px;
}

/* Why us */

.l-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.l-why__item {
  border-left: 3px solid var(--l-primary);
  padding: 4px 0 4px 18px;
}

.l-why__item:nth-child(even) {
  border-left-color: var(--l-accent);
}

.l-why__item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.l-why__item p {
  margin: 0;
  color: var(--l-muted);
  font-size: 14px;
}

/* CTA band */

.l-cta {
  margin: 30px auto 90px;
  text-align: center;
  background: linear-gradient(135deg, #1d3a86 0%, var(--l-primary) 55%, #6f96ff 100%);
  color: #fff;
  border-radius: 26px;
  padding: 58px 34px;
  box-shadow: 0 26px 60px rgba(29, 58, 134, 0.35);
}

.l-cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.l-cta p {
  margin: 12px auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.l-cta .l-btn--primary {
  background: #fff;
  color: var(--l-primary-dark);
  box-shadow: 0 14px 30px rgba(10, 22, 54, 0.35);
}

/* Footer */

.l-footer {
  border-top: 1px solid var(--l-line);
  padding: 30px 0 40px;
  color: var(--l-muted);
  font-size: 13.5px;
}

.l-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.l-footer__links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.l-footer__links a:hover {
  color: var(--l-text);
}

/* ---------- Auth pages (sign-in / sign-out) ---------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.auth-brand-panel {
  background: linear-gradient(150deg, #16295e 0%, #1d3a86 45%, var(--l-primary) 100%);
  color: #fff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 153, 74, 0.35), transparent 70%);
}

.auth-brand-panel .l-brand {
  color: #fff;
}

.auth-brand-panel__body {
  margin: auto 0;
  max-width: 420px;
}

.auth-brand-panel__body h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.auth-brand-panel__body > p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}

.auth-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.auth-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.auth-points li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.auth-brand-panel__foot {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 22px;
  box-shadow: var(--l-shadow);
  padding: 36px;
}

.auth-card__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--l-accent);
}

.auth-card h2 {
  font-size: 26px;
}

.auth-card__text {
  margin: 12px 0 26px;
  color: var(--l-muted);
  font-size: 14.5px;
}

.auth-card .l-btn {
  width: 100%;
}

.auth-card__foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--l-muted);
  font-weight: 600;
}

.auth-card__foot a {
  color: var(--l-primary-dark);
  font-weight: 800;
}

.auth-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(221, 91, 82, 0.3);
  background: rgba(221, 91, 82, 0.07);
  color: var(--l-bad);
  font-size: 13px;
  font-weight: 600;
}

.auth-error code {
  font-size: 12px;
}

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

@media (max-width: 960px) {
  .l-nav__links {
    display: none;
  }

  .l-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-mockup__grid,
  .l-steps,
  .l-features {
    grid-template-columns: 1fr;
  }

  .l-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    padding: 34px 26px;
  }

  .auth-brand-panel__body {
    margin: 18px 0;
  }
}

@media (max-width: 560px) {
  .l-hero {
    padding-top: 52px;
  }

  .l-why {
    grid-template-columns: 1fr;
  }

  .l-section {
    padding: 56px 0;
  }
}
