:root {
  --blue: #3b00db;
  --blue-dark: #2d00a8;
  --blue-soft: #eeeaff;
  --ink: #050505;
  --paper: #ffffff;
  --canvas: #f3f3f5;
  --muted: #66656d;
  --line: rgba(5, 5, 5, 0.14);
  --shadow: 0 28px 70px rgba(5, 5, 5, 0.13);
  --shadow-soft: 0 14px 34px rgba(5, 5, 5, 0.08);
  --content-width: 1180px;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "degular", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

button,
input,
select { font: inherit; }

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

button { cursor: pointer; }

img { display: block; max-width: 100%; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] { display: none !important; }

::selection { color: var(--paper); background: var(--blue); }

:focus-visible { outline: 3px solid rgba(59, 0, 219, 0.28); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(59, 0, 219, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 0, 219, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

.login-view {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 36px 20px;
}

.login-shape {
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -7%;
  width: min(42vw, 660px);
  height: 83%;
  background: var(--blue);
  transform: rotate(16deg);
  box-shadow: -30px 40px 80px rgba(59, 0, 219, 0.15);
}

.login-view::after {
  position: absolute;
  z-index: -1;
  right: 5vw;
  bottom: 2vh;
  width: 120px;
  height: 120px;
  border: 20px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: 0.06;
}

.login-shell { width: min(100%, 460px); }

.brand-card,
.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.brand-card {
  overflow: hidden;
  margin-bottom: 24px;
  padding: 22px 30px 24px;
  border-radius: 8px 8px 8px 36px;
  text-align: center;
}

.brand-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: var(--blue);
}

.brand-card img { width: min(100%, 340px); margin: 0 auto 12px; }

.brand-rule { width: 54px; height: 3px; margin: 0 auto 13px; background: var(--blue); }

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-card h1,
.brand-card p,
.login-card h2,
.login-card p { margin: 0; }

.brand-card h1 {
  font-family: "degular-display", "degular", Inter, sans-serif;
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.brand-card > p:last-child { margin-top: 8px; color: var(--muted); }

.login-card {
  overflow: hidden;
  padding: 30px 28px 24px;
  border-radius: 8px 38px 8px 8px;
  box-shadow: var(--shadow);
}

.card-accent { position: absolute; top: 0; right: 0; width: 38%; height: 6px; background: var(--blue); }

.form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }

.form-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px 16px 7px 7px;
}

.form-icon svg { width: 23px; height: 23px; }

.form-heading h2 {
  font-family: "degular-display", "degular", Inter, sans-serif;
  font-size: 1.7rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.02em;
}

.form-heading p { margin-top: 5px; color: var(--muted); font-size: 0.95rem; }

.login-card label { display: block; margin: 0 0 7px; font-size: 0.92rem; font-weight: 680; }

.input-wrap { position: relative; margin-bottom: 20px; }

.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: #85858b;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 45px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(5, 5, 5, 0.22);
  border-radius: 7px;
  box-shadow: 0 2px 0 rgba(5, 5, 5, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder { color: #8a898f; }

.input-wrap input:hover { border-color: rgba(59, 0, 219, 0.44); }

.input-wrap input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 0, 219, 0.12); }

.icon-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #77767d;
  background: transparent;
  border: 0;
  border-radius: 6px;
  transform: translateY(-50%);
}

.icon-button:hover { color: var(--blue); background: var(--blue-soft); }
.icon-button svg { width: 20px; height: 20px; }
.eye-closed { display: none; }
.icon-button[aria-pressed="true"] .eye-open { display: none; }
.icon-button[aria-pressed="true"] .eye-closed { display: block; }

.primary-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--paper);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  box-shadow: 0 12px 25px rgba(59, 0, 219, 0.25);
  font-weight: 680;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover { background: var(--blue-dark); box-shadow: 0 16px 32px rgba(59, 0, 219, 0.3); transform: translateY(-2px); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.primary-button svg { width: 20px; height: 20px; }

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px !important;
  color: var(--muted);
  font-size: 0.82rem;
}

.security-note svg { width: 16px; height: 16px; color: var(--blue); }

.alert {
  margin: -8px 0 20px;
  padding: 11px 13px;
  color: #8d1717;
  background: #fff1f1;
  border: 1px solid #f3c6c6;
  border-radius: 6px;
  font-size: 0.9rem;
}

