/* HuddleHoop marketing site.
 *
 * Mirrors src/design-system/tokens.ts so the site and the app read as one
 * product. If a token changes there, change it here too — the site has no
 * build step and cannot import from the app.
 */

:root {
  --ink-900: #080c14;
  --ink-800: #101623;
  --ink-700: #171e2d;
  --ink-600: #1f2739;
  --ink-500: #2a3346;
  --ink-400: #3a4559;

  --chalk: #f7f4ef;
  --slate: #a8b1c2;
  --slate-muted: #6e7891;

  --orange-600: #e85d10;
  --orange-500: #ff6b1a;
  --orange-400: #ff8a4c;
  --orange-100: rgba(255, 107, 26, 0.14);

  --green-500: #22c55e;
  --amber-500: #f5a524;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--chalk);
  font-family:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link ---------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange-500);
  color: var(--ink-900);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 22, 35, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-500);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 19px;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--chalk);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav .nav-link {
    display: none;
  }
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange-500);
  color: var(--ink-900);
}

.btn-primary:hover {
  background: var(--orange-400);
}

.btn-secondary {
  background: transparent;
  color: var(--chalk);
  border-color: var(--ink-400);
}

.btn-secondary:hover {
  border-color: var(--slate);
  background: var(--ink-700);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--ink-500);
}

/* Court-line geometry, per the branding direction. Decorative only. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 107, 26, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 26, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 40%,
    transparent 100%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-400);
  background: var(--orange-100);
  border: 1px solid rgba(255, 107, 26, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 16ch;
}

h1 .accent {
  color: var(--orange-500);
}

.pillar-line {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--chalk);
  margin: 0 0 18px;
}

.pillar-line span {
  color: var(--slate-muted);
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--slate);
  max-width: 58ch;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--slate-muted);
}

/* Sections ----------------------------------------------------------------- */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--ink-500);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 22ch;
}

h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.section-lede {
  color: var(--slate);
  max-width: 60ch;
  margin: 0 0 40px;
}

.section-lede.tight {
  margin-bottom: 20px;
}

/* Pillar cards ------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.card.is-live {
  border-color: rgba(255, 107, 26, 0.45);
}

.card h3 {
  color: var(--chalk);
}

.card p {
  color: var(--slate);
  margin: 0;
  font-size: 15.5px;
}

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.tag-live {
  background: rgba(34, 197, 94, 0.16);
  color: var(--green-500);
}

.tag-soon {
  background: rgba(110, 120, 145, 0.18);
  color: var(--slate-muted);
}

/* Steps -------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-100);
  border: 1px solid rgba(255, 107, 26, 0.35);
  color: var(--orange-400);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.steps strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.steps span {
  color: var(--slate);
  font-size: 15px;
}

/* Chips -------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
}

/* Split panels ------------------------------------------------------------- */

.split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.panel {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}

.panel h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 12px;
}

.panel p {
  color: var(--slate);
  margin: 0 0 24px;
}

/* Markets ------------------------------------------------------------------ */

.markets {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.markets li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-weight: 700;
  font-size: 17px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--ink-500);
  padding: 56px 0 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--slate);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--chalk);
}

.footer-bottom {
  border-top: 1px solid var(--ink-600);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-muted);
  font-size: 14px;
}

/* Legal pages -------------------------------------------------------------- */

.legal {
  padding: 56px 0 80px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
  max-width: none;
  margin-bottom: 10px;
}

.legal .updated {
  color: var(--slate-muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 23px;
  margin: 40px 0 12px;
  max-width: none;
}

.legal h3 {
  font-size: 17px;
  margin: 26px 0 8px;
  color: var(--chalk);
}

.legal p,
.legal li {
  color: var(--slate);
}

.legal ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal strong {
  color: var(--chalk);
}

.callout {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0;
}

.callout p {
  margin: 0;
}

.callout.warn {
  border-left-color: var(--amber-500);
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

table.legal-table th,
table.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-500);
  vertical-align: top;
}

table.legal-table th {
  color: var(--chalk);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table.legal-table td {
  color: var(--slate);
}
