:root {
  --bg: #05080b;
  --panel: rgba(10, 19, 24, 0.84);
  --line: rgba(96, 255, 128, 0.24);
  --text: #e8f4ef;
  --muted: #9cb8b0;
  --accent: #00ff66;
  --alert: #ff6b45;
  --gold: #ffd56c;
}

@font-face {
  font-family: "umeboshi";
  src: url("./assets/umeboshi.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "umeboshi", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, rgba(0, 255, 102, 0.28), transparent),
    radial-gradient(900px 500px at 0% 40%, rgba(255, 107, 69, 0.14), transparent), var(--bg);
  overflow-x: hidden;
}

a {
  color: #d9ffe8;
}

.wrap {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 7vh 0 8vh;
}

.wrap h1,
.wrap h2,
.wrap h3 {
  margin-top: 0;
}

.wrap p,
.wrap li {
  line-height: 1.8;
  color: #d6e8e0;
}

.wrap hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.2rem 0;
}

.bg-grid,
.bg-haze {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
}

.bg-haze {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01) 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.45;
}

.site-header,
main,
.download-panel,
.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 9vh 0 5vh;
}

.kicker {
  font: 400 0.82rem/1 "umeboshi", sans-serif;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 1.2rem;
}

h1 {
  font-size: clamp(2rem, 7.4vw, 5.2rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

h1 span {
  display: block;
  font-size: clamp(1rem, 2.9vw, 2.1rem);
  color: var(--accent);
  margin-top: 0.8rem;
}

.lead {
  margin: 1.8rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.85;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.72rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #051611;
  background: linear-gradient(120deg, var(--accent), #7eff58);
  box-shadow: 0 12px 30px rgba(0, 255, 102, 0.26);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.image-slot {
  margin: 1rem 0 0;
  border: 1px dashed rgba(0, 255, 102, 0.65);
  border-radius: 14px;
  background: rgba(0, 255, 102, 0.06);
  padding: 0.65rem;
}

.image-slot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.18), rgba(0, 0, 0, 0.32));
}

.image-slot img[src=""] {
  min-height: 220px;
}

.image-slot figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-slot {
  margin-top: 1.3rem;
}

main {
  padding-bottom: 7vh;
  display: grid;
  gap: 1.05rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: clamp(1rem, 3.2vw, 2rem);
  backdrop-filter: blur(7px);
}

.panel h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.2rem, 3vw, 2.05rem);
}

.panel h3 {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
  line-height: 1.76;
  color: #d6e8e0;
}

.two-col {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.two-col article,
.card-grid article,
.route {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.route-icon-slot {
  width: min(120px, 45%);
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(0, 255, 102, 0.55);
  border-radius: 12px;
  background: rgba(0, 255, 102, 0.06);
  margin: 0 0 0.65rem;
  overflow: hidden;
}

.route-icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.18), rgba(0, 0, 0, 0.32));
}

.route.risk {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 69, 0.35);
}

.route.safe {
  box-shadow: inset 0 0 0 1px rgba(125, 255, 194, 0.3);
}

.route.speed {
  box-shadow: inset 0 0 0 1px rgba(255, 213, 108, 0.35);
}

.card-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-icon-slot {
  width: min(120px, 45%);
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(0, 255, 102, 0.55);
  border-radius: 12px;
  background: rgba(0, 255, 102, 0.06);
  margin: 0 0 0.65rem;
  overflow: hidden;
}

.card-icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.18), rgba(0, 0, 0, 0.32));
}

.alert {
  position: relative;
  overflow: clip;
}

.alert::after {
  content: "CAUTION";
  position: absolute;
  top: 0.5rem;
  right: -1.5rem;
  transform: rotate(19deg);
  color: #1b0903;
  background: var(--alert);
  font: 700 0.7rem/1 "umeboshi", sans-serif;
  letter-spacing: 0.2em;
  padding: 0.35rem 2.2rem;
}

.download-panel {
  margin-top: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 20, 15, 0.92), rgba(4, 12, 9, 0.92));
  padding: clamp(1rem, 3.2vw, 1.8rem);
}

.download-panel h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.download-card {
  border: 1px solid rgba(96, 255, 128, 0.3);
  background: rgba(8, 25, 17, 0.72);
  border-radius: 14px;
  padding: 0.9rem;
}

.download-label {
  margin: 0 0 0.75rem;
  color: #d9ffe8;
  font-weight: 700;
}

.download-btn {
  display: inline-flex;
  text-decoration: none;
  color: #e7fff0;
  border: 1px solid rgba(0, 255, 102, 0.55);
  background: rgba(0, 255, 102, 0.14);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 255, 102, 0.22);
}

.download-btn.ghost {
  background: rgba(0, 0, 0, 0.18);
}

.site-footer {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(96, 255, 128, 0.25);
  padding: 1rem 0 2rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d9ffe8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 7vh;
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}
