:root {
  --navy: #15192a;
  --blue: #255878;
  --accent: #5b65d8;
  --accent-dark: #4953c6;
  --paper: #f4f6fb;
  --white: #ffffff;
  --ink: #182033;
  --muted: #697188;
  --line: rgba(24, 32, 51, 0.12);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 88% 8%, rgba(91, 101, 216, 0.16), transparent 29rem), var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid rgba(91, 101, 216, 0.42); outline-offset: 4px; }

.public-body { display: flex; flex-direction: column; overflow-x: hidden; }

.public-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.public-brand {
  width: 220px;
  height: 74px;
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.public-brand img,
.hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.public-brand img { object-position: center 40%; }

.staff-link,
.primary-link,
.visitor-staff-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.staff-link:hover { border-color: rgba(91, 101, 216, 0.35); background: var(--white); }

.public-main {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  flex: 1;
  align-items: center;
  margin: 0 auto;
  padding: 54px 0 86px;
}

.public-hero {
  width: 100%;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding: clamp(40px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 90px rgba(36, 50, 87, 0.11);
  backdrop-filter: blur(14px);
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 670;
  letter-spacing: -3.5px;
  line-height: 0.98;
}

.hero-copy > p {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 17px; margin-top: 34px; }
.hero-actions span { color: #8b92a5; font-size: 12px; }

.primary-link {
  color: var(--white);
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(91, 101, 216, 0.24);
}

.primary-link:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.visitor-staff-link {
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.visitor-staff-link:hover { border-color: rgba(91, 101, 216, 0.42); background: var(--white); }

.hero-mark {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: end;
  overflow: hidden;
  border-radius: 30px;
  background: var(--blue);
  box-shadow: 0 25px 60px rgba(21, 25, 42, 0.2);
}

.hero-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.public-footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: #8b92a5;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 900px) {
  .public-main { padding-top: 28px; }
  .public-hero { grid-template-columns: 1fr; gap: 42px; }
  .hero-mark { width: min(100%, 520px); justify-self: start; }
}

@media (max-width: 620px) {
  .public-header,
  .public-main,
  .public-footer { width: min(100% - 28px, 1180px); }

  .public-header { min-height: 82px; gap: 12px; }
  .public-brand { width: 164px; height: 58px; }
  .staff-link { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .public-main { padding: 18px 0 54px; }

  .public-hero {
    min-height: 0;
    gap: 34px;
    padding: 34px 24px 24px;
    border-radius: 22px;
  }

  .hero-copy h1 { font-size: clamp(38px, 13vw, 56px); letter-spacing: -2.4px; }
  .hero-copy > p { margin-top: 22px; font-size: 15px; line-height: 1.65; }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
  }

  .primary-link,
  .visitor-staff-link { width: 100%; }
  .hero-mark { border-radius: 20px; }

  .public-footer {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
