:root {
  color-scheme: light;
  --blue: #1976e9;
  --blue-dark: #0a4ea5;
  --blue-soft: #eaf3ff;
  --ink: #101828;
  --muted: #5e6b7c;
  --line: #dce3ed;
  --panel: #ffffff;
  --surface: #f4f7fb;
  --shadow: 0 28px 80px rgba(22, 46, 77, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 85% 6%, rgba(46, 139, 242, 0.13), transparent 27rem),
    linear-gradient(180deg, #f8faff 0, var(--surface) 45rem);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.portalHeader {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 21px;
  font-weight: 780;
  gap: 11px;
  letter-spacing: -0.03em;
}

.brandMark {
  align-items: center;
  background: linear-gradient(145deg, #eef6ff, #dceaff);
  border: 1px solid rgba(25, 118, 233, 0.12);
  border-radius: 12px;
  color: var(--blue);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brandMark svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
  width: 28px;
}

.brandMark svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.portalHeader nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.portalHeader nav a {
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}

.headerLogin,
.secondaryAction,
.primaryAction {
  border-radius: 12px;
  font-weight: 720;
  min-height: 46px;
  padding: 0 20px;
}

.headerLogin {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 74px);
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 650px;
  padding: 72px 28px 86px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.095em;
  margin: 0 0 17px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 5.15vw, 67px);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  max-width: 680px;
}

.heroLead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
  margin: 25px 0 0;
  max-width: 650px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 33px;
}

