/* ==========================================================================
   PERFORM — App Features
   Original design system. Colour, type and motion derived from the
   Perform brand mark: deep navy, electric-blue accent, angular "slash"
   geometry. No third-party UI framework.
   ========================================================================== */

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

:root {
  /* brand palette — extrapolated from the logo */
  --ink:       #08182f;
  --navy:      #0e2f5c;
  --navy-700:  #15396e;
  --navy-900:  #0a2347;
  --blue:      #1f7ce8;
  --blue-300:  #5ea3f2;
  --paper:     #eceff5;
  --surface:   #ffffff;
  --steel:     #5a6b86;
  --mist:      #aab6cb;
  --line:      #d9dfea;
  --line-d:    rgba(255, 255, 255, 0.14);

  --skew: -22deg;                       /* the logo's slash angle          */
  --ease: cubic-bezier(0.2, 0.7, 0.22, 1);
  --wrap: 1220px;
  --pad: clamp(1.15rem, 5vw, 3rem);
  --bevel: 24px;                        /* angular corner cut              */
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* drag + iOS long-press disabled to deter casual image saving */
img {
  display: block; max-width: 100%;
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.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;
}

/* ----------------------------------------------------------------- type -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 1.7rem; height: 0.52rem;
  background: var(--blue); transform: skewX(var(--skew));
}

.display {
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
}
.section-title {
  font-weight: 800; letter-spacing: -0.028em; line-height: 1.07;
  font-size: clamp(1.95rem, 4.2vw, 3.25rem);
}
.lead { font-size: clamp(1.04rem, 1.4vw, 1.27rem); color: var(--steel); font-weight: 500; }
.hl { color: var(--blue); }

/* the logo's three-slash mark, reused as a brand accent */
.slashes { display: flex; gap: 0.4rem; }
.slashes i {
  display: block; width: 1.55rem; height: 0.55rem;
  background: currentColor; opacity: 0.22; transform: skewX(var(--skew));
}
.slashes i.on { opacity: 1; background: var(--blue); }

/* ------------------------------------------------------------- buttons --- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 1.05rem 1.95rem; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.005em; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; z-index: 1;
  top: -12%; bottom: -12%; left: -32%; width: 165%;
  transform: translateX(-118%) skewX(var(--skew));
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(-3%) skewX(var(--skew)); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary::before { background: var(--ink); }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.6px var(--line-d);
}
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 0.72rem 1.3rem; font-size: 0.84rem; }

/* ============================================================== header == */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  /* white bar begins just past the logo — wrap inset + page pad + logo zone */
  --header-cut: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--pad) + 10.5rem);
}
/* the bar surface — diagonal-cut on the left so the logo sits free of it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface); border-bottom: 1px solid var(--line);
  transition: filter 0.3s var(--ease);
  clip-path: polygon(
    var(--header-cut) 0, 100% 0,
    100% 100%, calc(var(--header-cut) - 31px) 100%
  );
}
.site-header.is-stuck::before { filter: drop-shadow(0 10px 16px rgba(8, 24, 47, 0.32)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  position: relative; font-size: 0.92rem; font-weight: 600; padding: 0.35rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  background: var(--blue); transform: skewX(var(--skew)) scaleX(0);
  transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: skewX(var(--skew)) scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1.3rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2.4px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* =============================================================== hero === */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(110% 80% at 88% -10%, var(--navy-700), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  padding-top: calc(76px + clamp(2.6rem, 6vw, 5rem));
  padding-bottom: clamp(6.5rem, 13vw, 11rem);
  overflow: hidden;
}
.hero::after { /* angular paper wedge — diagonal lower edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 6vw; background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 101%);
}
.hero-deco {
  position: absolute; pointer-events: none; background: var(--blue);
  opacity: 0.5; transform: skewX(var(--skew));
}
.hero-deco--1 { width: 220px; height: 14px; top: 23%; right: -40px; opacity: 0.55; }
.hero-deco--2 { width: 120px; height: 14px; top: 27%; right: 150px; opacity: 0.22; }
.hero-deco--3 { width: 9px;  height: 230px; bottom: -40px; left: 8%; opacity: 0.12; transform: skewX(0); }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin: 1.5rem 0 1.45rem; }
.hero .lead { color: #c6d2e6; max-width: 31rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--mist); }

.hero-media { position: relative; }
.hero-media__panel {
  position: absolute; z-index: 1; right: -1.4rem; bottom: -1.6rem;
  width: 66%; height: 70%;
  background: linear-gradient(135deg, var(--blue), var(--blue-300));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media__frame {
  position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--bevel) 100%, 0 calc(100% - var(--bevel)));
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.5));
}
.hero-media__frame img { width: 100%; height: clamp(330px, 45vw, 540px); object-fit: cover; }
.hero-media__tag {
  position: absolute; z-index: 3; left: -1.1rem; top: 1.7rem;
  background: var(--surface); color: var(--ink);
  padding: 0.7rem 1.05rem 0.7rem 0.85rem; display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.84rem;
  box-shadow: 0 20px 34px -20px rgba(8, 24, 47, 0.65);
}
.hero-media__tag .slashes i { width: 0.85rem; height: 0.85rem; }

/* ============================================================== stats === */
.stats { position: relative; z-index: 5; }
.stat-card {
  margin-top: -4.5rem; background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
  filter: drop-shadow(0 26px 30px rgba(8, 24, 47, 0.22));
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: clamp(1.8rem, 3.4vw, 2.9rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; color: var(--navy);
}
.stat__num small { font-size: 0.46em; color: var(--blue); margin-left: 0.1em; }
.stat__label {
  margin-top: 0.6rem; font-size: 0.9rem; color: var(--steel); font-weight: 500;
}

/* ============================================================ features == */
.section { padding-block: clamp(4.6rem, 9.5vw, 8.5rem); }
.section-head { max-width: 40rem; }
.section-head .section-title { margin-top: 1.1rem; }

.feature-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem; margin-top: clamp(2.6rem, 5vw, 4.2rem);
}
.feature {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.feature:hover { transform: translateY(-8px); }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }

.feature--light {
  background: var(--surface);
  filter: drop-shadow(0 20px 22px rgba(8, 24, 47, 0.13));
}
.feature--light:hover { filter: drop-shadow(0 30px 30px rgba(8, 24, 47, 0.2)); }
.feature--dark {
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  filter: drop-shadow(0 20px 24px rgba(8, 24, 47, 0.18));
}

.feature__media { overflow: hidden; }
.feature__media img {
  width: 100%; height: clamp(200px, 23vw, 310px); object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.055); }

