:root {
  --ink: #070b2d;
  --navy: #11186a;
  --navy-deep: #03082c;
  --navy-mid: #0b124f;
  --navy-soft: #e6eaf7;
  --muted: #c4c9de;
  --line: #d8deef;
  --pink: #c9037b;
  --pink-dark: #a90268;
  --panel: #ffffffd9;
  --soft: #f6f4fb;
  --success: #2c8a62;
  --error: #b7294f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5fb;
}

body::selection {
  background: rgba(201, 3, 123, 0.34);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #f3f5fb;
  content: "";
}

body::after {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  content: "";
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  padding: 86px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(600px, 1.03fr) minmax(400px, 0.9fr);
  gap: clamp(36px, 4vw, 72px);
  align-items: center;
  max-width: none;
  min-height: calc(100vh - 86px);
  margin: 0;
  padding: clamp(58px, 6vw, 92px) max(34px, calc((100vw - 1500px) / 2)) clamp(46px, 5vw, 74px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0%, rgba(246, 248, 254, 0.42) 44%, rgba(255, 255, 255, 0.12) 100%),
    url("/biblioteca-bg-balanced.png") center top / cover no-repeat;
}

.hero-copy {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 58px rgba(17, 24, 106, 0.13);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0 0 34px;
  padding: 0 28px;
  border: 1px solid rgba(17, 24, 106, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 3.35vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: none;
}

h1 span,
.countdown span,
.brand span {
  color: var(--pink);
}

.lead-strong {
  margin: 26px 0 8px;
  font-size: clamp(21px, 1.45vw, 25px);
  font-weight: 700;
  color: var(--ink);
  text-shadow: none;
}

.lead {
  max-width: 600px;
  margin: 0 0 32px;
  color: #59617b;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.38;
  text-shadow: none;
}

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

.feature-card {
  display: grid;
  justify-items: center;
  min-height: 198px;
  padding: 24px 20px 22px;
  border: 1px solid #e1e6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(17, 24, 106, 0.12);
  text-align: center;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e9edf8;
  color: var(--navy);
}

.feature-card h2 {
  margin: 18px 0 8px;
  font-size: 20px;
  line-height: 1.1;
}

.feature-card p {
  margin: 0;
  color: #3d4364;
  font-size: 16px;
  line-height: 1.35;
}

.countdown {
  max-width: 720px;
  padding: 24px 30px;
  border: 1px solid #e1e6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(17, 24, 106, 0.12);
  text-align: center;
}

.countdown p {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #ffffff;
}

.time-grid div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  place-content: center;
  border-left: 1px solid var(--line);
}

.time-grid div:first-child {
  border-left: 0;
}

.time-grid strong {
  color: #22236f;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
}

.time-grid small {
  font-size: 15px;
  font-weight: 700;
}

.signup-panel {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 640px;
  padding-top: clamp(16px, 2.6vw, 34px);
}

.brand {
  position: fixed;
  top: 24px;
  left: max(28px, calc((100vw - 1920px) / 2 + 34px));
  right: auto;
  z-index: 2;
  display: grid;
  justify-items: start;
  color: #ffffff;
  text-decoration: none;
}

.brand strong {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
}

.brand small {
  display: none;
}

.mail-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 2px solid rgba(201, 3, 123, 0.3);
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.68);
}

.panel-heading {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 44px rgba(17, 24, 106, 0.11);
  text-align: center;
}

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.15vw, 40px);
  line-height: 1.12;
  font-weight: 500;
  white-space: nowrap;
}

.panel-heading h2 span {
  color: var(--pink);
}

.panel-heading p {
  margin: 10px 0 0;
  color: #68708a;
  font-size: 20px;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  width: min(100%, 600px);
  margin: 22px auto 0;
  padding: 42px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 12, 53, 0.94);
  box-shadow: 0 24px 62px rgba(17, 24, 106, 0.24);
}

.waitlist-form label:not(.consent) span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 68px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(201, 3, 123, 0.14);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.35;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  accent-color: var(--pink);
}

button {
  min-height: 60px;
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  color: white;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.thank-you-shell {
  display: grid;
  place-items: center;
  padding-top: 118px;
  padding-bottom: clamp(22px, 3vw, 42px);
}

.thank-you-view {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 640px);
}

.thank-you-brand {
  position: fixed;
}

.thank-you-brand strong {
  font-size: clamp(30px, 3vw, 40px);
}

.thank-you-brand small {
  margin-top: 12px;
  padding-top: 8px;
  font-size: 13px;
  letter-spacing: 7px;
}

.thank-you-card {
  width: min(100%, 600px);
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid rgba(17, 24, 106, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.thank-you-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(17, 24, 106, 0.06);
}

.thank-you-pill {
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 22px;
  font-size: 12px;
}

.thank-you-card h1 {
  max-width: 500px;
  margin: 0 auto 16px;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.02;
}

.thank-you-card p {
  max-width: 500px;
  margin: 0 auto;
  color: #3d4364;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.45;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--pink);
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: white;
  font-size: 16px;
  text-align: center;
}

.form-status.success {
  color: #b9ffd9;
}

.form-status.error {
  color: #ffd4dd;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .signup-panel {
    align-self: auto;
    min-height: auto;
    padding-top: 0;
  }

  .brand {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 78px 0 0;
  }

  body::after {
    height: 78px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: auto;
    padding: 28px 22px 36px;
  }

  .hero-copy {
    display: contents;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .signup-panel {
    display: contents;
  }

  .pill {
    order: 2;
    align-self: flex-start;
    margin-bottom: 14px;
  }

  .hero h1 {
    order: 3;
    width: 100%;
  }

  .lead-strong {
    order: 4;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 4px;
  }

  .lead {
    order: 5;
    width: 100%;
    margin-bottom: 14px;
  }

  .feature-grid {
    order: 10;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .countdown {
    order: 6;
    width: 100%;
    padding: 18px 14px;
  }

  .countdown p {
    margin-bottom: 14px;
    font-size: 19px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .time-grid div {
    min-height: 70px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .time-grid div:first-child {
    border-left: 0;
  }

  .time-grid strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .time-grid small {
    font-size: clamp(11px, 3.2vw, 14px);
  }

  .brand {
    order: 1;
    align-self: flex-start;
    justify-items: start;
    margin-bottom: 0;
    top: 24px;
    left: 22px;
  }

  .brand small {
    letter-spacing: 6px;
  }

  .mail-mark {
    order: 7;
    margin-top: 2px;
    margin-bottom: 8px;
  }

  .panel-heading {
    order: 8;
    width: 100%;
    padding: 18px 16px;
  }

  .panel-heading p {
    margin-top: 6px;
  }

  .panel-heading h2 {
    white-space: normal;
  }

  .waitlist-form {
    order: 9;
    width: 100%;
    margin-top: 12px;
    padding: 28px 18px;
    border-radius: 18px;
  }

  input[type="text"],
  input[type="email"] {
    min-height: 64px;
    padding: 0 20px;
  }
}
