/* GymGenda - public site (gymgenda.com). Static, no scripts, no third-party requests.
   Colors = light "Cobalto" tokens of the app (frontend/src/index.css, [data-theme="light"]) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --primary: #2F5BEA;
  --primary-bright: #31BFFF;
  --navy: #0B1B4D;
  --text: #101828;
  --muted: #4B5565;
  --divider: rgba(47, 91, 234, 0.18);
  /* Matches the light edges of the illustration so it blends into the page */
  --background: #EEF4FD;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(49, 191, 255, 0.22), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(47, 91, 234, 0.16), transparent 70%),
    var(--background);
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Title + scene + highlights centred in the space between the logo and the footer */
  justify-content: center;
}

/* Logo pinned at the top */
.top {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vh, 56px) 16px 0;
}

/* Text above the empty "sky" of the illustration */
.intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(190px, 26vw, 300px);
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.accent {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary-bright) -40%, var(--primary) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.underline {
  display: block;
  width: clamp(150px, 22vw, 300px);
  height: auto;
  margin: 6px 0 0 clamp(90px, 16vw, 200px);
}

.lead {
  margin: clamp(14px, 2.5vh, 24px) 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  text-wrap: balance;
  color: var(--navy);
}

.lead strong {
  font-weight: 700;
}

.cta {
  margin-top: 24px;
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 91, 234, 0.3);
}

.cta:hover {
  background: #2449C7;
}

.cta:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 3px;
}

/* Illustration: its top is empty, so it slides under the text; edges fade into the page */
.scene {
  display: block;
  /* Fits the screen height too, so text + scene + highlights stay visible without scrolling */
  --scene-width: max(min(100%, 560px), min(100%, calc((100svh - 380px) * 1.78)));
  width: var(--scene-width);
  /* Slides under the text by the empty "sky" of the picture only (12% of its width), whatever its size */
  margin-top: calc(var(--scene-width) * -0.12);
}

.scene img {
  display: block;
  width: 100%;
  height: auto;
  /* The laptop + helmet group sits right of the picture centre: nudge it under the text axis */
  transform: translateX(-2.5%);
  /* Fade all four edges (vertical x horizontal) */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.features {
  list-style: none;
  margin: clamp(-60px, -3vw, 0px) 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.features li + li {
  border-left: 1px solid var(--divider);
}

.features svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .underline {
    margin-left: 32%;
  }

  /* Phone: the scene below the text, larger (sides cropped by the fade) */
  .scene {
    width: 150%;
    margin-top: 0;
  }

  .features {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 8px;
  }

  .features li {
    padding: 8px 0;
  }

  .features li + li {
    border-left: 0;
  }
}
