:root {
  --hub-ink: #10243a;
  --hub-deep: #07131f;
  --hub-primary: #006b5b;
  --hub-accent: #fac747;
  --hub-paper: #f4f1e8;
  --hub-white: #fffefa;
  --hub-line: #d6d1c5;
  --hub-muted: #68736d;
  --hub-shadow: 10px 10px 0 rgba(16, 36, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--hub-paper);
  color: var(--hub-ink);
  font-family: "TablePredict Inter", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(16, 36, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 58, 0.045) 1px, transparent 1px),
    var(--hub-paper);
  background-size: 72px 72px;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.hub-kicker,
.market-card__market,
.market-card__count,
.market-card__phases,
.market-card__open {
  font-family: "Roboto Condensed", "TablePredict Inter", Arial, sans-serif;
}

.hub-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hub-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--hub-accent);
  color: var(--hub-ink);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
  background: var(--hub-deep);
  color: #fff;
  border-top: 8px solid var(--hub-accent);
}

.hub-header > span {
  color: #aeb8bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.hub-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hub-brand__word {
  display: inline-flex;
  letter-spacing: normal;
}

.hub-brand__accent {
  color: #00d775;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background:
    linear-gradient(115deg, rgba(0, 107, 91, 0.92), rgba(16, 36, 58, 0.95)),
    var(--hub-ink);
  color: #fff;
  border-bottom: 6px solid var(--hub-accent);
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 54px, rgba(255, 255, 255, 0.045) 55px 56px);
}

.hub-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 32px;
}

.hub-kicker {
  margin: 0 0 10px;
  color: var(--hub-accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero h1,
.hub-section-heading h2,
.hub-contact h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hub-hero h1 {
  max-width: 780px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.02;
}

.hub-intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: #d6dfdc;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.hub-proof {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.hub-proof li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  color: #edf2ef;
  font-size: 13px;
  font-weight: 800;
}

.hub-proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hub-accent);
}

.hub-markets {
  padding: 28px 0 44px;
}

.hub-section-heading {
  margin-bottom: 20px;
}

.hub-section-heading h2 {
  font-size: clamp(30px, 3vw, 38px);
}

.hub-contact h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.hub-section-heading > p,
.hub-contact p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.market-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  min-width: 0;
  min-height: 322px;
  padding: 22px;
  border: 2px solid var(--hub-ink);
  border-top-width: 7px;
  background: var(--hub-white);
  box-shadow: 6px 6px 0 rgba(16, 36, 58, 0.11);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.market-card:hover,
.market-card:focus-visible {
  border-color: var(--hub-primary);
  box-shadow: 9px 9px 0 rgba(0, 107, 91, 0.2);
  outline: none;
  transform: translate(-2px, -2px);
}

.market-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--hub-line);
  background: #fff;
}

.market-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-card__market {
  color: var(--hub-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-card h3 {
  margin: 6px 0 12px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.market-card__count,
.market-card__phases {
  color: var(--hub-muted);
  font-size: 13px;
  font-weight: 750;
}

.market-card__phases {
  align-self: end;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-ink);
}

.market-card__open {
  margin-top: 12px;
  color: var(--hub-primary);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  margin-bottom: 52px;
  padding: 30px 34px;
  border: 3px solid var(--hub-ink);
  background: var(--hub-white);
  box-shadow: var(--hub-shadow);
}

.hub-contact p:not(.hub-kicker) {
  max-width: 720px;
  margin-top: 12px;
}

.hub-contact__actions {
  display: grid;
  gap: 10px;
  max-width: 310px;
}

.hub-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 2px solid var(--hub-ink);
  background: var(--hub-accent);
  color: var(--hub-ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.hub-contact__button--secondary {
  background: var(--hub-white);
}

.hub-contact__button:hover,
.hub-contact__button:focus-visible {
  background: #ffd76e;
  outline: 3px solid rgba(0, 107, 91, 0.32);
  outline-offset: 3px;
}

.hub-contact .hub-contact__status {
  margin: 0;
  color: var(--hub-primary);
  font-size: 12px;
  font-weight: 750;
}

.hub-contact__status:empty {
  display: none;
}

.hub-contact__email {
  color: var(--hub-ink);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

.hub-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.hub-footer span:last-child {
  max-width: 620px;
  text-align: right;
}

@media (max-width: 1020px) {
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hub-header {
    min-height: 52px;
    padding-inline: 14px;
    border-top-width: 6px;
  }

  .hub-header > span {
    font-size: 9px;
  }

  .hub-brand {
    font-size: 18px;
  }

  .hub-brand img {
    width: 30px;
    height: 30px;
  }

  .hub-shell {
    width: min(100% - 24px, 1180px);
  }

  .hub-hero {
    padding: 18px 0;
    border-bottom-width: 6px;
  }

  .hub-hero__inner,
  .hub-section-heading,
  .hub-contact {
    grid-template-columns: 1fr;
  }

  .hub-hero__inner {
    gap: 16px;
  }

  .hub-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hub-intro {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

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

  .hub-proof li {
    padding: 8px 8px 8px 18px;
    font-size: 11px;
    line-height: 1.25;
  }

  .hub-proof li::before {
    left: 1px;
  }

  .hub-markets {
    padding: 24px 0 36px;
  }

  .hub-section-heading {
    margin-bottom: 16px;
  }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .market-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 16px;
    min-height: 0;
    padding: 16px;
  }

  .market-card__logo {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 8px;
  }

  .market-card__market,
  .market-card h3,
  .market-card__count {
    grid-column: 2;
  }

  .market-card h3 {
    margin: 4px 0 5px;
    font-size: 22px;
  }

  .market-card__phases {
    grid-column: 1 / -1;
    margin-top: 14px;
    padding-top: 12px;
  }

  .market-card__open {
    grid-column: 1 / -1;
    margin-top: 9px;
  }

  .hub-contact {
    gap: 24px;
    margin-bottom: 38px;
    padding: 24px 20px;
  }

  .hub-contact__actions {
    width: 100%;
    max-width: none;
  }

  .hub-footer {
    display: grid;
    gap: 10px;
    padding-bottom: 26px;
  }

  .hub-footer span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
