:root {
  --black: #080808;
  --charcoal: #111217;
  --ink: #191b22;
  --paper: #fbfaf7;
  --white: #ffffff;
  --silver: #c7c5be;
  --muted: #a9a399;
  --soft-muted: #6c6d73;
  --gold: #c59b45;
  --gold-deep: #8e6a25;
  --red: #e01919;
  --red-deep: #8f1010;
  --yellow: #e5b128;
  --blue: #2c6f7d;
  --green: #426d4c;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(24, 27, 34, 0.14);
  --shadow-dark: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-light: 0 22px 60px rgba(20, 23, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
}

body.theme-main {
  --page-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(135deg, rgba(197, 155, 69, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(199, 197, 190, 0.1), transparent 34%),
    var(--black);
  --surface: rgba(17, 18, 23, 0.78);
  --surface-strong: #15161b;
  --text: #f6f1e7;
  --text-soft: #c9c2b6;
  --accent: var(--gold);
  --accent-strong: var(--silver);
  --button-bg: var(--gold);
  --button-text: #080808;
  --button-border: rgba(255, 255, 255, 0.22);
  --line: var(--line-dark);
  --shadow: var(--shadow-dark);
}

body.theme-racing {
  --page-bg:
    linear-gradient(135deg, rgba(224, 25, 25, 0.2), transparent 34%),
    linear-gradient(315deg, rgba(229, 177, 40, 0.16), transparent 31%),
    #050505;
  --surface: rgba(18, 18, 18, 0.84);
  --surface-strong: #101010;
  --text: #fff7ef;
  --text-soft: #d7d2cb;
  --accent: var(--red);
  --accent-strong: var(--yellow);
  --button-bg: var(--red);
  --button-text: #ffffff;
  --button-border: rgba(229, 177, 40, 0.4);
  --line: rgba(255, 255, 255, 0.17);
  --shadow: var(--shadow-dark);
}

body.theme-ledger {
  --page-bg:
    linear-gradient(135deg, rgba(224, 25, 25, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(197, 155, 69, 0.12), transparent 34%),
    var(--paper);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: var(--ink);
  --text-soft: #575b65;
  --accent: var(--red);
  --accent-strong: var(--gold-deep);
  --button-bg: var(--red);
  --button-text: #ffffff;
  --button-border: rgba(25, 27, 34, 0.15);
  --line: var(--line-light);
  --shadow: var(--shadow-light);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.brand-logo-wide {
  width: 82px;
  object-fit: contain;
  padding: 5px;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.8vw, 1.35rem);
  font-weight: 800;
}

.brand-line {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.top-nav a {
  padding: 9px 10px;
  border-radius: 6px;
}

.top-nav a:focus-visible,
.top-nav a:hover,
.button:focus-visible,
.button:hover,
.project-card:focus-visible,
.project-card:hover {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.74fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 87px);
  padding: clamp(44px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-subdomain {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.03;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.3rem);
}

.theme-racing h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero-text {
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--button-border);
  border-radius: 6px;
  font-weight: 900;
}

.button.primary {
  background: var(--button-bg);
  color: var(--button-text);
}

.button.secondary {
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  color: var(--text);
}

.hero-media {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--surface) 84%, transparent)),
    repeating-linear-gradient(90deg, transparent 0 38px, color-mix(in srgb, var(--accent) 16%, transparent) 39px 40px);
  box-shadow: var(--shadow);
}

.main-media {
  min-height: 540px;
  padding: clamp(24px, 4vw, 54px);
}

.main-media img {
  width: min(100%, 470px);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.racing-media {
  min-height: 430px;
  padding: clamp(18px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.76)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 24px),
    #050505;
}

.racing-media img {
  width: min(100%, 920px);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.6));
}

.ledger-media {
  min-height: 560px;
  padding: clamp(12px, 2.5vw, 26px);
  background: #ffffff;
}

.ledger-media img {
  width: min(100%, 760px);
  border-radius: 4px;
}

.network-section,
.roadmap-section,
.feature-section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.network-section,
.feature-section {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.theme-ledger .network-section,
.theme-ledger .feature-section {
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
}

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

.project-card,
.feature-card,
.roadmap-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.project-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.project-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--accent);
}

.racing-card::after {
  background: var(--red);
}

.ledger-card::after {
  background: var(--gold);
}

.reserved-card::after {
  background: var(--silver);
}

.card-status {
  align-self: flex-start;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-status.live {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.card-image {
  position: relative;
  display: grid;
  width: 100%;
  height: 160px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ledger-card .card-image {
  background: #ffffff;
}

.ledger-card .card-image img {
  object-fit: cover;
  object-position: top center;
}

.wide-image {
  background: #050505;
}

.wide-image img {
  position: relative;
  z-index: 2;
  padding: 8px;
}

.racing-card .card-image {
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 220, 122, 0.92) 0 10%, rgba(224, 25, 25, 0.66) 18%, transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 134, 31, 0.85) 0 9%, rgba(160, 20, 12, 0.62) 20%, transparent 38%),
    radial-gradient(circle at 54% 34%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(145deg, #050505 0%, #151515 44%, #050505 100%);
}

.racing-card .card-image::before,
.racing-card .card-image::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.racing-card .card-image::before {
  inset: -22px -18px;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(ellipse at 52% 38%, rgba(180, 180, 180, 0.28), transparent 32%),
    radial-gradient(ellipse at 84% 48%, rgba(255, 255, 255, 0.28), transparent 30%);
  filter: blur(12px);
  opacity: 0.78;
  z-index: 0;
}

.racing-card .card-image::after {
  inset: auto -18px 12px -18px;
  height: 66px;
  background:
    repeating-linear-gradient(166deg, transparent 0 13px, rgba(0, 0, 0, 0.68) 13px 18px, transparent 18px 31px),
    linear-gradient(90deg, transparent, rgba(224, 25, 25, 0.38), rgba(229, 177, 40, 0.36), transparent);
  opacity: 0.72;
  transform: skewY(-4deg);
  z-index: 1;
}

.reserved-image img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  opacity: 0.72;
}

.project-url {
  width: 100%;
  color: var(--accent-strong);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.08;
}

.project-summary {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.ledger-tools {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
}

.feature-card span,
.roadmap-list span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 900;
}

.feature-card h3,
.roadmap-list h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.feature-card p,
.roadmap-list p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.roadmap-section {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 44%),
    var(--page-bg);
}

.roadmap-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.roadmap-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 22px;
}

.roadmap-list span {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .project-grid,
  .feature-grid,
  .ledger-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .hero-subdomain {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .main-media,
  .ledger-media {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo-wide {
    width: 70px;
  }

  .brand-line {
    display: none;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-nav a {
    padding-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.25rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media,
  .main-media,
  .ledger-media {
    min-height: 310px;
  }

  .ledger-media {
    padding: 8px;
  }

  .project-grid,
  .feature-grid,
  .ledger-tools,
  .roadmap-list article {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 350px;
  }

  .site-footer {
    flex-direction: column;
  }
}