.feature__body {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
  padding: clamp(1.5rem, 2.5vw, 2.4rem);
}
.feature h3 {
  font-size: clamp(1.32rem, 1.9vw, 1.72rem); font-weight: 700; letter-spacing: -0.02em;
}
.feature p { font-size: 0.99rem; color: var(--steel); }
.feature--dark p { color: #b9c6da; }
.feature__num {
  position: absolute; top: -0.4rem; right: 0.9rem;
  font-size: 6.2rem; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, 0.055); pointer-events: none;
}
.feature--dark .feature__body { justify-content: center; }

/* staggered, off-grid placement — the asymmetric rhythm */
@media (min-width: 921px) {
  .feature:nth-child(even) { margin-top: 3.6rem; }
}

/* =============================================================== ticker = */
.ticker {
  background: var(--ink); overflow: hidden;
  padding-block: clamp(1rem, 2vw, 1.5rem);
  border-block: 1px solid var(--line-d);
}
.ticker__row {
  display: flex; align-items: center; gap: 2.6rem; width: max-content;
  animation: ticker-scroll 34s linear infinite;
}
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__row span {
  display: flex; align-items: center; gap: 2.6rem; white-space: nowrap;
  font-size: clamp(1.35rem, 3vw, 2.35rem); font-weight: 800;
  letter-spacing: -0.02em; color: #fff;
}
.ticker__row span::after {
  content: ""; width: 1.25rem; height: 1.25rem; flex: none;
  background: var(--blue); transform: skewX(var(--skew));
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ============================================================ spotlight = */
.spotlight {
  position: relative; color: #fff;
  padding-block: clamp(5.5rem, 11vw, 9.5rem);
  margin-top: clamp(3rem, 7vw, 7rem);
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(155deg, var(--navy) 0%, var(--ink) 100%);
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
}
.spotlight .wrap { position: relative; z-index: 1; }
.spotlight-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5.5vw, 5rem); align-items: center;
}
.spotlight-media { position: relative; }
.spotlight-media img {
  width: 100%; height: clamp(340px, 44vw, 540px); object-fit: cover;
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% 100%, 0 100%, 0 var(--bevel));
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.5));
}
.spotlight-media__chip {
  position: absolute; right: -0.9rem; bottom: 1.8rem; z-index: 2;
  background: var(--blue); color: #fff; font-weight: 800;
  padding: 0.95rem 1.25rem; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}