.app-view { min-height: 100vh; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(5, 5, 5, 0.06);
  backdrop-filter: blur(18px);
}

.site-header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, var(--blue) 0 34%, transparent 34%); }

.header-inner,
.footer-inner,
.hero,
.documents-section { width: min(calc(100% - 40px), var(--content-width)); margin-inline: auto; }

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

.header-brand { display: flex; align-items: center; gap: 15px; color: var(--ink); text-decoration: none; }
.header-brand img { width: 188px; }
.header-brand > span { width: 1px; height: 30px; background: var(--line); }
.header-brand strong { font-family: "degular-display", "degular", sans-serif; font-size: 1.35rem; font-weight: 800; }

.user-area { display: flex; align-items: center; gap: 18px; }
.user-copy { display: grid; padding-right: 18px; border-right: 1px solid var(--line); text-align: right; }
.user-copy span { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.user-copy strong { font-size: 0.93rem; }

.logout-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 650;
}

.logout-button:hover { color: var(--blue); border-color: rgba(59, 0, 219, 0.4); background: var(--blue-soft); }
.logout-button svg { width: 18px; height: 18px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 510px;
  overflow: hidden;
  margin-top: 34px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px 58px 8px 8px;
  box-shadow: var(--shadow);
}

.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(122deg, transparent 0 57%, var(--blue) 57% 73%, transparent 73%); }
.hero::after { position: absolute; inset: 0; content: ""; background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 100%; mask-image: linear-gradient(to right, black, transparent 75%); }

.hero-pattern {
  position: absolute;
  right: 2%;
  bottom: -95px;
  width: 330px;
  height: 330px;
  border: 54px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; align-self: center; padding: 70px 66px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-kicker span { width: 35px; height: 3px; background: var(--blue); }

.hero h1 { margin: 0; font-family: "degular-display", "degular", Inter, sans-serif; font-size: clamp(4.5rem, 9vw, 7.9rem); font-weight: 850; line-height: .73; letter-spacing: -.055em; }
.hero h1 em { color: var(--paper); font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.75); text-shadow: 6px 6px 0 var(--blue); }
.hero-intro { max-width: 510px; margin: 42px 0 0; color: rgba(255,255,255,.72); font-size: 1.08rem; line-height: 1.45; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  margin: 0 38px 38px 0;
  background: rgba(255,255,255,.96);
  border-radius: 7px 30px 7px 7px;
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
}

.hero-stats div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; min-height: 82px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.hero-stats div:last-child { border-bottom: 0; }
.hero-stats dt { color: var(--muted); font-size: .79rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero-stats dd { margin: 0; color: var(--blue); font-family: "degular-display", "degular", sans-serif; font-size: 2.15rem; font-weight: 820; }
.hero-stats .date-stat { font-size: 1.2rem; }

.documents-section { padding: 110px 0 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-number { margin: 0 0 15px; color: var(--blue); font-size: .75rem; font-weight: 760; letter-spacing: .13em; }
.section-heading h2 { margin: 0; padding-left: 22px; border-left: 7px solid var(--blue); font-family: "degular-display", "degular", sans-serif; font-size: clamp(3.1rem, 7vw, 5.1rem); font-weight: 850; line-height: .8; letter-spacing: -.045em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.5; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px 24px 8px 8px;
  box-shadow: var(--shadow-soft);
}

.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 15px; width: 21px; height: 21px; color: var(--muted); transform: translateY(-50%); }
.search-field input,
.year-field select { width: 100%; height: 48px; color: var(--ink); background: #fafafa; border: 1px solid var(--line); border-radius: 6px; }
.search-field input { padding: 0 18px 0 47px; }
.search-field input:focus,
.year-field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,0,219,.11); }

