.tool-page { min-height: 100vh; }

.tool-page .atmosphere::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 9, 18, .58), rgba(3, 9, 18, .8)),
    radial-gradient(circle at 50% 20%, transparent, rgba(3, 9, 18, .42) 68%);
}

.tool-page .storm-front { opacity: .3; }

.resource-shell {
  width: min(1180px, calc(100% - 2.5rem));
  min-height: calc(100svh - 7rem);
  margin: 0 auto;
  padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem);
}

.resource-intro { max-width: 62rem; margin-bottom: clamp(2.3rem, 6vw, 4.5rem); }
.resource-intro h1,
.service-card h2,
.song-search h2 {
  margin: 0;
  color: transparent;
  background: linear-gradient(112deg, #f9f4e7 4%, #d0b36f 20%, #fff8df 34%, #8998a4 49%, #f3e5bb 61%, #b18749 78%, #f7f2e8 96%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .08em .08em rgba(1, 6, 12, .9));
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.resource-intro h1 { font-size: clamp(3.15rem, 7vw, 6.8rem); }
.resource-intro > p:last-child { max-width: 51rem; margin: 1.5rem 0 0; color: #d6dfe4; font-size: clamp(1rem, 1.8vw, 1.18rem); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-card {
  position: relative;
  min-height: 31rem;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(231, 211, 164, .34);
  border-radius: .8rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(104, 156, 187, .14), transparent 38%),
    linear-gradient(145deg, rgba(5, 16, 29, .94), rgba(15, 39, 58, .82));
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .38), inset 0 0 4rem rgba(115, 171, 205, .04);
  backdrop-filter: blur(18px);
}

.service-card--tabs {
  background:
    radial-gradient(circle at 88% 10%, rgba(202, 164, 92, .13), transparent 38%),
    linear-gradient(145deg, rgba(5, 16, 29, .94), rgba(31, 31, 35, .84));
}

.service-card::before {
  content: "";
  position: absolute;
  inset: .6rem;
  border: 1px solid rgba(199, 206, 211, .1);
  border-radius: .55rem;
  pointer-events: none;
}

.service-card > * { position: relative; z-index: 1; }
.service-card__number { position: absolute; top: 1.3rem; right: 1.6rem; color: rgba(231, 211, 164, .19); font-family: var(--display); font-size: clamp(3.7rem, 8vw, 6.5rem); line-height: 1; }
.service-card h2 { max-width: 80%; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.service-card > p:not(.eyebrow) { max-width: 32rem; margin: 1.25rem 0 0; color: #c5d0d6; line-height: 1.7; }
.service-card ul { margin: 1.7rem 0 2rem; padding: 0; display: grid; gap: .75rem; list-style: none; }
.service-card li { position: relative; padding-left: 1.25rem; color: #95a4ad; font-size: .9rem; }
.service-card li::before { content: "✦"; position: absolute; left: 0; color: var(--champagne-300); font-size: .65rem; }
.service-card .button { width: fit-content; margin-top: auto; }

.song-search {
  margin-top: 1.25rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(231, 211, 164, .22);
  border-radius: .65rem;
  background: rgba(3, 11, 20, .76);
  backdrop-filter: blur(14px);
}

.song-search h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.song-search p:last-child { margin: .8rem 0 0; color: #9cabb4; line-height: 1.6; }
.song-search__form { display: grid; gap: .6rem; }
.song-search__form label { color: var(--champagne-200); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.song-search__form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; }
.song-search__form input {
  min-width: 0;
  min-height: 3.4rem;
  padding: .75rem .95rem;
  border: 1px solid rgba(199, 206, 211, .24);
  border-radius: .35rem;
  color: var(--white);
  background: rgba(2, 9, 16, .72);
  font: inherit;
}
.song-search__form input::placeholder { color: #697985; }
.song-search__form input:focus { border-color: var(--champagne-300); outline: none; box-shadow: 0 0 0 3px rgba(231, 211, 164, .1); }
.song-search__form button { cursor: pointer; }

.service-note { margin-top: 1.25rem; padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: .85rem; border-left: 2px solid var(--champagne-500); background: rgba(4, 13, 23, .72); backdrop-filter: blur(10px); }
.service-note > span { margin-top: .2rem; color: var(--champagne-300); font-size: .65rem; }
.service-note p { margin: 0; color: #a8b5bc; font-size: .82rem; line-height: 1.65; }
.service-note strong { color: #e2e7e9; }

@media (max-width: 760px) {
  .resource-shell { width: min(100% - 2rem, 1180px); padding-top: 7.5rem; }
  .service-grid,
  .song-search { grid-template-columns: 1fr; }
  .service-card { min-height: 28rem; }
}

@media (max-width: 520px) {
  .resource-shell { width: min(100% - 1.25rem, 1180px); }
  .service-card { padding: 1.25rem; }
  .service-card::before { display: none; }
  .service-card__number { top: .85rem; right: 1rem; }
  .service-card .button { width: 100%; }
  .song-search__form > div { grid-template-columns: 1fr; }
  .song-search__form button { width: 100%; }
}
