:root {
  color-scheme: dark;
  --bg: #10140f;
  --surface: #191d16;
  --surface-2: #232a1d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f6ef;
  --muted: #aeb7a3;
  --green: #93c84f;
  --amber: #f2ad3c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(147, 200, 79, 0.2), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(242, 173, 60, 0.14), transparent 28rem),
    linear-gradient(150deg, #10140f 0%, #171c13 54%, #211b12 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.portal-shell {
  margin: 0 auto;
  max-width: 1220px;
  min-height: 100vh;
  padding: 22px;
}

.portal-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

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

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--green), #d7ee86);
  border-radius: 10px;
  color: #10150c;
  display: inline-flex;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a,
.hero-panel a,
.app-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: clamp(54px, 9vw, 108px) 0 34px;
}

.eyebrow,
.app-kicker,
.panel-status {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin: 0;
  max-width: 960px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 760px;
}

.hero-panel {
  background: rgba(25, 29, 22, 0.92);
  border: 1px solid rgba(147, 200, 79, 0.35);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-panel h2,
.hero-panel p {
  margin: 0 0 14px;
}

.hero-panel p {
  color: var(--muted);
  line-height: 1.55;
}

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

.app-card {
  background: rgba(25, 29, 22, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  text-decoration: none;
}

.app-card.active {
  border-color: rgba(147, 200, 79, 0.45);
  box-shadow: var(--shadow);
}

.app-card.soon {
  opacity: 0.78;
}

.app-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.app-card h2 {
  font-size: 1.45rem;
  margin: 0;
}

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

.app-action {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .portal-shell {
    padding: 16px;
  }

  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

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

  .app-card {
    min-height: 220px;
  }
}
