* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Trebuchet MS", system-ui, -apple-system, sans-serif;
  color: #1f0d03;
  background: #1f0d03;
}

.sky {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 58% 45%, rgba(255, 232, 171, 0.18), transparent 21%),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(#057fc3 0%, #098fda 50%, #4db7f6 100%);
}

/* Header */

.homepage-main {
  position: relative;
  z-index: 20;
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 2rem);
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem) 1.4rem;
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(0.55rem, 1vw, 0.9rem) clamp(1rem, 3vw, 2.6rem) clamp(0.35rem, 0.8vw, 0.65rem);
}

.brand-logo {
  display: block;
  flex: 0 1 clamp(250px, 29vw, 430px);
  max-width: 48vw;
  transform: rotate(-2.5deg);
  filter:
    drop-shadow(0 4px 0 #1f0d03)
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.33));
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 5px solid #2b1003;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 242, 204, 0.48), transparent 34%),
    linear-gradient(#f8c85a, #e8921d);
  box-shadow:
    0 6px 0 #6d2a08,
    0 15px 22px rgba(0, 0, 0, 0.3);
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.62rem clamp(0.9rem, 1.5vw, 1.35rem);
  border: 3px solid transparent;
  border-radius: 15px;
  color: #1f0d03;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.88rem, 1vw, 1.08rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel a:hover {
  border-color: rgba(31, 13, 3, 0.88);
  background: rgba(255, 243, 207, 0.42);
  color: #1f0d03;
}

.nav-panel span {
  align-self: center;
  width: 3px;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(31, 13, 3, 0.38);
}

/* Hero */

.hero-shell {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(360px, 34vw, 540px));
  gap: clamp(0.5rem, 1.8vw, 1.75rem);
  align-items: center;
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 30;
  width: min(100%, 900px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 2.5vw, 2.25rem);
  border: 5px solid #1f0d03;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 19%, rgba(255, 229, 151, 0.68), transparent 23%),
    linear-gradient(#fff1c9, #ffe1a3);
  box-shadow:
    8px 9px 0 rgba(44, 16, 3, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.card-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: #9d3210;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.82rem, 0.9vw, 1.02rem);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 12.5ch;
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(3.45rem, 5.45vw, 6.25rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-copy h1 em {
  color: #b63814;
  font-style: normal;
}

.headline-rule {
  width: min(100%, 44rem);
  height: 4px;
  margin: clamp(0.85rem, 1.5vw, 1.15rem) 0 clamp(0.75rem, 1.25vw, 1rem);
  background:
    linear-gradient(90deg, #5a2108 0 45%, transparent 45% 55%, #5a2108 55% 100%);
  position: relative;
}

.headline-rule::after {
  content: "*";
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0 0.6rem;
  background: #ffe8b1;
  color: #9d3210;
  transform: translate(-50%, -50%);
}

.hero-text {
  max-width: 56rem;
  color: #1f0d03;
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  font-weight: 900;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.primary-button,
.secondary-button,
.dock-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  touch-action: manipulation;
  padding: 0.68rem 1.15rem;
  border: 4px solid #1f0d03;
  border-radius: 14px;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.86rem, 0.95vw, 1.02rem);
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 5px 0 #4b1d06,
    0 10px 18px rgba(0, 0, 0, 0.2);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.primary-button {
  color: #fff5d9;
  background: linear-gradient(#dc6b18, #b8420e);
}

.secondary-button {
  color: #fff5d9;
  background: linear-gradient(#7a310c, #4b1d06);
}

/* Character */

.ballzatram {
  position: relative;
  z-index: 25;
  justify-self: end;
  width: clamp(340px, 28vw, 520px);
  margin-left: clamp(-2.5rem, -3vw, -1rem);
  transform-origin: 50% 58%;
  animation: ballzatram-float 6s ease-in-out infinite;
}

.ballzatram img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(-5px -4px 0 rgba(255, 241, 201, 0.72))
    drop-shadow(12px 18px 0 rgba(46, 21, 8, 0.25))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
  transition: filter 0.22s ease, transform 0.22s ease;
}

.ballzatram:hover img {
  filter:
    drop-shadow(-6px -5px 0 rgba(255, 241, 201, 0.84))
    drop-shadow(14px 20px 0 rgba(46, 21, 8, 0.28))
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.28));
  transform: translateY(-0.25rem);
}

@keyframes ballzatram-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(8px);
  }

  50% {
    transform: rotate(-1.5deg) translate(0.35rem, -0.65rem);
  }
}

/* Dock */

.dock {
  position: relative;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.25rem);
  width: 100%;
}

