:root {
  color-scheme: dark;
  --bg: #11130f;
  --panel: rgba(17, 19, 15, 0.8);
  --panel-hover: rgba(17, 19, 15, 0.8);
  --line: rgba(237, 226, 202, 0.14);
  --line-strong: rgba(237, 226, 202, 0.24);
  --text: #f2efe4;
  --muted: #b7b1a2;
  --green: #a8cfa2;
  --brown: #a7835e;
  --brown-dark: #20170f;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(17, 19, 15, 0.42), rgba(17, 19, 15, 0.42)),
    url("assets/openoak_bg.webp") center / cover no-repeat;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid rgba(168, 207, 162, 0.42);
  outline-offset: 4px;
}

.page-shell,
.legal-shell {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.page-shell {
  min-height: 100svh;
}

.hero {
  display: grid;
  min-height: 52svh;
  padding: 24px 0 58px;
}

.hero-logo {
  display: block;
  width: max-content;
  margin: 0 auto clamp(76px, 13vh, 138px);
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 850;
  text-decoration: none;
}

.hero-copy {
  align-self: end;
  max-width: 960px;
}

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

h1 {
  margin-block-end: 20px;
  font-size: clamp(2.08rem, 7.6vw, 6.3rem);
  font-weight: 780;
  line-height: 0.93;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 span:first-child {
  text-align: left;
}

h1 span:last-child {
  margin-top: 0.14em;
  text-align: right;
}

.hero-copy p {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  white-space: nowrap;
}

.apps {
  padding: 48px 0 120px;
}

.apps-note {
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  text-align: center;
}

h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 740;
  line-height: 1;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.app-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.7fr) minmax(160px, auto);
  gap: 18px 22px;
  align-items: center;
  min-height: 150px;
  background: var(--panel);
  padding: 24px;
}

.app-card + .app-card {
  border-top: 1px solid var(--line);
}

.app-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(168, 207, 162, 0.22);
  border-radius: 10px;
  color: var(--green);
}

.app-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-block-start: 0;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  text-transform: uppercase;
}

.status.live {
  color: var(--green);
}

.status.tba {
  color: var(--brown);
}

h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1;
}

.app-card p {
  grid-column: 2;
  margin: 0;
  color: var(--text);
}

.app-card a {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: end;
  justify-self: end;
  color: var(--green);
  font-weight: 780;
}

.app-card a:hover {
  color: var(--text);
}

.app-note {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: end;
  justify-self: end;
  color: var(--brown);
  font-weight: 780;
}

.footer-reveal {
  position: relative;
  z-index: 2;
  min-height: clamp(220px, 34vh, 340px);
  overflow: hidden;
  background: var(--green);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.22);
}

.footer-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 0% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 56%),
    radial-gradient(120% 80% at 100% 50%, rgba(17, 19, 15, 0.24) 0%, transparent 58%);
  pointer-events: none;
}

.footer-wordmark {
  position: absolute;
  inset: -14% -22%;
  z-index: 0;
  display: grid;
  align-content: center;
  gap: clamp(6px, 1.2vw, 14px);
  pointer-events: none;
  transform: rotate(-7deg);
}

.footer-track {
  margin: 0;
  color: rgba(17, 19, 15, 0.34);
  font-size: clamp(2.8rem, 10.6vw, 8.4rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 0.82;
  white-space: nowrap;
  animation: footer-drift 24s linear infinite;
}

.footer-track--reverse {
  animation-name: footer-drift-reverse;
  animation-duration: 30s;
}

.footer-track--link {
  color: rgba(17, 19, 15, 0.62);
  user-select: none;
}

.footer-wordmark > :nth-child(1) { animation-delay: -9s; }
.footer-wordmark > :nth-child(2) { animation-delay: -4s; }
.footer-wordmark > :nth-child(3) { animation-delay: -21s; }
.footer-wordmark > :nth-child(4) { animation-delay: -12s; }
.footer-wordmark > :nth-child(5) { animation-delay: -27s; }

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

  to {
    transform: translateX(-50%);
  }
}

@keyframes footer-drift-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0%);
  }
}

.footer-actions {
  position: absolute;
  bottom: clamp(22px, 5vh, 44px);
  left: 50%;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 32px), 430px);
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(17, 19, 15, 0.28);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  transform: translateX(-50%);
}

.footer-action {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  color: #11130f;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.footer-action:hover,
.footer-action:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.legal-main {
  padding: 28px 0 76px;
}

.legal-logo {
  display: block;
  width: max-content;
  margin: 0 auto 72px;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 850;
  text-decoration: none;
}

.legal-shell {
  max-width: 780px;
}

.legal-title {
  margin: 0 0 8px;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1;
}

.legal-meta {
  margin: 0 0 42px;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 42px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-doc p {
  margin: 0 0 14px;
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-doc a {
  color: var(--green);
}

.legal-callout {
  display: block;
  width: 100%;
  margin: 6px 0 16px;
  border: 1px solid rgba(168, 207, 162, 0.34);
  border-radius: 8px;
  background: rgba(168, 207, 162, 0.08);
  padding: 12px 14px;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .footer-track {
    animation: none;
  }
}

@media (min-width: 821px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 232px;
    padding: 26px 24px 20px;
    border: 2px solid var(--line);
    border-radius: 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  }

  .app-card:hover {
    border-color: var(--line-strong);
  }

  .app-icon {
    margin-bottom: 18px;
  }

  .status {
    margin-bottom: 14px;
  }

  .app-card h3 {
    margin-bottom: 4px;
  }

  .app-card a {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
  }

  .app-card a::after {
    content: "↗";
    margin-left: auto;
    color: var(--muted);
  }

  .app-card a:hover::after {
    color: inherit;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-copy p {
    white-space: normal;
  }

  .hero-logo {
    margin-bottom: 70px;
  }

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

  .app-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
  }

  .app-card a,
  .app-note {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    margin-block-start: 10px;
  }

  .footer-reveal {
    min-height: clamp(170px, 24vh, 220px);
  }

  .footer-wordmark {
    inset: -4% -58%;
    gap: 7px;
    transform: rotate(-4deg);
  }

  .footer-track {
    font-size: clamp(1.95rem, 14.5vw, 4.4rem);
    line-height: 0.88;
  }

  .footer-actions {
    bottom: 18px;
    width: min(calc(100% - 28px), 360px);
  }

  .footer-action {
    padding-inline: 8px;
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .legal-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 50svh;
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(2.06rem, 10.5vw, 3.2rem);
  }

  .app-card {
    padding: 20px;
  }

  .legal-logo {
    margin-bottom: 54px;
  }
}
