:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f7fbff;
  background: #07111f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #07111f;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(39, 128, 229, 0.2),
      transparent 32rem
    ),
    linear-gradient(
      150deg,
      #07111f 0%,
      #0a1729 48%,
      #07111f 100%
    );
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(141, 201, 255, 0.38);
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      rgba(46, 139, 238, 0.96),
      rgba(15, 74, 148, 0.96)
    );
  box-shadow:
    0 16px 40px rgba(16, 101, 194, 0.25);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-title {
  font-size: 15px;
}

.brand-subtitle {
  color: #8ea6c0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 18px;
  background: #2580df;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #3491ef;
}

.button.secondary {
  border-color: rgba(157, 190, 222, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: #d9e8f6;
}

.hero {
  display: grid;
  min-height: 620px;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.95fr);
  align-items: center;
  gap: 70px;
  padding: 70px 0 96px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6.8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: #66b5ff;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: #a9bdd1;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(133, 184, 230, 0.18);
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(18, 42, 70, 0.92),
      rgba(8, 22, 40, 0.92)
    );
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.3);
}

.hero-panel::before {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(47, 143, 242, 0.18);
  content: "";
  filter: blur(55px);
  right: -70px;
  top: -70px;
}

.metric {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(156, 193, 225, 0.13);
}

.metric:last-child {
  border-bottom: 0;
}

.metric-label {
  color: #8ca5be;
  font-size: 13px;
}

.metric-value {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.metric-detail {
  color: #65b4ff;
  font-size: 13px;
}

.section {
  padding: 28px 0 92px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.section-heading p {
  color: #9fb5ca;
  line-height: 1.7;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(149, 185, 219, 0.18);
}

.capability {
  min-height: 230px;
  padding: 30px 28px;
  border-right: 1px solid rgba(149, 185, 219, 0.18);
  border-bottom: 1px solid rgba(149, 185, 219, 0.18);
}

.capability:nth-child(3n) {
  border-right: 0;
}

.capability h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.capability p {
  margin: 0;
  color: #90a9c1;
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(149, 185, 219, 0.14);
  padding: 30px 0 46px;
  color: #7890a9;
  font-size: 13px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
}

.auth-layout {
  display: grid;
  width: min(1000px, 100%);
  overflow: hidden;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(148, 189, 225, 0.18);
  border-radius: 28px;
  background: rgba(9, 24, 42, 0.94);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.36);
}

.auth-story {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px;
  background:
    radial-gradient(
      circle at 25% 15%,
      rgba(45, 143, 238, 0.3),
      transparent 18rem
    ),
    linear-gradient(
      155deg,
      #12345a,
      #08182b 76%
    );
}

.auth-story h1 {
  max-width: 470px;
  margin: 0;
  font-size: 49px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.auth-story p {
  max-width: 450px;
  color: #b1c6da;
  line-height: 1.7;
}

.auth-form-wrap {
  display: grid;
  align-content: center;
  padding: 52px;
}

.auth-form-wrap h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.auth-form-wrap > p {
  margin: 10px 0 30px;
  color: #8fa7bd;
  line-height: 1.6;
}

.form-field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.form-field label {
  color: #b6c9dc;
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(145, 183, 218, 0.22);
  border-radius: 11px;
  outline: 0;
  padding: 0 14px;
  background: rgba(2, 12, 24, 0.62);
  color: #f6fbff;
}

.form-field input:focus {
  border-color: #3a99ef;
  box-shadow: 0 0 0 3px rgba(58, 153, 239, 0.14);
}

.auth-submit {
  width: 100%;
  margin-top: 5px;
}

.form-message {
  min-height: 21px;
  margin: 16px 0 0;
  color: #ff9ca6;
  font-size: 13px;
}

.portal-app {
  min-height: 100vh;
  background: #08121f;
}

.app-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(144, 181, 213, 0.14);
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(8, 18, 31, 0.91);
  backdrop-filter: blur(18px);
}

.app-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.app-main h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.055em;
}

.app-main > p {
  max-width: 700px;
  color: #96acc2;
  font-size: 17px;
  line-height: 1.7;
}

.workspace-list {
  display: grid;
  margin-top: 45px;
  border-top: 1px solid rgba(147, 184, 217, 0.17);
}

.workspace-item {
  display: grid;
  min-height: 126px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid rgba(147, 184, 217, 0.17);
  padding: 22px 4px;
}

.workspace-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.workspace-item p {
  margin: 0;
  color: #849db5;
  line-height: 1.55;
}

.user-meta {
  color: #8fa7bd;
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-top: 50px;
  }

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

  .capability,
  .capability:nth-child(3n) {
    border-right: 0;
  }

  .auth-story {
    min-height: 360px;
    padding: 36px;
  }

  .auth-form-wrap {
    padding: 36px;
  }
}

@media (max-width: 620px) {
  .portal-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 68px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions .secondary {
    display: none;
  }

  .hero h1 {
    font-size: 47px;
  }

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

  .hero-panel {
    border-radius: 20px;
    padding: 20px;
  }

  .footer,
  .workspace-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-item {
    display: flex;
  }

  .auth-page {
    padding: 14px;
  }

  .auth-layout {
    border-radius: 20px;
  }

  .auth-story,
  .auth-form-wrap {
    padding: 28px;
  }

  .auth-story h1 {
    font-size: 38px;
  }
}
