/* ============================================================
   LockedIn Gym Tracker Log — bright, white, sporty theme
   (separate from the dark studio site)
   ============================================================ */

:root {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-alt: #f4f6f8;
  --text:        #0b0c12;
  --muted:       #5c6471;
  --line:        rgba(12, 16, 28, 0.10);
  --line-strong: rgba(12, 16, 28, 0.16);
  --accent:      #ee1c34;
  --accent-2:    #ff4b2e;
  --radius:      20px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:      0 14px 36px -16px rgba(15, 20, 35, 0.20);
  --shadow-lg:   0 28px 64px -22px rgba(15, 20, 35, 0.26);
  --maxw:        1120px;
  --font:        'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display:     'Sora', var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg); color: var(--text); font-family: var(--font);
  background-image: radial-gradient(rgba(12, 16, 28, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
.brand__name, .hero__title, .zone__title, .node__title,
.benefit__title, .step__title, .cta__title { font-family: var(--display); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.7); } }
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------- animated logo ---------- */
.logo { width: 34px; height: 34px; overflow: visible; }
.logo__ring { transform-origin: 20px 20px; }
.logo .r1 { animation: spin 6s linear infinite; }
.logo .r2 { animation: spin 4s linear infinite reverse; }
.logo__core { transform-origin: 20px 20px; animation: pulse 2.4s ease-in-out infinite; }
.brand:hover .logo .r1 { animation-duration: 1.6s; }
.brand:hover .logo .r2 { animation-duration: 1.1s; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding: 16px 24px; }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.nav--scrolled .nav__inner { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand__name {
  font-weight: 800; font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); display: inline-flex; align-items: baseline;
}
.brand__name-in { color: var(--accent); }
.brand__name-accent {
  color: var(--muted); font-weight: 600; font-size: 0.82em; letter-spacing: 0.2em;
  margin-left: 0.55em; border-left: 1px solid var(--line-strong); padding-left: 0.55em;
}
.nav__menu { display: flex; gap: 4px; justify-self: center; }
.nav__link {
  font-size: 0.94rem; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-alt); }
.nav__contact {
  justify-self: end; font-weight: 700; font-size: 0.92rem; color: #fff;
  padding: 10px 20px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px -10px rgba(238, 28, 52, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.nav__contact:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px -10px rgba(238, 28, 52, 0.7); }

/* ---------- shared widths ---------- */
main { position: relative; z-index: 1; }
.hero, .zone { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 64px; padding-bottom: 80px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40px 0 auto 0; height: 460px; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(238, 28, 52, 0.10), transparent 70%);
}
.emblem { width: 116px; height: 116px; margin: 0 auto 26px; filter: drop-shadow(0 12px 26px rgba(238, 28, 52, 0.28)); }
.emblem svg { width: 100%; height: 100%; overflow: visible; }
.em-ring { transform-origin: 60px 60px; }
.em-ring.e1 { animation: spin 14s linear infinite; }
.em-ring.e2 { animation: spin 9s linear infinite reverse; }
.em-ring.e3 { animation: spin 6s linear infinite; }
.em-core { transform-origin: 60px 60px; animation: pulse 2.6s ease-in-out infinite; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent); padding: 8px 16px; border-radius: 100px;
  background: rgba(238, 28, 52, 0.08); border: 1px solid rgba(238, 28, 52, 0.22); margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.hero__title { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; }
.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmer 5s linear infinite;
}
.hero__subtitle { max-width: 44ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero__badges li {
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  padding: 7px 15px; border-radius: 100px; background: var(--surface-alt); border: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 700; padding: 14px 26px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 30px -12px rgba(238, 28, 52, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(238, 28, 52, 0.7); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface-alt); }

/* ---------- section headings ---------- */
.zone { padding-top: 86px; scroll-margin-top: 88px; }
.zone__head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; }
.zone__title { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.zone__title::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 16px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.zone__sub { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }
.zone__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }

