/* ─────────────────────────────────────────────────────────────────────────
   Rind — therinds.com
   Premium fitness-brand aesthetic. Dark canvas, warm metallic gold accents,
   confident display typography. Built to age well as more pages get added.
   ───────────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,500;1,9..144,500&display=swap");

* { box-sizing: border-box; }

:root {
  /* Surface */
  --bg: #07090C;
  --bg-grad-a: #0B1119;
  --bg-grad-b: #050708;
  --surface: #0F141B;
  --surface-elev: #161C25;
  --line: #1C2330;
  --line-strong: #2A3242;

  /* Brand */
  --gold: #F5A623;
  --gold-warm: #E6B85C;
  --gold-soft: rgba(245, 166, 35, 0.12);
  --gold-glow: rgba(245, 166, 35, 0.28);

  /* Text */
  --text: #F4F1ED;
  --text-mute: #B6BCC7;
  --text-dim: #7A8090;

  /* Layout */
  --maxw: 1180px;
  --maxw-prose: 720px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%,
                    rgba(245, 166, 35, 0.06), transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 100%,
                    rgba(245, 166, 35, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--gold-warm); }

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

/* ─── Header / footer shell ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
}
.site-header .brand img {
  width: 28px;
  height: 28px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header nav a {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  position: relative;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--gold); }
.site-header nav a.cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.site-header nav a.cta:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

main { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 50px 28px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--text-mute); font-size: 14px; }
.site-footer li a:hover { color: var(--gold); }
.site-footer .brand-block {
  display: flex; flex-direction: column; gap: 14px;
}
.site-footer .brand-block .brand-row {
  display: flex; align-items: center; gap: 12px;
}
.site-footer .brand-block img { width: 36px; height: 36px; }
.site-footer .brand-block .name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 16px;
}
.site-footer .brand-block p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.55;
}
.site-footer .legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px 36px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ─── Section primitives ─────────────────────────────────────────────── */
.section { padding: 96px 28px; }
.section.tight { padding: 64px 28px; }
.section .inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

h1.display,
h2.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
}
h1.display { font-size: clamp(40px, 6.5vw, 76px); }
h2.display { font-size: clamp(32px, 4.5vw, 52px); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-mute);
  max-width: 640px;
  line-height: 1.6;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-warm);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease,
              color 120ms ease, border-color 120ms ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 10px 32px -8px var(--gold-glow);
}
.btn-primary:hover {
  background: var(--gold-warm);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--gold-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 28px 100px;
}

/* ─── Animated background paths variant (used on the home hero) ──────── */
/* The BackgroundPaths component is layered between the gold halo and the
   hero content. Inner content sits above with z-index: 2. */
.hero-paths { isolation: isolate; }
.hero-paths > .inner { position: relative; z-index: 2; }
.hero-paths::before { z-index: 1; }

/* ─── Hero title letter-by-letter reveal ─────────────────────────────── */
.reveal-title {
  display: block;
  /* Reserve vertical space so the inbound letters don't shift layout. */
  overflow: visible;
}
.reveal-word { display: inline-block; white-space: nowrap; }
.reveal-word-accent { margin-left: 0.18em; }
.reveal-space { display: inline-block; width: 0.28em; }
.reveal-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: reveal-letter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes reveal-letter {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-letter {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.hero::before {
  /* Subtle radial gold halo behind the headline. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 35%,
                              rgba(245, 166, 35, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 22px;
  max-width: 900px;
}
.hero .lede { margin: 0 auto 36px; }
.hero .cta-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
}
.hero .eagle-bg {
  position: absolute;
  inset: auto 0 -120px 0;
  display: flex; justify-content: center;
  opacity: 0.04;
  pointer-events: none;
}
.hero .eagle-bg img { width: 70%; max-width: 880px; }

/* ─── Card grids ─────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-elev) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ─── Stat row ──────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.stats .stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
}
.stats .stat .label {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Product showcase (YallaFit) ─────────────────────────────────────── */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 36px 0;
}
.product .image-wrap {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.02));
  border: 1px solid var(--line);
  padding: 48px;
  text-align: center;
  overflow: hidden;
}
.product .image-wrap::before {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(circle at 50% 0%,
                              rgba(245, 166, 35, 0.15), transparent 60%);
  pointer-events: none;
}
.product .image-wrap img {
  position: relative;
  width: 78%;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.product .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.product .meta-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.product ul.bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 10px;
}
.product ul.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--text-mute);
  font-size: 15px;
}
.product ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 14px; height: 1px; background: var(--gold);
}

/* Reverse layout: image on the right, content on the left (used for the
   Musckles block so adjacent product cards alternate visually). */
.product.product-reverse { direction: rtl; }
.product.product-reverse > * { direction: ltr; }

/* Musckles brand panel — pure-black canvas so the ornate M (which ships
   on a black field) lives edge-to-edge without a visible image boundary.
   A subtle silver-grey vignette in the corners gives the panel depth and
   keeps it from feeling flat next to the gold-warm YallaFit panel. */
.musckles-mark {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244, 241, 237, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(120, 130, 145, 0.10), transparent 70%),
    #000;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.musckles-mark::before { display: none; }
.musckles-mark img {
  position: relative;
  width: 70% !important;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.8));
}

/* "Coming soon" variant of meta-pill — steel/silver instead of gold so the
   user reads the status at a glance without confusing it with YallaFit. */
.meta-pill.meta-pill-coming {
  background: rgba(182, 188, 199, 0.10);
  color: var(--text-mute);
}
.meta-pill.meta-pill-coming::before {
  background: var(--text-mute);
  box-shadow: 0 0 8px rgba(182, 188, 199, 0.45);
}

@media (max-width: 900px) {
  .product.product-reverse { direction: ltr; }
}

/* ─── Prose (legal docs) ─────────────────────────────────────────────── */
.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 80px 28px 120px;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.prose .doc-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.prose .doc-meta strong { color: var(--text-mute); font-weight: 600; margin-right: 6px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}
.prose p, .prose li { color: var(--text-mute); line-height: 1.75; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose hr {
  border: 0; border-top: 1px solid var(--line); margin: 36px 0;
}
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-warm); }

/* ─── Contact page ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.contact-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-elev) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.contact-card .label {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card a, .contact-card .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.contact-card a:hover { color: var(--gold); }
.contact-card p {
  margin: 8px 0 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product .image-wrap { padding: 32px; }
  .product .image-wrap img { width: 64%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 22px; }
  .hero { padding: 96px 22px 80px; }
}

@media (max-width: 560px) {
  .site-header .inner { padding: 14px 20px; gap: 14px; }
  .site-header nav { gap: 16px; }
  .site-header nav a.cta { padding: 8px 14px; font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 72px 20px 60px; }
}
