/* Taash landing page. Logical properties only (AGENTS.md rule 10), so RTL is a copy change. */
:root {
  --felt: #0b3d2e;
  --felt-deep: #072a20;
  --felt-light: #115740;
  --cream: #f3efe4;
  --ink: #1a1a1a;
  --red: #d6283b;
  --gold: #e8b64c;
  --muted: rgba(243, 239, 228, 0.72);
  --line: rgba(243, 239, 228, 0.14);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    'Outfit',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 50% -10%, var(--felt-light), transparent 70%), var(--felt-deep);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.wrap {
  max-inline-size: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7, 42, 32, 0.72);
  border-block-end: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  block-size: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  inline-size: 34px;
  block-size: 34px;
}

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

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--cream);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(232, 182, 76, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-small {
  padding: 9px 18px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding-block: 72px 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  margin-block: 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.lead {
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--muted);
  max-inline-size: 34ch;
}

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

.note {
  margin-block-start: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Fanned cards: seat geometry, so physical transforms are fine here */
.fan {
  position: relative;
  block-size: 380px;
}

.card {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 20px;
  inline-size: 170px;
  block-size: 240px;
  margin-inline-start: -85px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 120%;
  font-weight: 800;
  animation: deal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card .corner {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 14px;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.card .corner.end {
  inset-block: auto 10px;
  inset-inline: auto 14px;
  transform: rotate(180deg);
}

.card .pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 88px;
}

.card.red {
  color: var(--red);
}

.card:nth-child(1) {
  --r: -24deg;
  animation-delay: 0.05s;
}
.card:nth-child(2) {
  --r: -8deg;
  animation-delay: 0.15s;
}
.card:nth-child(3) {
  --r: 8deg;
  animation-delay: 0.25s;
}
.card:nth-child(4) {
  --r: 24deg;
  animation-delay: 0.35s;
}

.card {
  transform: rotate(var(--r));
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(80px) rotate(0deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

/* Sections */
section {
  padding-block: 80px;
}

.section-head {
  text-align: center;
  margin-block-end: 48px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-inline-size: 52ch;
}

.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(243, 239, 228, 0.07), rgba(243, 239, 228, 0.02));
}

.game .suit {
  position: absolute;
  inset-block-start: -30px;
  inset-inline-end: -10px;
  font-size: 180px;
  line-height: 1;
  opacity: 0.08;
}

.game h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.game .tag {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 600;
}

.game p {
  color: var(--muted);
}

.game ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.game li + li {
  margin-block-start: 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--line);
}

.feature .icon {
  display: grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  margin-block-end: 14px;
  border-radius: 12px;
  background: rgba(232, 182, 76, 0.14);
  color: var(--gold);
  font-size: 22px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  margin-block-end: 12px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--felt);
  font-weight: 800;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.final {
  text-align: center;
}

.final .panel {
  padding: 56px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--felt-light), var(--felt));
  border: 1px solid var(--line);
}

.final p {
  margin: 0 auto 28px;
  color: var(--muted);
  max-inline-size: 44ch;
}

/* Footer */
footer {
  padding-block: 36px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

footer nav {
  display: flex;
  gap: 20px;
}

/* Prose pages (privacy) */
.prose {
  max-inline-size: 760px;
  padding-block: 56px 80px;
}

.prose h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.prose h2 {
  margin-block-start: 40px;
  font-size: 24px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--gold);
}

@media (max-width: 860px) {
  .hero .wrap,
  .games,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 40px 56px;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .fan {
    block-size: 280px;
    order: -1;
  }

  .card {
    inline-size: 124px;
    block-size: 176px;
    margin-inline-start: -62px;
  }

  .card .pip {
    font-size: 64px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  section {
    padding-block: 56px;
  }
}

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

  .card {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
