:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --bg-rule: #e7e5e4;
  --text: #0c0a09;
  --muted: #78716c;
  --subtle: #a8a29e;

  --workout: #2563eb;
  --workout-soft: #eff6ff;
  --eatin: #ea580c;
  --eatin-soft: #fff7ed;
  --huntin: #16a34a;
  --huntin-soft: #f0fdf4;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout shell ── */

.shell {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

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

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 120ms ease, background 120ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 700 !important;
  transition: opacity 120ms ease !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  opacity: 0.82;
  background: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bg-rule);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity 120ms ease, transform 120ms ease, background 120ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.84;
}

.btn-outline {
  border-color: var(--bg-rule);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-soft);
}

/* ── Hero ── */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--bg-rule);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bg-rule);
  background: var(--bg-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero app cards */

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hcard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bg-rule);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.hcard:hover {
  border-color: currentColor;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.hcard.workout { color: var(--workout); }
.hcard.eatin   { color: var(--eatin); }
.hcard.huntin  { color: var(--huntin); }

.hcard-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hcard.workout .hcard-icon { background: var(--workout-soft); }
.hcard.eatin   .hcard-icon { background: var(--eatin-soft); }
.hcard.huntin  .hcard-icon { background: var(--huntin-soft); }

.hcard-text {
  flex: 1;
  min-width: 0;
}

.hcard-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcard-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.hcard-arrow {
  font-size: 1.1rem;
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.hcard:hover .hcard-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Divider ── */

.section-divider {
  border: none;
  border-top: 1px solid var(--bg-rule);
}

/* ── Section shared ── */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-rule);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--bg-rule);
  border-radius: 2px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 52px;
}

/* ── App cards ── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1.5px solid var(--bg-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-rule);
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: background 140ms ease;
  position: relative;
}

.app-card:hover {
  background: var(--bg-soft);
}

.app-card-accent {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 32px;
}

.app-card.workout .app-card-accent { background: var(--workout); }
.app-card.eatin   .app-card-accent { background: var(--eatin); }
.app-card.huntin  .app-card-accent { background: var(--huntin); }

.app-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.app-card.workout .app-card-tag { color: var(--workout); }
.app-card.eatin   .app-card-tag { color: var(--eatin); }
.app-card.huntin  .app-card-tag { color: var(--huntin); }

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.app-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin-bottom: 28px;
}

.app-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: gap 140ms ease;
}

.app-card.workout .app-card-link { color: var(--workout); }
.app-card.eatin   .app-card-link { color: var(--eatin); }
.app-card.huntin  .app-card-link { color: var(--huntin); }

.app-card:hover .app-card-link {
  gap: 10px;
}

/* ── Brand / About ── */

.brand-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.brand-copy h2 {
  margin-bottom: 20px;
}

.brand-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.brand-copy p:last-child {
  margin-bottom: 0;
}

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1.5px solid var(--bg-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-rule);
  align-self: start;
}

.stat-cell {
  background: var(--bg);
  padding: 32px 28px;
}

.stat-cell strong {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-cell span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Services ── */

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

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bg-rule);
  background: var(--bg-soft);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Contact / CTA ── */

.contact-section {
  padding: 88px 0 96px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px 60px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: var(--bg);
}

.contact-inner h2 {
  color: var(--bg);
  margin-bottom: 12px;
}

.contact-inner p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
}

.btn-white {
  background: var(--bg);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-white:hover {
  opacity: 0.88;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--bg-rule);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--subtle);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--subtle);
  text-decoration: none;
  transition: color 120ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Reveal animation ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-inner,
  .brand-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 64px 0 60px;
  }

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

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 36px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 65px 16px auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--bg-rule);
    background: var(--bg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    z-index: 19;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-label {
    font-size: 0.72rem;
  }

  .brand-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-inner {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