.year-field { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.year-field > span { position: absolute; z-index: 1; left: 14px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; pointer-events: none; }
.year-field select { padding: 0 35px 0 66px; appearance: none; cursor: pointer; }
.year-field svg { position: absolute; right: 13px; width: 18px; height: 18px; pointer-events: none; }

.documents-status { padding: 24px 2px 14px; color: var(--muted); }
.documents-list { display: grid; gap: 12px; }

.document-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  min-height: 104px;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 18px 20px 18px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px 25px 7px 7px;
  box-shadow: 0 8px 22px rgba(5,5,5,.055);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.document-row::before { position: absolute; inset: 0 auto 0 0; width: 5px; content: ""; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform 180ms ease; }
.document-row:hover { border-color: rgba(59,0,219,.32); box-shadow: 0 16px 34px rgba(59,0,219,.11); transform: translateY(-2px); }
.document-row:hover::before { transform: scaleY(1); }

.pdf-icon { display: grid; width: 58px; height: 66px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 6px 18px 6px 6px; }
.pdf-icon svg { width: 28px; height: 28px; }
.document-copy { min-width: 0; }
.document-copy h3 { overflow: hidden; margin: 0 0 8px; font-family: "degular-display", "degular", sans-serif; font-size: 1.38rem; font-weight: 760; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.document-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .88rem; }
.document-type { color: var(--blue); font-weight: 680; }
.document-year { display: inline-flex; min-width: 64px; justify-content: center; padding: 7px 12px; color: var(--ink); background: #f1f1f3; border-radius: 999px; font-size: .84rem; font-weight: 720; }
.open-label { display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.open-label svg { width: 19px; height: 19px; transition: transform 180ms ease; }
.document-row:hover .open-label svg { transform: translate(3px, -3px); }

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 45px 20px;
  background: var(--paper);
  border: 1px dashed rgba(59,0,219,.35);
  border-radius: 8px 34px 8px 8px;
  text-align: center;
}

.empty-state svg { width: 58px; height: 58px; margin: 0 auto 18px; color: var(--blue); }
.empty-state h3 { margin: 0 0 8px; font-family: "degular-display", "degular", sans-serif; font-size: 1.75rem; }
.empty-state p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.5; }

.site-footer { position: relative; color: rgba(255,255,255,.72); background: var(--ink); }
.site-footer::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: linear-gradient(90deg, var(--blue) 0 32%, rgba(255,255,255,.18) 32%); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 150px; }
.footer-inner img { width: 190px; padding: 8px; background: var(--paper); border-radius: 4px; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { font-size: .88rem; text-align: right; }

noscript { display: block; padding: 20px; color: white; background: #8d1717; text-align: center; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 64px 44px 120px; }
  .hero-stats { width: min(calc(100% - 48px), 430px); margin: -70px 24px 24px auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { max-width: 520px; }
  .document-row { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .document-year { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding-block: 38px; text-align: center; }
  .footer-inner img { margin: 0 auto; }
  .footer-inner p:last-child { text-align: center; }
}

@media (max-width: 620px) {
  .login-view { padding: 18px 12px; }
  .login-shape { top: -8%; right: -35%; width: 80vw; height: 44%; }
  .brand-card { padding: 19px 22px 21px; border-radius: 8px 8px 8px 28px; }
  .brand-card img { width: 290px; }
  .login-card { padding: 26px 20px 20px; border-radius: 8px 29px 8px 8px; }
  .header-inner,
  .footer-inner,
  .hero,
  .documents-section { width: min(calc(100% - 24px), var(--content-width)); }
  .header-inner { min-height: 68px; }
  .header-brand img { width: 128px; }
  .header-brand > span,
  .header-brand strong,
  .user-copy,
  .logout-button span { display: none; }
  .logout-button { width: 42px; justify-content: center; padding: 0; }
  .hero { margin-top: 18px; border-radius: 7px 34px 7px 7px; }
  .hero-content { padding: 46px 24px 102px; }
  .hero h1 { font-size: clamp(3.75rem, 20vw, 5.2rem); }
  .hero-intro { margin-top: 32px; }
  .hero-stats { width: calc(100% - 28px); margin: -65px 14px 14px; }
  .hero-stats div { min-height: 70px; padding: 12px 17px; }
  .hero-stats dd { font-size: 1.75rem; }
  .hero-stats .date-stat { font-size: 1rem; }
  .documents-section { padding: 78px 0 90px; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2 { font-size: 3.35rem; }
  .toolbar { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; padding: 15px; }
  .pdf-icon { width: 48px; height: 56px; }
  .document-copy h3 { white-space: normal; }
  .open-label { grid-column: 2; font-size: .9rem; }
}

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