:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --surface: #FFFFFF;
  --border: #E4E7EC;
  --text: #0B1220;
  --text-muted: #525C6E;
  --accent: #2F5BEA;
  --accent-hover: #2349C9;
  --accent-soft: #EAF0FF;
  --on-accent: #FFFFFF;

  /* Oh H***! Scorecard palette (matches the app's felt table). */
  --felt: #0F3D2E;
  --felt-light: #1B5E45;
  --live: #12805C;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .14);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-alt: #101829;
    --surface: #131C2E;
    --border: #243049;
    --text: #EEF1F6;
    --text-muted: #A3AEC2;
    --accent: #6E8FFF;
    --accent-hover: #8CA6FF;
    --accent-soft: #1A2647;
    --on-accent: #0B1220;
    --live: #4CC79A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark { border-radius: 8px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

.text-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 112px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 20%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  max-width: 17ch;
  margin-top: 16px;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 24px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.section-head h2, .contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-top: 10px;
}

/* Product */
.product {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product + .product { margin-top: 64px; }
/* Alternate the art side so consecutive apps read as distinct blocks. */
.product:nth-of-type(even) { grid-template-columns: 7fr minmax(260px, 5fr); }
.product:nth-of-type(even) .product-art { order: 2; }
.product-art {
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at 50% 40%, var(--felt-light), var(--felt) 70%);
}
/* HouseCrew palette: the marks' indigo and orange. */
.product-art-money {
  background: radial-gradient(circle at 50% 40%, #2C357A, #151A47 70%);
}
.product-art-housecrew {
  background: radial-gradient(circle at 50% 40%, #FFB088, #F2723A 70%);
}
.product-art img {
  width: min(220px, 70%);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
}
.product-body { padding: 44px 48px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-live { color: var(--live); }
.tag-soon { color: var(--accent); }

/* Groups the HouseCrew apps under their family name. */
.family {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.family-name { margin: 0; font-size: 1.15rem; font-weight: 600; }
.family-summary { margin: 4px 0 0; max-width: 640px; color: var(--text-muted); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.product h3 { font-size: 1.75rem; margin-top: 18px; }
.product-summary { color: var(--text-muted); margin: 12px 0 0; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 15px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.more-note {
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Contact */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.contact .lead { margin-top: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* 404 */
.not-found {
  min-height: calc(100vh - 68px - 90px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.not-found .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}
.not-found h1 { font-size: 1.8rem; margin-top: 16px; }
.not-found .lead { margin: 12px auto 32px; }

/* Responsive */
@media (max-width: 880px) {
  .product,
  .product:nth-of-type(even) { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-art { order: 0; }
  .product + .product { margin-top: 48px; }
  .product-art { padding: 40px; }
  .product-art img { width: 160px; }
  .product-body { padding: 32px 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(:last-child) { display: none; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 72px 0; }
  .feature-list { grid-template-columns: 1fr; }
  .product-body { padding: 28px 20px; }
  .btn-lg { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
