/* fatnag promo - dark-to-fired, blunt coach, not soft wellness */

:root {
  --ink: #050507;
  --void: #0a0a0c;
  --ivory: #f4f1ea;
  --mute: rgba(244, 241, 234, 0.55);
  --faint: rgba(244, 241, 234, 0.28);
  --ember: #e85d4c;
  --ember-deep: #8a1f18;
  --lime: #c8f135;
  --glacier: #6ec8c4;
  --panel: rgba(244, 241, 234, 0.05);
  --line: rgba(244, 241, 234, 0.12);
  --max: 1120px;
  --font-display: "Syne", "Arial Black", sans-serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --font-wordmark: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}

/* Atmosphere */
.fired-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(232, 93, 76, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(110, 200, 196, 0.08), transparent 50%),
    linear-gradient(180deg, #050507 0%, #12080a 42%, #1a0a08 72%, #2a0f0c 100%);
}

.fired-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(232, 93, 76, 0.12), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(200, 241, 53, 0.05), transparent 40%);
  animation: haze-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes haze-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); opacity: 1; }
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 7, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

/* Matches iOS FatnagWordmark / FatnagWordmark.svg: system sans, fat 300 + nag 800 */
.wordmark {
  display: inline-flex;
  letter-spacing: -0.03em;
  font-family: var(--font-wordmark);
  font-size: 1.35rem;
  line-height: 1;
}

.wordmark .fat {
  font-weight: 300;
}

.wordmark .nag {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--mute);
}

.nav-links a:hover {
  color: var(--ivory);
}

.lang-picker {
  display: inline-flex;
  align-items: center;
}

.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ivory);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.45rem 1.85rem 0.45rem 0.7rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  max-width: 9.5rem;
}

.lang-picker select:hover,
.lang-picker select:focus {
  border-color: rgba(244, 241, 234, 0.28);
  outline: none;
}

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

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-meta,
html[dir="rtl"] .works-row,
html[dir="rtl"] .cta-actions,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .feature-points li {
  padding-left: 0;
  padding-right: 1.1rem;
}

html[dir="rtl"] .feature-points li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .quote-block {
  border-left: 0;
  border-right: 3px solid var(--ember);
  padding-left: 0;
  padding-right: 1rem;
}

html[dir="rtl"] .lang-picker select {
  padding: 0.45rem 0.7rem 0.45rem 1.85rem;
  background-position:
    14px 55%,
    9px 55%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--ivory);
  color: var(--ink);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ivory);
}

.btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.28);
}

.btn-ember {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: var(--ivory);
}

/* Hero - one composition */
.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: grid;
  align-items: end;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-copy {
  max-width: 34rem;
  padding-bottom: 1rem;
}

.hero-brand {
  font-family: var(--font-wordmark);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0 0 1.25rem;
}

.hero-brand .fat {
  font-weight: 300;
}

.hero-brand .nag {
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 1px;
  background: var(--ember);
  vertical-align: 0.1rem;
}

/* Phone placeholder */
.device-stage {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: end center;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 19.2;
  border-radius: 2.1rem;
  background: linear-gradient(165deg, #2a2a32, #121218 55%, #1a1520);
  border: 1px solid rgba(244, 241, 234, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 28px 60px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(232, 93, 76, 0.18);
  overflow: hidden;
  transform: rotate(-6deg) translateY(8%);
  animation: phone-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes phone-in {
  from { opacity: 0; transform: rotate(-10deg) translateY(18%) scale(0.96); }
  to { opacity: 1; transform: rotate(-6deg) translateY(8%) scale(1); }
}

.phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.1rem;
  border-radius: 999px;
  background: #050507;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 0.55rem;
  border-radius: 1.65rem;
  background:
    linear-gradient(180deg, rgba(232, 93, 76, 0.18), transparent 40%),
    linear-gradient(180deg, #12141a, #0a0c10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 0.9rem 0.9rem;
}

.shot-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.15), rgba(5, 5, 7, 0.55)),
    repeating-linear-gradient(
      -45deg,
      rgba(244, 241, 234, 0.06),
      rgba(244, 241, 234, 0.06) 8px,
      transparent 8px,
      transparent 16px
    );
  z-index: 1;
}

.shot-label strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--ivory);
}

.shot-label span {
  color: rgba(244, 241, 234, 0.7);
  font-size: 0.82rem;
  max-width: 16ch;
}

