:root {
  --bg-1: #041427;
  --bg-2: #08203a;
  --line: rgba(179, 207, 230, 0.24);
  --text: #f3f6fb;
  --muted: rgba(228, 236, 247, 0.9);
  --muted-soft: rgba(215, 226, 240, 0.84);
  --brand: #800000;
  --panel: rgba(8, 24, 44, 0.88);
  --focus: #33c6d7;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Cairo, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at -6% -10%, rgba(128, 0, 0, 0.16), transparent 36%),
    radial-gradient(circle at 102% 4%, rgba(39, 129, 185, 0.22), transparent 42%),
    linear-gradient(136deg, var(--bg-1) 0%, var(--bg-2) 52%, #0b2a46 100%);
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 22px 34px;
}

.landing-main {
  display: grid;
  gap: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-logo-mark {
  width: 74px;
  max-width: 20vw;
  height: 74px;
  object-fit: contain;
  display: block;
}

.topbar-brand-text {
  color: #f3f6fb;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.52rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(2, 10, 18, 0.44);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #900000;
  border-color: #900000;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(8, 28, 49, 0.9), rgba(11, 40, 67, 0.92));
  padding: 12px 14px;
}

.metric-label {
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.metric-value {
  margin-top: 5px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.metric-hint {
  margin-top: 5px;
  color: rgba(243, 246, 251, 0.82);
  font-size: 0.77rem;
}

.hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.left {
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(96deg, rgba(2, 12, 22, 0.8) 0%, rgba(2, 12, 22, 0.58) 38%, rgba(4, 16, 28, 0.24) 76%, rgba(6, 18, 30, 0.1) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.58) 8%, rgba(0, 0, 0, 0.2) 58%),
    url("/public/images/auth/login-hero.webp") center center / cover no-repeat;
  min-height: 460px;
  display: flex;
  align-items: end;
  padding: 28px;
}

.hero-copy {
  max-width: 620px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(185, 213, 235, 0.24);
  background: linear-gradient(145deg, rgba(7, 24, 40, 0.72), rgba(8, 27, 46, 0.68));
}

.left h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.9rem, 4.1vw, 3.1rem);
  line-height: 1.08;
  text-shadow: 0 3px 14px rgba(2, 10, 18, 0.6);
}

.left p {
  margin: 12px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.45;
}

.quick-pills {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-pill {
  border-radius: 999px;
  border: 1px solid rgba(195, 220, 240, 0.36);
  background: rgba(10, 36, 61, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
}

.right {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.brand-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.brand-note img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.brand-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.right h2 {
  margin: 0 0 4px;
  font-size: 1.18rem;
}

.feature {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 12px;
}

.feature b {
  display: block;
  font-size: 1rem;
}

.feature span {
  display: block;
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.feature-strong {
  border: 1px solid rgba(138, 28, 28, 0.62);
  background: linear-gradient(140deg, rgba(128, 0, 0, 0.18), rgba(10, 37, 62, 0.42));
}

.cta-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-row .btn {
  min-height: 42px;
}

.shot-placeholder {
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, rgba(3, 18, 31, 0.72), rgba(8, 33, 55, 0.6));
  color: rgba(243, 246, 251, 0.84);
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.86rem;
  padding: 12px;
}

.inline-shot {
  margin-top: 14px;
}

.inline-shot b {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.inline-note {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.9rem;
  line-height: 1.42;
}

.split-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 16px;
}

.stack-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 27, 47, 0.7);
  padding: 18px 16px;
}

.stack-card h2 {
  margin: 0;
  font-size: 1.36rem;
}

.stack-card p {
  color: var(--muted-soft);
  line-height: 1.45;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.steps li {
  color: var(--muted-soft);
}

.steps b {
  color: var(--text);
}

.stats-mini {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-mini .metric-card {
  padding: 10px 12px;
}

.final-cta {
  margin-top: 18px;
}

.final-cta-card {
  border-radius: 16px;
  border: 1px solid rgba(140, 29, 29, 0.56);
  background: linear-gradient(130deg, rgba(128, 0, 0, 0.2), rgba(10, 36, 61, 0.58));
  padding: 18px 16px;
}

.final-cta-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.final-cta-card p {
  margin: 8px 0 0;
  color: var(--muted-soft);
  line-height: 1.4;
}

.footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgba(4, 18, 33, 0.74);
  border-radius: 14px;
  padding: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.footer-col b {
  display: block;
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.footer-col p {
  margin: 0;
  color: rgba(243, 246, 251, 0.84);
  font-size: 0.87rem;
  line-height: 1.4;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer-brand span {
  font-weight: 800;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: rgba(243, 246, 251, 0.9);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-copy {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(243, 246, 251, 0.8);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .left {
    min-height: 360px;
    padding: 20px;
  }

  .hero-copy {
    padding: 14px 14px 12px;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 16px 10px 20px;
  }

  .top-actions {
    width: 100%;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .top-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .left,
  .right,
  .stack-card,
  .final-cta-card {
    padding: 12px;
  }

  .left {
    min-height: 280px;
    align-items: flex-end;
  }

  .left h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .left p,
  .stack-card p,
  .final-cta-card p {
    font-size: 0.9rem;
  }

  .footer {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    width: 100%;
  }

  .shot-placeholder {
    min-height: 145px;
  }
}

@media (max-width: 390px) {
  .shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar-logo-mark {
    width: 62px;
    height: 62px;
  }

  .topbar-brand-text {
    font-size: 1.08rem;
  }

  .metric-value {
    font-size: 1.24rem;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-actions .btn {
    width: 100%;
  }
}
