:root {
  --ink: #111111;
  --muted: #6e6e6e;
  --line: #e8e8e8;
  --soft: #f6f6f4;
  --red: #e53935;
  --red-dark: #c92a27;
  --white: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 20px clamp(24px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.brand { color: var(--ink); font: 800 16px/1 "Manrope", sans-serif; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--red); }
.header-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

main { padding: 0 clamp(24px, 6vw, 96px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(48px, 8vw, 130px); align-items: end; max-width: 1280px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) 0 76px; }
.hero-copy { max-width: 860px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kicker span { width: 28px; height: 2px; background: var(--red); }
h1, h2 { font-family: "Manrope", sans-serif; }
h1 { max-width: 850px; margin: 0; font-size: clamp(43px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.06em; line-height: .98; }
h1 em { color: var(--red); font-style: normal; }
.hero-text { max-width: 680px; margin: 32px 0 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; }
.hero-note { padding: 22px 0 5px 22px; border-left: 2px solid var(--red); }
.hero-note strong { font: 700 15px/1.2 "Manrope", sans-serif; }
.hero-note p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.library { max-width: 1280px; margin: 0 auto; padding: 0 0 clamp(90px, 11vw, 150px); }
.section-heading { display: flex; justify-content: space-between; padding: 17px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-heading p { margin: 0; }
.section-heading span { color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.resource-card { display: flex; flex-direction: column; min-height: 430px; padding: 30px; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.resource-card + .resource-card { border-left: 1px solid var(--line); }
.resource-card:hover { background: var(--soft); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.resource-number { color: #b2b2b2; font: 700 13px/1 "Manrope", sans-serif; }
.resource-type { padding: 7px 10px; border: 1px solid #ddd; border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-copy { margin: auto 0; }
.card-copy h2 { max-width: 320px; margin: 50px 0 18px; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.card-copy p { max-width: 350px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.resource-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 42px; padding: 17px 0 12px; border: 0; border-top: 1px solid var(--ink); color: var(--ink); background: transparent; font-weight: 700; cursor: pointer; text-align: left; transition: color .2s ease; }
.resource-button span { font-size: 22px; transition: transform .2s ease; }
.resource-button:hover { color: var(--red); }
.resource-button:hover span { transform: translateX(5px); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 46px clamp(24px, 6vw, 96px); color: #aaa; background: var(--ink); font-size: 13px; }
.brand-footer { color: var(--white); }
.site-footer p { margin: 0; }
.copyright { text-align: right; }

.modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); animation: fade-in .2s ease both; }
.modal-dialog { position: relative; width: min(470px, 100%); padding: 48px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.28); animation: modal-in .25s ease both; }
.modal-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; border: 0; color: #777; background: transparent; font-size: 28px; cursor: pointer; }
.lock-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 25px; border-radius: 50%; color: var(--white); background: var(--red); font-size: 20px; transform: rotate(45deg); }
.modal-kicker { margin: 0 0 9px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.modal-dialog h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.modal-resource { min-height: 24px; margin: 8px 0 28px; color: var(--muted); }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.password-field { display: grid; grid-template-columns: 1fr auto; border: 1px solid #d5d5d5; transition: border-color .2s ease, box-shadow .2s ease; }
.password-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,.1); }
.password-field input { width: 100%; min-width: 0; height: 53px; padding: 0 15px; border: 0; outline: 0; }
.password-field button { padding: 0 15px; border: 0; color: var(--red); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.form-error { min-height: 20px; margin: 8px 0 4px; color: var(--red); font-size: 13px; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 19px; border: 0; color: var(--white); background: var(--red); font-weight: 700; cursor: pointer; transition: background .2s ease; }
.submit-button:hover { background: var(--red-dark); }
.submit-button:disabled { opacity: .7; cursor: wait; }
body.modal-open { overflow: hidden; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-note { max-width: 420px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 350px; }
  .resource-card + .resource-card { border-left: 0; }
  .site-footer { flex-direction: column; text-align: center; }
  .copyright { text-align: center; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .hero { padding: 66px 0 58px; }
  h1 { font-size: clamp(41px, 13vw, 58px); }
  .hero-text { margin-top: 24px; }
  .resource-card { min-height: 370px; padding: 27px 4px; }
  .section-heading span { display: none; }
  .modal-dialog { padding: 40px 24px 28px; }
  .modal-dialog h2 { font-size: 29px; }
}

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