:root {
  --bg: #05070b;
  --panel: rgba(10, 15, 23, 0.88);
  --border: #223044;
  --text: #edf3ff;
  --muted: #8693a8;
  --green: #18d59b;
  --amber: #f7bd58;
  --blue: #4f8cff;
  --red: #ff6b7d;
}

* { box-sizing: border-box; }

html, body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 140, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: .17;
}

.ambient-one { top: -160px; left: -90px; background: var(--blue); }
.ambient-two { right: -140px; bottom: -220px; background: var(--green); }

.landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1320px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 34px 20px;
}

.landing-nav,
.landing-brand,
.secure-badge {
  display: flex;
  align-items: center;
}

.landing-nav { justify-content: space-between; }

.landing-brand {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #3e5d89;
  border-radius: 12px;
  color: #e9f2ff;
  background: linear-gradient(145deg, #1b2b43, #0a111c);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  font-size: 20px;
  font-weight: 900;
}

.landing-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: .22em;
}

.landing-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .3em;
}

.secure-badge {
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(24, 213, 155, .28);
  border-radius: 999px;
  color: #a8b7ca;
  background: rgba(24, 213, 155, .05);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.secure-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  padding: 70px 20px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(92deg, #edf3ff 5%, #73a3ff 50%, #18d59b 105%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #a8b4c7;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.feature-grid article {
  min-height: 132px;
  padding: 17px;
  border: 1px solid rgba(34, 48, 68, .82);
  border-radius: 12px;
  background: rgba(9, 13, 20, .56);
}

.feature-grid article > span {
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.feature-grid strong {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}

.feature-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

.card-glow {
  position: absolute;
  top: -130px;
  right: -110px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(79, 140, 255, .14);
  filter: blur(54px);
  pointer-events: none;
}

.auth-head,
#license-form,
.active-session {
  position: relative;
  z-index: 1;
}

.auth-kicker {
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

.auth-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(23px, 2.4vw, 31px);
  letter-spacing: -.025em;
}

.auth-head p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #9eabc0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.key-field {
  display: flex;
  height: 52px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #070b11;
  transition: border-color .18s, box-shadow .18s;
}

.key-field:focus-within {
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .12);
}

.key-field input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: 600 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.key-field input::placeholder {
  color: #475267;
  font-size: 12px;
}

.key-field button {
  margin: 8px;
  padding: 0 8px;
  border: 0;
  color: #7fa9ed;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.auth-message {
  min-height: 20px;
  margin: 10px 1px 6px;
  color: var(--red);
  font-size: 11px;
}

.auth-message.notice { color: var(--amber); }
.auth-message.success { color: var(--green); }

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #4f8cff;
  border-radius: 10px;
  color: #f5f8ff;
  background: linear-gradient(100deg, #274d87, #244875 68%, #17604e);
  box-shadow: 0 16px 36px rgba(24, 69, 130, .28);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  transition: transform .16s, filter .16s;
}

.primary-button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.primary-button:disabled { cursor: wait; filter: grayscale(.5); opacity: .65; }
.primary-button.loading span::after { content: "…"; }

.privacy-note {
  margin: 15px 8px 0;
  color: #637086;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.active-session {
  padding-top: 18px;
  text-align: center;
}

.session-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 1px solid rgba(24, 213, 155, .45);
  border-radius: 50%;
  color: var(--green);
  background: rgba(24, 213, 155, .08);
  box-shadow: 0 0 30px rgba(24, 213, 155, .13);
  font-size: 22px;
  font-weight: 900;
}

.active-session > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.active-session h3 {
  margin: 12px 0 7px;
  font-size: 24px;
}

.active-session p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.session-link { text-align: left; }

.landing-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(34, 48, 68, .65);
  color: #536076;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .landing-shell { padding: 20px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 74px 10px 58px;
  }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .feature-grid { text-align: left; }
  .auth-card { width: min(500px, 100%); margin: 0 auto; }
}

@media (max-width: 600px) {
  .landing-shell { padding: 16px 14px; }
  .landing-brand strong { font-size: 14px; }
  .secure-badge { padding: 7px 9px; font-size: 8px; }
  .hero { padding: 58px 0 42px; gap: 36px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-lead { font-size: 14px; }
  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .feature-grid article { min-height: 0; }
  .auth-card { padding: 27px 21px; border-radius: 16px; }
  .landing-footer { gap: 10px; font-size: 7px; }
  .landing-footer span:last-child { text-align: right; }
}