.spotlight-media__chip b { display: block; font-size: 1.7rem; }
.spotlight-media__chip span { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.spotlight h2 { margin: 1.3rem 0 1.2rem; }
.spotlight .lead { color: #c6d2e6; }
.spot-list { margin-top: 1.9rem; display: flex; flex-direction: column; gap: 0.95rem; }
.spot-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-weight: 500; }
.spot-list li::before {
  content: ""; flex: none; margin-top: 0.35rem;
  width: 1.15rem; height: 0.62rem; background: var(--blue);
  transform: skewX(var(--skew));
}

/* ================================================================= cta == */
.cta { padding-block: clamp(4.5rem, 9vw, 8rem); }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  color: #fff; background: linear-gradient(150deg, var(--navy), var(--navy-900));
  padding: clamp(2.9rem, 6.5vw, 5.4rem) clamp(1.5rem, 5vw, 4rem);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.cta-card::before { /* large faint slash */
  content: ""; position: absolute; width: 60%; height: 14px; right: -4%; top: 22%;
  background: var(--blue); opacity: 0.16; transform: skewX(var(--skew));
}
.cta-card::after {
  content: ""; position: absolute; width: 40%; height: 14px; left: -3%; bottom: 26%;
  background: #fff; opacity: 0.07; transform: skewX(var(--skew));
}
.cta-card .slashes { justify-content: center; }
.cta-card h2 { margin: 1.2rem auto 0.9rem; max-width: 17ch; }
.cta-card .lead { color: #c6d2e6; max-width: 42ch; margin: 0 auto 2rem; }

/* ============================================================== footer == */
.site-footer {
  background: var(--ink); color: var(--mist);
  padding-top: clamp(3.6rem, 7vw, 6rem); overflow: hidden;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem 1.5rem;
}
.footer-mark { display: inline-flex; margin-bottom: 1.15rem; }
.footer-mark img { height: 26px; width: auto; }
.footer-brand p { max-width: 26rem; font-size: 0.95rem; }
.site-footer h4 {
  color: #fff; font-size: 0.74rem; letter-spacing: 0.17em;
  text-transform: uppercase; margin-bottom: 1.05rem;
}
.footer-col a, .footer-col span { display: block; padding: 0.32rem 0; font-size: 0.93rem; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-word {
  margin-top: clamp(1.5rem, 4vw, 3rem); line-height: 0.78;
  font-size: clamp(4rem, 19vw, 15rem); font-weight: 800; letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.045); user-select: none;
}
.footer-bottom {
  border-top: 1px solid var(--line-d); margin-top: 1rem;
  padding-block: 1.6rem; display: flex; justify-content: space-between;
  gap: 0.6rem 1.5rem; flex-wrap: wrap; font-size: 0.82rem;
}
.footer-bottom a:hover { color: #fff; }

/* =========================================================== animation == */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal--left  { transform: translateX(-46px); }
.reveal--right { transform: translateX(46px); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ responsive = */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.1rem;
    box-shadow: 0 26px 36px -26px rgba(8, 24, 47, 0.5);
  }
  .nav-open .nav-links { display: flex; }
  .site-header .nav-links a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .site-header .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .hero-grid, .spotlight-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 1rem; max-width: 30rem; }
  .spotlight-media { max-width: 32rem; margin-inline: auto; }

  .feature-grid { gap: 1.15rem; }
  .col-7, .col-5 { grid-column: 1 / -1; }
  .feature { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
}

@media (max-width: 620px) {
  .stat-card { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-media__panel { right: -0.6rem; bottom: -0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
