/* DFMRT Cloud Platform — splash page.
   Mountain Rescue palette: MREW blue, cross red, snow white; medicines blue and
   equipment teal match the two platforms' own themes. No JavaScript, no
   external fonts. */

:root {
  --sky-top: #0a1730;
  --sky-mid: #14305f;
  --sky-low: #2a5297;
  --mrew-blue: #1f3d8c;
  --cross-red: #d81f26;
  --snow: #f6f8fb;
  --ink: #0d1b33;
  --meds: #2b63d9;
  --meds-deep: #1c46a3;
  --equip: #14857a;
  --equip-deep: #0d6158;
  --card: rgba(255, 255, 255, 0.96);
  --focus: #ffd23f;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--snow);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- ridges */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46vh;
  display: block;
}
.ridge-far  { fill: #1c3a74; opacity: .85; height: 52vh; }
.ridge-mid  { fill: #122a58; height: 42vh; }
.ridge-near { fill: #0a1a3a; height: 30vh; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(100% - 2rem, 62rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) 0 2rem;
  text-align: center;
}

.crest {
  width: clamp(96px, 16vw, 132px);
  height: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35), 0 0 0 5px rgba(255, 255, 255, .12);
}

.eyebrow {
  margin: 1.4rem 0 .4rem;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9d6f2;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.lead {
  margin: .9rem auto 0;
  max-width: 34rem;
  font-size: 1.08rem;
  color: #dbe4f7;
}

/* ---------------------------------------------------------------- tools */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin: 2.4rem auto 0;
  max-width: 50rem;
  text-align: left;
}

.tool {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool:hover, .tool:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .42);
}
.tool:focus-visible {
  outline: none;
  border-color: var(--focus);
}

.icon {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 16px;
  color: #fff;
}
.icon svg { width: 4rem; height: 4rem; fill: currentColor; stroke: currentColor; }
.tool-meds  .icon { background: linear-gradient(160deg, var(--meds), var(--meds-deep)); }
.tool-equip .icon { background: linear-gradient(160deg, var(--equip), var(--equip-deep)); }

.text { display: grid; gap: .2rem; min-width: 0; }
.name { font-size: 1.3rem; font-weight: 700; }
.tool-meds  .name { color: var(--meds-deep); }
.tool-equip .name { color: var(--equip-deep); }
.desc { font-size: .93rem; color: #3b4a66; line-height: 1.35; }
.url  { font-size: .85rem; color: #6b7a96; font-variant-numeric: tabular-nums; }
.url::before { content: "→ "; }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  font-size: .85rem;
  color: #dbe4f7;
}
.foot p { margin: .25rem 0; }
.foot .muted { color: #a9b8d9; }

@media (max-width: 480px) {
  .eyebrow { font-size: .8rem; letter-spacing: .1em; }
  .tool { grid-template-columns: 4.25rem 1fr; padding: 1rem; }
  .icon { width: 4.25rem; height: 4.25rem; }
  .icon svg { width: 3.3rem; height: 3.3rem; }
  .ridge-far { height: 40vh; }
  .ridge-mid { height: 32vh; }
  .ridge-near { height: 22vh; }
}

@media (prefers-reduced-motion: reduce) {
  .tool { transition: none; }
  .tool:hover, .tool:focus-visible { transform: none; }
}
