/* kfitness.app — landing page styles */

:root {
  --bg: #0b0d10;
  --bg-soft: #12161b;
  --bg-card: #171c23;
  --line: #242b34;
  --text: #f2f5f8;
  --text-dim: #a8b3c1;
  --accent: #ff5a1f;
  --accent-soft: #ff7a45;
  --radius: 16px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  flex: none;
}

.brand-dim { color: var(--text-dim); font-weight: 600; }

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s;
}
.site-header nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16), transparent 68%);
  top: -280px;
  right: -220px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 800;
}

.lede {
  font-size: 1.09rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 32px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }

.hero-art img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- sections ---------- */

.section-h {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 40px;
}

.pillars { padding: 72px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }

.pillar-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); }

.pillar-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.pillar h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 800; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* ---------- apps ---------- */

.apps { padding: 88px 0; }

.app-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.app-row:last-child { margin-bottom: 0; }
.app-row.reverse .app-media { order: 2; }

.app-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.app-copy h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.app-copy p { margin: 0; color: var(--text-dim); font-size: 1.02rem; max-width: 58ch; }

/* ---------- workouts ---------- */

.workouts { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }

.workout-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.card h3 {
  margin: 0;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 700;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-dim);
}

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

.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.legal { padding: 64px 0 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.legal .updated { color: var(--text-dim); margin: 0 0 40px; font-size: 0.94rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-dim); max-width: 74ch; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-soft); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 60px 0 68px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 340px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .app-row { grid-template-columns: 1fr; gap: 26px; margin-bottom: 52px; }
  .app-row.reverse .app-media { order: 0; }
  .apps, .workouts { padding: 64px 0; }
}

@media (max-width: 560px) {
  .site-header nav { gap: 18px; font-size: 0.88rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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