.tool-category {
  display: grid;
  gap: 0.9rem;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(0.25rem, 1vw, 0.75rem);
}

.category-heading h2 {
  color: #fff4d4;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(31, 13, 3, 0.55);
}

.tool-category .dock {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dock-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  min-height: 300px;
  grid-column: span 2;
  padding: clamp(1rem, 1.5vw, 1.2rem);
  border: 5px solid #1f0d03;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 232, 171, 0.6), transparent 21%),
    linear-gradient(#fff0c3, #ffe3a8);
  box-shadow:
    0 7px 0 #4b1d06,
    0 14px 24px rgba(0, 0, 0, 0.24);
}

.tool-category .dock-card,
.tool-category .dock-card:nth-last-child(2),
.tool-category .dock-card:last-child {
  grid-column: span 3;
}

#games .dock-card,
#games .dock-card:nth-last-child(2),
#games .dock-card:last-child {
  grid-column: span 4;
}

.dock-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.dock-card.featured {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 229, 151, 0.45), transparent 24%),
    linear-gradient(#ffc147, #f0a12c);
}

.dock-card:nth-last-child(2),
.dock-card:last-child {
  grid-column: span 3;
}

.card-icon {
  display: grid;
  place-items: center;
  width: clamp(3.7rem, 4.1vw, 4.85rem);
  aspect-ratio: 1;
  border: 4px solid #1f0d03;
  border-radius: 50%;
  background: linear-gradient(#d95d17, #a8360c);
  color: #fff1c9;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  box-shadow: 0 4px 0 #4b1d06;
}

.card-icon.blue {
  background: linear-gradient(#0d6e9e, #095277);
}

.card-icon.purple {
  background: linear-gradient(#7d45d9, #4c248f);
}

.card-kicker {
  margin-bottom: 0.25rem;
  color: #7a310c;
  font-size: clamp(0.72rem, 0.8vw, 0.9rem);
}

.tool-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border: 2px solid rgba(31, 13, 3, 0.45);
  border-radius: 999px;
  background: rgba(255, 245, 217, 0.64);
  color: #4b1d06;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-status.live {
  background: #d6ffba;
}

.tool-status.experimental {
  background: #d9e4ff;
}

.dock-card h2 {
  margin: 0;
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2.1rem, 2.45vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: none;
}

.dock-card p {
  max-width: 36rem;
  margin: 0.5rem 0 1rem;
  color: #1f0d03;
  font-size: clamp(0.94rem, 0.95vw, 1.02rem);
  font-weight: 900;
  line-height: 1.38;
}

.dock-card a {
  width: fit-content;
  min-height: 2.65rem;
  margin-top: auto;
  padding: 0.56rem 1rem;
  color: #fff5d9;
  background: linear-gradient(#7a310c, #4b1d06);
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.45rem 1rem;
  color: #ffbd42;
  background: #1f0d03;
  border-top: 4px solid rgba(255, 189, 66, 0.25);
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.76rem, 1vw, 1rem);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  width: min(100%, 1500px);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

/* Clouds */

.cloud {
  position: absolute;
  left: -30vw;
  top: 50%;
  width: 180px;
  height: 90px;
  background: #fff4dc;
  border-radius: 50%;
  box-shadow:
    -40px 10px 0 0 #fff4dc,
    -10px -15px 0 0 #fff4dc,
    25px 5px 0 0 #fff4dc;
  opacity: 0.58;
  z-index: 2;
  animation-name: cloud-drift;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes cloud-drift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(160vw);
  }
}

.cloud.layer-back {
  opacity: 0.38;
  filter: blur(2px);
  z-index: 1;
}

.cloud.layer-front {
  opacity: 0.62;
  z-index: 3;
}

/* Medium screens */

@media (max-width: 1180px) {
  .site-header {
    align-items: center;
  }

  .brand-logo {
    flex-basis: clamp(240px, 36vw, 380px);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  }

  .ballzatram {
    width: clamp(320px, 33vw, 410px);
    margin-left: clamp(-1.5rem, -2vw, -0.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  }

  .dock-card {
    grid-column: span 3;
  }

  .dock-card:last-child {
    grid-column: 2 / span 4;
  }

  .tool-category .dock-card,
  .tool-category .dock-card:nth-last-child(2),
  .tool-category .dock-card:last-child,
  #games .dock-card,
  #games .dock-card:nth-last-child(2),
  #games .dock-card:last-child {
    grid-column: span 6;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    max-width: min(82vw, 420px);
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(100%, 840px);
    margin: 0 auto;
  }

  .ballzatram {
    justify-self: center;
    width: clamp(280px, 55vw, 380px);
    margin-left: 0;
  }

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

  .dock-card,
  .dock-card:nth-last-child(2),
  .dock-card:last-child {
    grid-column: auto;
  }

  .tool-category .dock,
  #games .dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-category .dock-card,
  .tool-category .dock-card:nth-last-child(2),
  .tool-category .dock-card:last-child,
  #games .dock-card,
  #games .dock-card:nth-last-child(2),
  #games .dock-card:last-child {
    grid-column: auto;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .homepage-main {
    padding-inline: 0.75rem;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding-inline: 0.75rem;
    text-align: center;
  }

  .brand-logo {
    width: min(92vw, 420px);
    max-width: none;
  }

  .nav-panel {
    width: 100%;
    max-width: 460px;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel a {
    min-height: 2.55rem;
    padding-inline: 0.72rem;
    font-size: 0.8rem;
  }

  .nav-panel span {
    height: 1.5rem;
  }

  .hero-copy {
    padding: 1.1rem;
    border-width: 4px;
    box-shadow:
      5px 6px 0 rgba(44, 16, 3, 0.85),
      0 14px 24px rgba(0, 0, 0, 0.24);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.45rem);
    line-height: 0.92;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  .trust-row {
    gap: 0.45rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 100%;
    min-height: 2.75rem;
    font-size: 0.88rem;
  }

  .ballzatram {
    width: clamp(240px, 78vw, 330px);
  }

  .dock {
    grid-template-columns: 1fr;
  }

  .tool-category .dock,
  #games .dock {
    grid-template-columns: 1fr;
  }

  .dock-card {
    min-height: auto;
    padding: 0.9rem;
  }

  .card-icon {
    width: 3.6rem;
    font-size: 1.7rem;
  }

  .dock-card h2 {
    font-size: 2rem;
  }

  .dock-card p {
    font-size: 0.9rem;
  }

  .site-footer {
    flex-wrap: wrap;
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

/* Tiny phones */

@media (max-width: 430px) {
  .nav-panel span {
    display: none;
  }

  .nav-panel a {
    font-size: 0.74rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .dock-card a {
    width: 100%;
  }

  .card-icon {
    width: 3.3rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Weather Prop Bot */

.weather-action {
  background: linear-gradient(#0f7f8f, #07515c);
}

.card-icon.teal {
  background: linear-gradient(#12a0aa, #07515c);
}

.weather-feature {
  background:
    radial-gradient(circle at 80% 18%, rgba(183, 248, 255, 0.5), transparent 24%),
    linear-gradient(#d6fbff, #8fe1ec);
}

.weather-bot-sky {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 244, 220, 0.34), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(113, 231, 255, 0.28), transparent 24%),
    linear-gradient(180deg, #056c9f 0%, #0787ba 38%, #45b8d9 100%);
}

.weather-page-shell {
  position: relative;
  z-index: 35;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem) 1.6rem;
}

.terminal-card,
.dashboard-card {
  border: 5px solid #1f0d03;
  border-radius: 24px;
  box-shadow:
    0 7px 0 #4b1d06,
    0 16px 28px rgba(0, 0, 0, 0.25);
}

.terminal-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(14, 68, 74, 0.08) 50%),
    radial-gradient(circle at 85% 15%, rgba(113, 231, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #123a40, #091c23 72%);
  background-size: auto, auto, 100% 100%;
  color: #e8ffff;
}

.weather-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.weather-hero h1,
.terminal-card h2,
.dashboard-card h2 {
  font-family: Impact, "Anton", system-ui, sans-serif;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.weather-hero h1 {
  margin-bottom: 0.85rem;
  color: #fff4d0;
  font-size: clamp(3.8rem, 8vw, 8.7rem);
  text-shadow: 4px 4px 0 #1f0d03;
}

.weather-subtitle {
  max-width: 58rem;
  color: #b9fbff;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.35;
}

.research-disclaimer {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border: 3px solid #ffbd42;
  border-radius: 16px;
  color: #fff5d9;
  background: rgba(120, 52, 7, 0.68);
  font-weight: 900;
  line-height: 1.45;
}

.weather-console {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: 1rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 18px;
  background: rgba(2, 12, 17, 0.58);
  font-family: "Courier New", monospace;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-left: 5px solid #6ee7f2;
  background: rgba(110, 231, 242, 0.1);
}

.console-row span,
.metric-stack span {
  color: #a9f7ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.console-row strong {
  color: #fff5d9;
  text-align: right;
}

.console-row.warning {
  border-left-color: #ffbd42;
  background: rgba(255, 189, 66, 0.14);
}

.warning-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.warning-strip p {
  padding: 0.85rem;
  border: 4px solid #1f0d03;
  border-radius: 16px;
  background: #fff1c9;
  box-shadow: 0 5px 0 #4b1d06;
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-grid,
.content-grid,
.runner-backtest-grid {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  margin-top: 1rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) minmax(250px, 0.65fr);
}

.content-grid,
.runner-backtest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  padding: 1.1rem;
  background:
    radial-gradient(circle at 82% 15%, rgba(183, 248, 255, 0.42), transparent 24%),
    linear-gradient(#fff0c3, #d8faff);
  color: #1f0d03;
}

.dashboard-card h2,
.terminal-card h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.config-list {
  display: grid;
  gap: 0.85rem;
}

.config-list label {
  display: grid;
  gap: 0.35rem;
  font-weight: 900;
}

.config-list select,
.config-list input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 3px solid #1f0d03;
  border-radius: 12px;
  background: #fffaf0;
  color: #1f0d03;
  font: 900 0.95rem "Trebuchet MS", system-ui, sans-serif;
}

.metric-stack {
  display: grid;
  gap: 0.8rem;
}

.metric-stack div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 3px solid #1f0d03;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-stack strong {
  font-size: 1.1rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-cloud span {
  padding: 0.6rem 0.75rem;
  border: 3px solid #1f0d03;
  border-radius: 999px;
  background: linear-gradient(#12a0aa, #07515c);
  color: #e8ffff;
  font-family: Impact, "Anton", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strategy-card,
.architecture-card,
.runner-card,
.backtest-card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.flow-list,
.backtest-list {
  display: grid;
  gap: 0.62rem;
  padding-left: 1.35rem;
  font-weight: 900;
  line-height: 1.4;
}

.pipeline {
  display: grid;
  gap: 0.65rem;
}

.pipeline span {
  position: relative;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  border: 3px solid #6ee7f2;
  border-radius: 13px;
  background: rgba(110, 231, 242, 0.12);
  color: #fff5d9;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.pipeline span:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 0.9rem;
  color: #ffbd42;
}

.runner-card p,
.backtest-card p {
  margin-bottom: 1rem;
  color: #d9ffff;
  font-weight: 900;
  line-height: 1.45;
}

.disabled-button {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 4px solid #1f0d03;
  border-radius: 13px;
  background: linear-gradient(#777, #444);
  color: #eaeaea;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.78;
}

.code-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.code-panel code {
  color: #b9fbff;
  font-family: "Courier New", monospace;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .weather-hero,
  .dashboard-grid,
  .content-grid,
  .runner-backtest-grid,
  .warning-strip {
    grid-template-columns: 1fr;
  }

  .weather-page-shell {
    padding-inline: 1rem;
  }
}

@media (max-width: 720px) {
  .weather-page-shell {
    padding-inline: 0.75rem;
  }

  .weather-hero,
  .dashboard-card,
  .strategy-card,
  .architecture-card,
  .runner-card,
  .backtest-card {
    border-width: 4px;
    border-radius: 20px;
  }

  .weather-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .console-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-row strong {
    text-align: left;
  }

  .weather-result-metrics {
    grid-template-columns: 1fr;
  }
}

.weather-submit {
  width: 100%;
  cursor: pointer;
}

.weather-submit:hover,
.weather-submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.alert-output {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.36);
  color: #d9ffff;
  font-weight: 900;
  line-height: 1.45;
}

.alert-output strong {
  color: #ffec99;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weather-result-card {
  display: grid;
  gap: 0.75rem;
}

.weather-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.weather-result-metrics div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(185, 251, 255, 0.28);
  border-radius: 12px;
  background: rgba(5, 34, 48, 0.62);
}

.weather-result-metrics span,
.weather-result-metrics b {
  display: block;
}

.weather-result-metrics span {
  color: #a9f7ff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-result-metrics b {
  margin-top: 0.2rem;
  color: #fff6d8;
  font-size: 1rem;
}

.status-positive {
  color: #0c5f24;
}

.status-neutral {
  color: #7a310c;
}

.primary-button:hover,
.secondary-button:hover,
.dock-card a:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.dock-card a:focus-visible,
.nav-panel a:focus-visible {
  filter: brightness(1.08);
  outline: 3px solid #fff3cf;
  outline-offset: 3px;
  transform: translateY(-1px);
}

.brand-logo:focus-visible {
  border-radius: 18px;
  outline: 4px solid #fff3cf;
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  border: 4px solid #1f0d03;
  border-radius: 999px;
  background: #fff3cf;
  color: #1f0d03;
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.trust-row span {
  border: 3px solid rgba(31, 13, 3, 0.34);
  border-radius: 999px;
  padding: 0.46rem 0.72rem;
  background: rgba(255, 255, 255, 0.42);
  color: #4b1d06;
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-transform: none;
}

.mission-panel {
  position: relative;
  z-index: 34;
  width: 100%;
  margin: 0;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  border: 4px solid rgba(31, 13, 3, 0.38);
  border-radius: 24px;
  background: rgba(6, 76, 126, 0.3);
  box-shadow:
    inset 0 0 0 3px rgba(255, 243, 207, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.mission-panel .eyebrow {
  margin-bottom: 0.35rem;
  color: #ffcf62;
  text-shadow: 2px 2px 0 rgba(31, 13, 3, 0.55);
}

.mission-panel h2 {
  max-width: 920px;
  margin: 0 0 1rem;
  color: #fff3cf;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  letter-spacing: 0.018em;
  line-height: 1.02;
  text-shadow: 4px 4px 0 rgba(31, 13, 3, 0.72);
  text-transform: uppercase;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mission-grid article {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 118px;
  padding: 1rem;
  border: 4px solid #1f0d03;
  border-radius: 18px;
  background: linear-gradient(#fff1c9, #ffd88a);
  box-shadow: 0 5px 0 #4b1d06;
}

.mission-grid strong {
  color: #9d3210;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mission-grid span {
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.38;
}

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

  .mission-panel h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

