:root {
  --bg: #0b1220;
  --bg-2: #111a2d;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --brand: #ef4444;
  --brand-2: #fb923c;
  --brand-soft: rgba(239, 68, 68, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.14), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 46%, #050816 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.orb-a {
  width: 22rem;
  height: 22rem;
  background: rgba(239, 68, 68, 0.22);
  top: -4rem;
  left: -5rem;
}

.orb-b {
  width: 28rem;
  height: 28rem;
  background: rgba(251, 146, 60, 0.16);
  bottom: 2rem;
  right: -8rem;
}

.orb-c {
  width: 18rem;
  height: 18rem;
  background: rgba(59, 130, 246, 0.08);
  top: 45%;
  left: 22%;
}

.topbar,
.shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 16px 28px rgba(239, 68, 68, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  margin-top: 0.22rem;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8rem;
}

.chip-soft {
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.22);
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  padding: 1rem 1rem 1rem 0;
  animation: rise 700ms ease-out both;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Poppins, Inter, sans-serif;
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 0.97;
  max-width: 10ch;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 58ch;
  color: var(--muted-2);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-row {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.22rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.18), rgba(251, 146, 60, 0.18));
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 800;
}

.panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  border: 1px solid var(--line-2);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 1.3rem;
  backdrop-filter: blur(18px);
}

.auth-panel {
  align-self: stretch;
}

.panel-header,
.launcher-head,
.launcher-foot,
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header {
  margin-bottom: 0.5rem;
}

.panel h2 {
  font-size: 1.7rem;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
  margin: 0.8rem 0 1.2rem;
}

.status-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.login-form {
  display: grid;
  gap: 0.95rem;
}

.login-form label {
  display: grid;
  gap: 0.48rem;
}

.login-form span {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 600;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-form input::placeholder {
  color: #64748b;
}

.login-form input:focus {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.remember {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.remember input {
  accent-color: var(--brand);
}

.form-row a {
  color: #fda4af;
  font-size: 0.88rem;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 1rem;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

.primary-btn {
  margin-top: 0.25rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.24);
}

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

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.launcher {
  margin-top: 1.3rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.app-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  min-height: 210px;
  padding: 1.2rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 65%);
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.26);
}

.app-card h3 {
  font-size: 1.35rem;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.app-badge,
.launcher-chip {
  width: fit-content;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.app-badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-action {
  align-self: end;
  color: #fda4af;
  font-weight: 700;
}

.app-card-live {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 35%);
}

.app-card-ghost {
  opacity: 0.9;
}

.launcher-head {
  align-items: flex-start;
}

.launcher-foot {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.text-link {
  color: #fda4af;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  padding: 0.95rem 1rem;
  max-width: min(92vw, 360px);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  color: var(--text);
}

.toast.show {
  animation: toast-in 180ms ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.8rem;
  }

  h1 {
    max-width: 11ch;
  }

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

  .launcher-head,
  .launcher-foot,
  .panel-header,
  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar,
  .shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-text small {
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.4rem, 11vw, 3.9rem);
  }

  .panel,
  .app-card {
    border-radius: 1.4rem;
  }
}
