:root {
  --bg: #0f1f2e;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #5f6e7c;
  --line: #d7e1ea;
  --blue: #12314a;
  --blue-2: #0b466b;
  --link: #0a5f97;
  --soft: #edf4f8;
  --sky: #5fa8d3;
  --field: #78926a;
  --sand: #d9b878;
  --shadow: rgba(10, 22, 34, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(95, 168, 211, 0.18), transparent 34rem),
    linear-gradient(180deg, #0f1f2e 0%, #14293a 32%, #edf2f5 32%, #f4f6f8 100%);
  color: var(--ink);
}
a { color: var(--link); }
img { max-width: 100%; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 48px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 10px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.menu-wrap {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 20;
}
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.menu-button:hover { border-color: #8fa8bd; }
.menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  width: 255px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(23, 33, 43, 0.18);
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: block;
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
}
.menu-panel a:hover { background: var(--soft); }

.hero, .panel, .content-page, .info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(10, 22, 34, 0.08);
}
.hero {
  padding: 22px 24px;
  margin-bottom: 18px;
}
.video-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0e2235;
  color: #ffffff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 29, 0.78) 0%, rgba(7, 18, 29, 0.48) 45%, rgba(7, 18, 29, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 18, 29, 0.10) 0%, rgba(7, 18, 29, 0.74) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #b9dff2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.44);
}
.hero p {
  margin: 0;
  color: #edf7fb;
  font-size: 17px;
  line-height: 1.55;
  max-width: 820px;
}
.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.button.secondary { background: #ffffff; color: var(--blue); }


.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.tool-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px var(--shadow);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
  z-index: 0;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: #8fa8bd;
  box-shadow: 0 12px 24px rgba(23, 33, 43, 0.14);
}
.tool-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.72);
}
.jump-card { background-image: url("/images/jumprun-card.png"); }
.cutaway-card { background-image: url("/images/cutaway-card.png"); }
.forecast-card { background-image: url("/images/forecast-card.png"); }
.masn-card {
  background-image: url("/images/masn-card.png");
  background-color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.masn-card::before { background: linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.32)); }

.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card, .panel, .content-page {
  padding: 18px 20px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.info-card h2, .panel h2, .content-page h1, .content-page h2, .content-page h3 { color: var(--blue); }
.info-card h2, .panel h2 { margin: 0 0 8px; font-size: 21px; }
.info-card h3, .content-page h3 { margin: 18px 0 7px; }
.info-card p, .panel p, .content-page p { color: var(--muted); margin: 0 0 10px; }
.content-page h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; }
.content-page h2 { margin: 22px 0 8px; font-size: 23px; }
.content-page ul, .content-page ol { color: var(--muted); margin: 0 0 12px; padding-left: 22px; }
.content-page li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 12px 0 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; text-align: left; }
th { background: var(--soft); color: var(--blue); }

.figure { margin: 16px 0; }
.figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}
.figure figcaption { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.45; }
.about-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.about-photo { width: 100%; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; box-shadow: 0 8px 18px rgba(23, 33, 43, 0.08); }
.masn-logo { display: flex; justify-content: center; align-items: center; margin: 4px 0 18px; }
.masn-logo img { display: block; width: min(420px, 100%); height: auto; object-fit: contain; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.coffee-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: center; }
.venmo-qr { width: 100%; max-width: 270px; justify-self: end; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: 0 8px 18px rgba(23, 33, 43, 0.08); }
.support-handle { display: inline-block; margin-top: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }

footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.footer-left { max-width: 580px; }
.powered-by { margin-top: 6px; }
.footer-links { text-align: right; white-space: nowrap; }
.footer-links a { margin-left: 14px; cursor: pointer; color: var(--link); }

@media (max-width: 1000px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { padding-top: 14px; }
  .topbar { justify-content: flex-start; padding-right: 54px; }
  .brand-name { font-size: 21px; }
  .hero h1 { font-size: 28px; }
  .tools, .grid-2, .about-layout, .coffee-layout { grid-template-columns: 1fr; }
  .tool-card { min-height: 155px; }
  .about-photo { max-width: 380px; }
  .venmo-qr { justify-self: start; max-width: 300px; }
  .footer-row { display: block; }
  .footer-links { margin-top: 12px; text-align: left; white-space: normal; }
  .footer-links a { display: inline-block; margin: 0 14px 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .video-hero { background-image: url("/videos/hero-poster.jpg"); background-size: cover; background-position: center; }
}