.phone-chrome {
  position: relative;
  z-index: 0;
  opacity: 0.55;
}

.fake-row {
  height: 0.55rem;
  width: 42%;
  background: rgba(244, 241, 234, 0.2);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.fake-ring {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.5rem auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(200, 241, 53, 0.55);
  box-shadow: inset 0 0 0 10px rgba(200, 241, 53, 0.08);
}

.fake-block {
  height: 3.4rem;
  border-radius: 0.65rem;
  background: rgba(244, 241, 234, 0.06);
  border: 1px solid rgba(244, 241, 234, 0.08);
  margin-bottom: 0.55rem;
}

.device-glow {
  position: absolute;
  width: 70%;
  height: 40%;
  bottom: 8%;
  left: 15%;
  background: radial-gradient(ellipse, rgba(232, 93, 76, 0.35), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  animation: glow-pulse 5s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.55; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.08); }
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 16ch;
}

.section-lead {
  margin: 0;
  color: var(--mute);
  max-width: 38ch;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

/* Works with */
.works {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  background: rgba(0, 0, 0, 0.25);
}

.works-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.works h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-list li {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mute);
  background: var(--panel);
}

/* Feature split */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature:nth-child(even) .feature-visual {
  order: -1;
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 14ch;
}

.feature-copy p {
  margin: 0 0 1.25rem;
  color: var(--mute);
  max-width: 36ch;
}

.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-points li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--lime);
  border-radius: 1px;
}

/* Screenshot placeholders grid */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #15171d, #0b0c10);
  overflow: hidden;
  min-height: 16rem;
}

.shot-card .shot-label {
  background:
    linear-gradient(180deg, rgba(232, 93, 76, 0.1), transparent 40%),
    repeating-linear-gradient(
      -45deg,
      rgba(244, 241, 234, 0.035),
      rgba(244, 241, 234, 0.035) 6px,
      transparent 6px,
      transparent 12px
    );
}

.shot-card:nth-child(2) .shot-label {
  background:
    linear-gradient(180deg, rgba(200, 241, 53, 0.1), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(244, 241, 234, 0.035), rgba(244, 241, 234, 0.035) 6px, transparent 6px, transparent 12px);
}

.shot-card:nth-child(3) .shot-label {
  background:
    linear-gradient(180deg, rgba(110, 200, 196, 0.12), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(244, 241, 234, 0.035), rgba(244, 241, 234, 0.035) 6px, transparent 6px, transparent 12px);
}

.shot-card:nth-child(4) .shot-label {
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.08), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(244, 241, 234, 0.035), rgba(244, 241, 234, 0.035) 6px, transparent 6px, transparent 12px);
}

.shot-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(5, 5, 7, 0.55);
}

/* Coach / privacy strips */
.strip {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.12), rgba(5, 5, 7, 0.4) 45%, rgba(110, 200, 196, 0.08));
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.strip-privacy {
  background: linear-gradient(135deg, rgba(110, 200, 196, 0.1), rgba(5, 5, 7, 0.5));
}

.strip p {
  color: var(--mute);
  margin: 0.75rem 0 0;
  max-width: 40ch;
}

.quote-block {
  border-left: 3px solid var(--ember);
  padding-left: 1rem;
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Final CTA */
.cta {
  text-align: center;
  padding: 6rem 0 5rem;
}

.cta .section-title {
  margin-inline: auto;
  max-width: 14ch;
}

.cta .section-lead {
  margin: 0.75rem auto 1.75rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer .wordmark {
  margin-bottom: 0.65rem;
}

.footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
  max-width: 28ch;
}

.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer a {
  color: var(--mute);
  font-size: 0.92rem;
}

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

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fired-bg::after,
  .phone,
  .device-glow {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature,
  .strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-visual {
    order: 0;
  }

  .shots {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links .hide-sm {
    display: none;
  }

  .lang-picker select {
    max-width: 7.5rem;
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .device-stage {
    min-height: 28rem;
    order: -1;
  }

  .phone {
    transform: rotate(-3deg) translateY(0);
    width: min(100%, 240px);
  }

  @keyframes phone-in {
    from { opacity: 0; transform: rotate(-6deg) translateY(12%) scale(0.96); }
    to { opacity: 1; transform: rotate(-3deg) translateY(0) scale(1); }
  }
}

@media (max-width: 520px) {
  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }
}
