:root {
  --ink: #111827;
  --muted: #647084;
  --line: rgba(17, 24, 39, 0.12);
  --blue: #145de8;
  --blue-dark: #0f3f9e;
  --gold: #c88d2f;
  --green: #16865f;
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 28px 80px rgba(23, 38, 71, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(12, 22, 42, 0.88), rgba(19, 43, 83, 0.7)),
    #edf2f8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.landing-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero-panel {
  min-height: calc(100vh - 112px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 252, 0.76)),
    radial-gradient(circle at 80% 20%, rgba(20, 93, 232, 0.16), transparent 34%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-nav,
.brand,
.login-head,
.desktop-actions {
  display: flex;
  align-items: center;
}

.top-nav {
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(132, 89, 22, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 42px;
  align-items: center;
  padding: 72px 18px 34px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-top: 22px;
  color: #344052;
  font-size: 18px;
  line-height: 1.8;
}

.desktop-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-button {
  display: grid;
  gap: 4px;
  min-width: 176px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 93, 232, 0.22);
}

.download-button span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.download-button strong {
  font-size: 16px;
}

.download-button.android {
  background: linear-gradient(135deg, var(--green), #0a4935);
}

.download-button.ios {
  background: linear-gradient(135deg, #111827, #36506f);
}

.login-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(30, 45, 70, 0.16);
}

.login-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.login-head p {
  color: var(--muted);
  font-size: 14px;
}

.login-head h2 {
  margin-top: 4px;
  font-size: 28px;
}

.secure-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(22, 134, 95, 0.1);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #2d384a;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 93, 232, 0.12);
}

.login-button {
  height: 48px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  cursor: pointer;
  font-weight: 800;
}

.login-message {
  min-height: 22px;
  margin-top: 16px;
  color: #c43d3d;
  font-size: 14px;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.insight-strip article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  background: rgba(12, 20, 36, 0.68);
  backdrop-filter: blur(14px);
}

.insight-strip span {
  color: #83a8ff;
  font-weight: 800;
}

.insight-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.insight-strip p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 42px 0 12px;
  }

  .login-card {
    max-width: 520px;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .hero-panel {
    min-height: auto;
    padding: 16px;
  }

  .top-nav {
    align-items: flex-start;
  }

  h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
  }

  .download-button {
    width: 100%;
  }

  .login-card {
    padding: 20px;
  }
}
