/* ==========================================================================
   Perform — Home page
   Page-specific sections built on the Perform design system (perform.css):
   same tokens, same --skew / --bevel geometry, same motion.
   ========================================================================== */

/* Root guard: keep the layout viewport at device width so a slide-in
   reveal or a wide row can never stretch the page or the fixed header. */
html { overflow-x: hidden; }

[hidden] { display: none !important; }
.is-hidden { display: none !important; }

/* ------------------------------------------------------- header auth ----- */
.nav-login { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.nav-status {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; color: var(--navy);
  background: var(--surface); box-shadow: inset 0 0 0 1.6px var(--line);
  transition: color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-status:hover { color: var(--blue); box-shadow: inset 0 0 0 1.6px var(--blue); }
.nav-status svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --------------------------------------------------------------- hero ---- */
/* Animated media restored as a full-bleed hero background, behind a navy
   scrim that keeps the brand colour and the text contrast. */
.hero {
  display: flex; align-items: center;
  min-height: clamp(600px, 92vh, 940px);
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Desktop: the video is a large right-hand panel covering well over half the
   hero, filled edge to edge; its left edge feathers into the navy so there's
   no hard seam, and the headline is dialled down for the narrower copy
   column. Mobile keeps `cover` so the portrait media fills the hero. */
@media (min-width: 768px) {
  .hero-bg-video {
    left: auto; width: 60%;
    object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%);
    mask-image: linear-gradient(to right, transparent 0, #000 13%);
  }
  .hero .display { font-size: clamp(2.6rem, 3.7vw, 3.6rem); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(7, 20, 40, 0.97) 0%,
      rgba(8, 24, 47, 0.9) 34%,
      rgba(9, 28, 55, 0.62) 66%,
      rgba(11, 42, 82, 0.42) 100%
    ),
    linear-gradient(0deg, rgba(8, 24, 47, 0.72) 0%, rgba(8, 24, 47, 0) 30%);
}
.hero::after { z-index: 2; }
.hero .wrap { position: relative; z-index: 3; }
.hero-copy { max-width: 30rem; }
.hero-tag {
  position: absolute; z-index: 3;
  right: var(--pad); bottom: clamp(4rem, 10vw, 7rem);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.72rem 1.05rem 0.72rem 0.85rem;
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 0.84rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 22px 36px -20px rgba(0, 0, 0, 0.6);
}
.hero-tag .slashes i { width: 0.85rem; height: 0.85rem; }
.hero-cred {
  margin-top: 1.1rem; max-width: 33rem;
  font-size: 0.92rem; line-height: 1.6; color: var(--mist);
}
.hero-downloads { gap: 0.9rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.92rem 1.5rem; font-weight: 700; font-size: 0.9rem;
  background: var(--surface); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.3s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ----------------------------------------------------------- programs ---- */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: clamp(2.6rem, 5vw, 4.2rem);
}
.program {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
  filter: drop-shadow(0 20px 22px rgba(8, 24, 47, 0.13));
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.program:hover { transform: translateY(-8px); filter: drop-shadow(0 30px 30px rgba(8, 24, 47, 0.2)); }
.program__media { overflow: hidden; }
.program__media img {
  width: 100%; height: 230px; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.program:hover .program__media img { transform: scale(1.055); }
.program__body {
  display: flex; flex-direction: column; gap: 0.45rem; flex: 1;
  padding: clamp(1.5rem, 2vw, 2rem);
}
.program__body .slashes { margin-bottom: 0.25rem; }
.program h3 {
  font-size: 1.36rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.program__meta {
  font-size: 0.78rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.program__sub {
  margin-top: 0.7rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--steel);
}
.program__list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.1rem; }
.program__list li {
  display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--steel); line-height: 1.5;
}
.program__list li::before {
  content: ""; flex: none; margin-top: 0.42rem;
  width: 0.85rem; height: 0.42rem; background: var(--blue);
  transform: skewX(var(--skew));
}
.program__proof {
  margin-top: 0.3rem; font-size: 0.93rem; font-weight: 600; color: var(--ink);
}
.program__motto {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--navy);
}
.program__motto::before {
  content: ""; flex: none; width: 1.3rem; height: 0.5rem;
  background: var(--blue); transform: skewX(var(--skew));
}

/* ------------------------------------------------------------ who -------- */
.who { position: relative; color: #fff; overflow: hidden; }
.who::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(158deg, var(--navy) 0%, var(--ink) 100%);
  clip-path: polygon(0 4.5vw, 100% 0, 100% 100%, 0 100%);
}
.who .wrap { position: relative; z-index: 1; }
.who-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.who-copy p { color: #c6d2e6; font-size: 1.05rem; margin-bottom: 0.85rem; }
.who-equation {
  margin-top: 1.4rem; font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.32; color: #fff;
}
.who-equation span { color: var(--blue); }
.who-deco {
  position: absolute; z-index: 0; right: -50px; top: 18%;
  width: 260px; height: 16px; background: var(--blue); opacity: 0.5;
  transform: skewX(var(--skew));
}

/* ----------------------------------------------------------- train ------- */
.phones {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(0.7rem, 2vw, 1.6rem); margin-top: clamp(2.6rem, 5vw, 4.2rem);
}
.phone {
  flex: none; width: clamp(94px, 21vw, 232px); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  filter: drop-shadow(0 26px 30px rgba(8, 24, 47, 0.26));
}
.phone img { width: 100%; aspect-ratio: 9 / 19.3; object-fit: cover; display: block; }
.phone--center { width: clamp(116px, 26vw, 280px); }
.phone--left { margin-top: clamp(1.6rem, 4vw, 3.4rem); transform: rotate(-3deg); }
.phone--right { margin-top: clamp(1.6rem, 4vw, 3.4rem); transform: rotate(3deg); }

/* ------------------------------------------------- transformations ------- */
.transformations { background: linear-gradient(165deg, var(--navy) 0%, var(--ink) 100%); color: #fff; }
.transformations-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap;
}
.transformations-copy {
  margin-top: 1rem; max-width: 34rem; color: #c6d2e6;
}
.transformations-nav-group { display: flex; gap: 0.6rem; }
.transformations-nav {
  width: 50px; height: 50px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.transformations-nav:hover { transform: translateY(-3px); background: var(--blue-300); }
.transformations-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.transformations-track {
  display: flex; gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem);
  overflow-x: auto; scroll-behavior: smooth; padding-bottom: 0.4rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.transformations-track::-webkit-scrollbar { display: none; }
.transformation-slide { flex: 0 0 auto; width: clamp(255px, 30vw, 320px); }
.transformation-card {
  margin: 0; overflow: hidden; background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.transformation-card img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; display: block;
}
.transformation-info {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 1rem 1.15rem 1.1rem;
}
.transformation-info > span { display: flex; flex-direction: column; gap: 0.16rem; }
.transformation-name { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.transformation-loss { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.transformation-level { font-size: 0.78rem; color: var(--steel); }
.transformation-status { align-items: flex-end; text-align: right; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; color: var(--navy);
}
.verified-dot {
  width: 0.5rem; height: 0.5rem; flex: none;
  background: var(--blue); transform: skewX(var(--skew));
}
.transformation-duration { font-size: 0.78rem; color: var(--steel); }
.transformations-hint {
  margin-top: 1.2rem; font-size: 0.84rem; color: var(--mist);
}

/* ------------------------------------------------------------ about ------ */
.about-grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5.5vw, 5rem); align-items: center;
}
.about-portrait img {
  width: 100%; height: clamp(380px, 50vw, 560px); object-fit: cover;
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% 100%, 0 100%, 0 var(--bevel));
  filter: drop-shadow(0 30px 34px rgba(8, 24, 47, 0.22));
}
.about-copy h2 { margin: 1.1rem 0 1.1rem; }
.about-copy p { color: var(--steel); font-size: 1.03rem; }
.about-actions { margin-top: 1.9rem; }

/* ----------------------------------------------------------- footer ------ */
.footer-apps { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-apps .store-btn { padding: 0.7rem 1.1rem; font-size: 0.82rem; cursor: default; }

/* -------------------------------------------------------- responsive ----- */
@media (max-width: 960px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 30rem; }
}

@media (max-width: 720px) {
  .programs-grid { grid-template-columns: 1fr; }
  .phones { gap: 0.5rem; }
  .phone--left, .phone--right { margin-top: 1.2rem; }
  .transformations-head { align-items: flex-start; }
  .hero-downloads { width: 100%; }
  .hero-tag { display: none; }
}