/* ---------- cards / prose ---------- */
.node {
  display: flex; flex-direction: column; gap: 12px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.node--wide { align-items: center; text-align: center; }
.node__text { color: var(--muted); }
.node__text--lead { font-size: 1.15rem; line-height: 1.75; color: #2b313b; max-width: 60ch; }
.node__text a { color: var(--accent); font-weight: 700; }
.node__text a:hover { text-decoration: underline; }
.node__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.tag {
  align-self: center; font-size: 0.78rem; font-weight: 700; color: var(--accent);
  padding: 5px 12px; border-radius: 100px; background: rgba(238, 28, 52, 0.1); border: 1px solid rgba(238, 28, 52, 0.22);
}

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px -8px rgba(238, 28, 52, 0.55);
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefit__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.benefit__text { color: var(--muted); }

/* ---------- features ---------- */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
.feature {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature__icon {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 18px -8px rgba(238, 28, 52, 0.5);
}
.feature__icon svg { width: 17px; height: 17px; }
.feature > span:last-child { color: var(--text); font-weight: 600; line-height: 1.45; }

/* ---------- how it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  display: flex; flex-direction: column; gap: 12px; padding: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 22px -8px rgba(238, 28, 52, 0.55);
}
.step__title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.step__text { color: var(--muted); }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 880px; margin: 0 auto; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; }
.phone {
  position: relative; width: 100%; max-width: 232px; aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 34px;
  background: linear-gradient(160deg, #15171c, #05060a);
  box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.phone:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -22px rgba(15, 20, 35, 0.4); }
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 25px; overflow: hidden;
  background: linear-gradient(160deg, #eef0f3, #dfe3e8);
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.phone__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  text-align: center; font-size: 0.82rem; line-height: 1.5; color: #8a93a0; font-weight: 600;
}
.shot__caption { color: var(--muted); font-size: 0.95rem; max-width: 24ch; text-align: center; }

/* ---------- faq ---------- */
.faq { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: box-shadow 0.3s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-lg); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1; transition: transform 0.3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 22px 20px; margin-top: -4px; }

/* ---------- final CTA ---------- */
.cta {
  text-align: center; padding: 64px 32px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 30px 60px -22px rgba(238, 28, 52, 0.5);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cta__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.cta__text { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 44ch; }
.cta .hero__actions { margin-top: 14px; }
.cta .btn--primary { color: var(--accent); background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.3); }
.cta .btn--primary:hover { background: #fff; filter: none; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- footer ---------- */
.footer { margin-top: 96px; padding-bottom: 48px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 0;
  display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line);
}
.footer__sig { display: inline-flex; align-items: center; gap: 12px; }
.footer__copy { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ---------- full-width bands (texture / blocks) ---------- */
.zone--band, .zone--dark { position: relative; padding-top: 82px; padding-bottom: 82px; }
.zone--band > *, .zone--dark > * { position: relative; }
.zone--band::before, .zone--dark::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
}
.zone--band::before { background: var(--surface-alt); }
.zone--dark::before { background: radial-gradient(80% 120% at 50% 0%, rgba(238, 28, 52, 0.16), transparent 55%), #0c0d12; }

/* dark band content */
.zone--dark .zone__title { color: #fff; }
.zone--dark .zone__sub { color: rgba(255, 255, 255, 0.6); }
.zone--dark .node,
.zone--dark .benefit,
.zone--dark .step,
.zone--dark .feature {
  background: #16181f; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.7);
}
.zone--dark .node__title,
.zone--dark .benefit__title,
.zone--dark .step__title,
.zone--dark .feature > span:last-child { color: #fff; }
.zone--dark .node__text,
.zone--dark .benefit__text,
.zone--dark .step__text { color: rgba(255, 255, 255, 0.62); }
.zone--dark .node__text--lead { color: rgba(255, 255, 255, 0.8); }
.zone--dark .node__text a { color: #ff6f5c; }
.zone--dark .tag { background: rgba(238, 28, 52, 0.2); border-color: rgba(238, 28, 52, 0.45); color: #ff8273; }
.zone--dark .phone { box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.zone--dark .shot__caption { color: rgba(255, 255, 255, 0.62); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .benefits, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
  .phone { max-width: 250px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { padding: 12px; }
  .nav__inner { grid-template-columns: auto 1fr; gap: 12px 8px; padding: 10px 12px; }
  .brand { grid-column: 1; }
  .nav__contact { grid-column: 2; padding: 8px 14px; font-size: 0.86rem; }
  .nav__menu { grid-column: 1 / -1; justify-self: center; flex-wrap: wrap; justify-content: center; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