.primaryAction {
  background: linear-gradient(135deg, #2684ed, #1166ce);
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(20, 108, 211, 0.22);
  color: #fff;
}

.primaryAction:hover {
  background: linear-gradient(135deg, #1d79df, #0b59b8);
}

.secondaryAction {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.heroFacts {
  color: #4b586a;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 16px 24px;
  list-style: none;
  margin: 27px 0 0;
  padding: 0;
}

.heroFacts li {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.heroFacts li::before {
  background: #28a56d;
  border: 3px solid #dff5eb;
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.workspacePreview {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 213, 228, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 440px;
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.workspacePreview::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  content: "";
  height: 1px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 0;
}

.previewTop {
  align-items: center;
  border-bottom: 1px solid #e6ebf2;
  display: flex;
  height: 62px;
  justify-content: space-between;
  padding: 0 22px;
}

.previewLogo {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 780;
  gap: 9px;
}

.previewLogoDot {
  background: var(--blue);
  border: 5px solid var(--blue-soft);
  border-radius: 50%;
  height: 24px;
  width: 24px;
}

.previewUser {
  background: linear-gradient(145deg, #f4c7a6, #7d9dc5);
  border: 4px solid #edf3fa;
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.previewBody {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 378px;
}

.previewBody aside {
  align-items: center;
  border-right: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding-top: 27px;
}

.previewNav {
  background: #dfe6ef;
  border-radius: 6px;
  height: 18px;
  width: 18px;
}

.previewNav.active {
  background: var(--blue);
  box-shadow: 0 0 0 8px var(--blue-soft);
  margin-bottom: 4px;
}

.previewContent {
  padding: 30px 28px;
}

.previewHeading {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.previewHeading span,
.previewHeading small,
.cardTitle,
.sideLine {
  background: #dce4ee;
  border-radius: 999px;
  display: block;
}

.previewHeading span {
  height: 14px;
  width: 38%;
}

.previewHeading small {
  height: 8px;
  width: 56%;
}

.previewMetrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
}

.previewMetrics article {
  background: #f7f9fc;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 14px;
}

.previewMetrics b {
  display: block;
  font-size: 23px;
}

.previewMetrics span {
  color: #758196;
  display: block;
  font-size: 9px;
  margin-top: 3px;
}

.previewGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.5fr 0.9fr;
  margin-top: 13px;
}

.previewGrid article {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  min-height: 170px;
  padding: 17px;
}

.cardTitle {
  height: 9px;
  margin-bottom: 23px;
  width: 48%;
}

.timelineLine {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 12px 1fr;
  margin: 16px 0;
}

.timelineLine i {
  background: #74aef0;
  border: 3px solid #e9f3ff;
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.timelineLine span {
  background: #e6ebf2;
  border-radius: 999px;
  height: 7px;
}

.avatarRow {
  display: flex;
  margin: 10px 0 25px;
}

.avatarRow i {
  background: #d9eaff;
  border: 2px solid #fff;
  border-radius: 50%;
  height: 28px;
  margin-left: -6px;
  width: 28px;
}

.avatarRow i:first-child {
  background: #f0c3a7;
  margin-left: 0;
}

.sideLine {
  height: 7px;
  margin-top: 12px;
  width: 100%;
}

.sideLine.short {
  width: 64%;
}

.trustStrip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 224, 235, 0.94);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1184px;
  padding: 24px;
}

.trustStrip div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px 27px;
}

.trustStrip div + div {
  border-left: 1px solid var(--line);
}

.trustStrip strong {
  font-size: 15px;
}

.trustStrip span {
  color: var(--muted);
  font-size: 13px;
}

.features {
  margin: 0 auto;
  max-width: 1240px;
  padding: 132px 28px 90px;
}

.sectionHeading {
  max-width: 720px;
}

.sectionHeading h2,
.securitySection h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

.sectionHeading > p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.featureGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
}

.featureGrid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 225px;
  padding: 25px;
}

.featureNumber {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featureGrid h3 {
  font-size: 19px;
  margin: 42px 0 11px;
}

.featureGrid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.securitySection {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(15, 56, 105, 0.97), rgba(11, 31, 59, 0.99));
  border-radius: 28px;
  color: #fff;
  display: grid;
  gap: 72px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 110px;
  max-width: 1184px;
  padding: 58px;
}

.securitySection .eyebrow {
  color: #74b5ff;
}

.securitySection ul {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.securitySection li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 22px;
}

.securitySection li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.securitySection li span {
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.5;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1184px;
  padding: 30px 0 42px;
}

.compactBrand {
  color: var(--ink);
  font-size: 16px;
}

.compactBrand .brandMark {
  border-radius: 9px;
  height: 32px;
  width: 32px;
}

.compactBrand .brandMark svg {
  height: 22px;
  width: 22px;
}

.accessDialog {
  background: transparent;
  border: 0;
  max-height: 100%;
  max-width: none;
  padding: 20px;
  width: 100%;
}

.accessDialog::backdrop {
  background: rgba(8, 18, 32, 0.62);
  backdrop-filter: blur(8px);
}

.dialogFrame {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 35px 100px rgba(6, 20, 38, 0.3);
  margin: auto;
  max-width: 500px;
  padding: 38px;
  position: relative;
}

.registrationFrame {
  max-width: 620px;
}

.dialogClose {
  align-items: center;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5e6877;
  display: flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.dialogIntro {
  padding-right: 28px;
}

.dialogIntro h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 0;
}

.dialogIntro > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
}

.loginExample {
  background: var(--blue-soft);
  border-radius: 9px;
  color: #34516f;
  display: inline-block;
  font-size: 13px;
  margin-top: 17px;
  padding: 9px 12px;
}

.accessForm {
  display: grid;
  gap: 17px;
  margin-top: 27px;
}

.accessForm label {
  color: #344054;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.accessForm input {
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 11px;
  color: var(--ink);
  font-size: 16px;
  min-height: 49px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.accessForm input:focus {
  border-color: #5da1ed;
  box-shadow: 0 0 0 4px rgba(38, 132, 237, 0.13);
}

.fullWidth {
  width: 100%;
}

.formMessage {
  color: #b42318;
  display: none;
  font-size: 13px;
  line-height: 1.45;
  margin: -2px 0 0;
}

.formMessage.visible {
  display: block;
}

.formMessage.success {
  color: #087443;
}

.dialogFoot {
  color: #7a8697;
  font-size: 12px;
  line-height: 1.45;
  margin: 18px 0 0;
  text-align: center;
}

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

.registrationForm > label:nth-child(1),
.registrationForm > label:nth-child(2),
.registrationForm > label:nth-child(3),
.registrationForm > .checkboxRow,
.registrationForm > .formMessage,
.registrationForm > button {
  grid-column: 1 / -1;
}

.domainInput {
  align-items: center;
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}

.domainInput:focus-within {
  border-color: #5da1ed;
  box-shadow: 0 0 0 4px rgba(38, 132, 237, 0.13);
}

.domainInput input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.domainInput span {
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  padding-right: 14px;
}

.accessForm small {
  color: #7b8797;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.checkboxRow {
  align-items: start;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid !important;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.checkboxRow input {
  height: 19px;
  margin: 1px 0 0;
  min-height: 0;
  width: 19px;
}

.checkboxRow span {
  display: grid;
  gap: 3px;
}

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

  .heroCopy {
    max-width: 780px;
  }

  .workspacePreview {
    transform: none;
  }

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

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

@media (max-width: 700px) {
  .portalHeader {
    height: 68px;
    padding: 0 18px;
  }

  .portalHeader nav a {
    display: none;
  }

  .portalHeader nav {
    gap: 0;
  }

  .brand {
    font-size: 19px;
  }

  .brandMark {
    height: 38px;
    width: 38px;
  }

  .headerLogin {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 48px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.2vw, 55px);
  }

  .heroLead {
    font-size: 17px;
  }

  .heroActions {
    display: grid;
  }

  .primaryAction,
  .secondaryAction {
    min-height: 52px;
    width: 100%;
  }

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

  .workspacePreview {
    margin-top: 48px;
    min-height: 330px;
  }

  .previewBody {
    grid-template-columns: 49px 1fr;
    min-height: 282px;
  }

  .previewBody aside {
    gap: 15px;
  }

  .previewContent {
    padding: 22px 16px;
  }

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

  .previewMetrics article {
    padding: 10px 8px;
  }

  .previewMetrics b {
    font-size: 18px;
  }

  .previewMetrics span {
    line-height: 1.3;
  }

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

  .previewSideCard {
    display: none;
  }

  .trustStrip {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    grid-template-columns: 1fr;
    padding: 10px 20px;
  }

  .trustStrip div {
    padding: 17px 0;
  }

  .trustStrip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .features {
    padding: 92px 20px 70px;
  }

  .featureGrid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .featureGrid article {
    min-height: 190px;
  }

  .securitySection {
    border-radius: 0;
    gap: 45px;
    margin-bottom: 70px;
    padding: 54px 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin: 0 20px;
  }

  .accessDialog {
    margin: 0;
    padding:
      max(12px, env(safe-area-inset-top))
      10px
      max(12px, env(safe-area-inset-bottom));
  }

  .dialogFrame {
    border-radius: 18px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 30px 20px 24px;
    width: 100%;
  }

  .dialogIntro {
    padding-right: 25px;
  }

  .dialogIntro h2 {
    font-size: 27px;
  }

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

  .registrationForm > * {
    grid-column: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
