:root {
  color-scheme: light;
  --ink: #0d1b2f;
  --muted: #5b6a80;
  --paper: #f6f9fd;
  --white: #ffffff;
  --line: #dbe7f4;
  --blue: #1277ff;
  --blue-strong: #075fe4;
  --cyan: #1bd6ee;
  --navy: #081326;
  --shadow: 0 24px 80px rgba(4, 23, 53, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

svg {
  display: block;
  fill: currentColor;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 17, 36, 0.86), rgba(5, 17, 36, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 36px rgba(18, 119, 255, 0.38);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.login-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.login-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.18);
}

.login-button svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 13, 28, 0.91), rgba(5, 13, 28, 0.64) 39%, rgba(5, 13, 28, 0.18) 72%),
    linear-gradient(180deg, rgba(5, 13, 28, 0.42), rgba(5, 13, 28, 0.78));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  align-self: end;
  padding: 148px 0 clamp(64px, 11vh, 108px) clamp(18px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 6.35rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.22rem;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action,
.submit-button,
.text-link {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 54px rgba(18, 119, 255, 0.34);
}

.primary-action svg {
  width: 19px;
  height: 19px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 244, 0.88);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-strip article {
  min-height: 150px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
}

.metric-strip span {
  display: block;
  color: var(--blue-strong);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-strip p {
  max-width: 280px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-section {
  width: min(1120px, calc(100% - 36px));
  margin: 96px auto;
}

.section-heading {
  max-width: 660px;
}

.section-heading h2,
.security-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.85rem;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

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

.feature-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(4, 23, 53, 0.08);
}

.feature-card svg {
  width: 38px;
  height: 38px;
  color: var(--blue);
}

.feature-card h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 1.32rem;
  letter-spacing: 0;
}

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

.security-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 72px;
  padding: 42px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 19, 38, 0.97), rgba(6, 62, 139, 0.94)),
    radial-gradient(circle at top right, rgba(27, 214, 238, 0.32), transparent 34%);
  box-shadow: var(--shadow);
}

.security-band .eyebrow {
  color: #8cefff;
}

.security-band h2 {
  max-width: 690px;
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--navy);
  background: var(--white);
}

.login-dialog {
  width: min(450px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 28px 90px rgba(4, 23, 53, 0.35);
}

.login-dialog::backdrop {
  background: rgba(4, 13, 28, 0.62);
  backdrop-filter: blur(8px);
}

.login-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(219, 231, 244, 0.9);
  border-radius: 8px;
  background: var(--white);
}

.login-form h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fbff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 119, 255, 0.12);
}

.login-form input[aria-invalid="true"] {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}

.field-error {
  margin: -8px 0 0;
  color: #c22f35;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.login-note {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(18, 119, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(18, 119, 255, 0.06);
  font-size: 0.92rem;
  line-height: 1.5;
}

.submit-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.close-button svg {
  width: 21px;
  height: 21px;
}

:focus-visible {
  outline: 3px solid rgba(27, 214, 238, 0.86);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding-left: clamp(18px, 6vw, 56px);
  }

  h1 {
    font-size: 4.65rem;
  }

  .metric-strip span {
    font-size: 2.7rem;
  }

  .section-heading h2,
  .security-band h2 {
    font-size: 3rem;
  }

  .metric-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip article {
    min-height: 126px;
  }

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

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 14px 14px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .login-button {
    width: 44px;
    padding: 0;
  }

  .login-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 13, 28, 0.84), rgba(5, 13, 28, 0.72) 44%, rgba(5, 13, 28, 0.88)),
      linear-gradient(90deg, rgba(5, 13, 28, 0.66), rgba(5, 13, 28, 0.24));
  }

  .hero-image {
    object-position: 60% center;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 124px 0 56px 14px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.02;
    text-wrap: auto;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .metric-strip span {
    font-size: 2.25rem;
  }

  .section-heading h2,
  .security-band h2 {
    font-size: 2rem;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 180px;
  }

  .metric-strip,
  .portal-section,
  .security-band {
    width: calc(100% - 28px);
  }

  .portal-section {
    margin: 72px auto;
  }

  .feature-card,
  .security-band,
  .login-form {
    padding: 24px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.48rem;
  }

  .section-heading h2,
  .security-band h2 {
    font-size: 1.78rem;
  }
}
