/* ============================================================
   Gatafan — landing page
   Rebuilt 1:1 from Main.pdf (design frame: 1440px)
   ============================================================ */

:root {
  /* type */
  --display: "Gilroy", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Inter", "Helvetica Neue", Arial, sans-serif;

  /* palette */
  --ink: #0D0C21;
  --muted: #3B3B4B;
  --gray: #818C98;
  --gray-strong: #5E6D7D;
  --line: #B2B9C0;
  --divider: #EBEBEE;
  --surface: #F5F5F7;
  --dot: #E6E6E8;
  --pink: #DA6CC2;

  --badge: linear-gradient(135deg, #E0A5D4 0%, #D162B7 100%);
  --badge-coral: linear-gradient(135deg, #EA9BA1 0%, #DE7396 100%);

  /* layout */
  --wide: 1344px;   /* hero + footer cards  */
  --narrow: 1182px; /* content sections     */
  --gutter: 48px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

.wrap  { max-width: var(--wide);   margin-inline: auto; }
.inner { max-width: var(--narrow); margin-inline: auto; }


/* ============ HERO ============ */

.hero { padding: var(--gutter) var(--gutter) 0; }

.hero__card {
  max-width: var(--wide);
  margin-inline: auto;
  min-height: 510px;
  padding: 55px 80px 72px;
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: 28px;
  color: #fff;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}
.logo--dark { color: var(--ink); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: background-color .18s ease, color .18s ease;
}
.btn-ghost:hover { background: #fff; color: #000; }

.hero__title {
  width: fit-content;
  margin-top: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 76px;
  line-height: 92px;
  letter-spacing: -0.02em;

  background: linear-gradient(90deg, #FFFFFF 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ============ SECTION HEADINGS ============ */

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-lead {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 22px;
  line-height: 29px;
  color: var(--ink);
}


/* ============ INTRO ============ */

.intro {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 64px var(--gutter) 0;
  text-align: center;
}

.intro__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 55px;
}

/* each crop is a padded box with the icon centred, so shadows never clip */
.intro__icon { width: 143px; height: 143px; }


/* ============ SHOWCASE ============ */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;   /* design pins the text column 111px below the card top */
  max-width: calc(var(--narrow) + var(--gutter) * 2);
  margin: 163px auto 0;
  padding-inline: var(--gutter);
}
.showcase + .showcase { margin-top: 118px; }

.showcase--rev .showcase__info  { order: 2; }
.showcase--rev .showcase__media { order: 1; }

.showcase__info { padding-top: 97px; text-align: center; }

.showcase__icon { width: 120px; height: 120px; margin-inline: auto; }

.showcase__name {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 30px;
  color: var(--ink);
}

.showcase__desc {
  max-width: 424px;
  margin: 17px auto 0;
  font-size: 18px;
  line-height: 25px;
  color: var(--muted);
}

/* pills */
.pills {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 21px;
  margin-top: 54px;
}
.pills li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
a.pill:hover { background: var(--ink); color: #fff; }

.pill--soon {
  border-color: var(--line);
  color: var(--gray);
}
a.pill--soon:hover { background: var(--gray); border-color: var(--gray); color: #fff; }

.pill__note {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-strong);
}

/* phone card */
.showcase__media { display: flex; flex-direction: column; align-items: center; }

.shot {
  width: 100%;
  max-width: 592px;
  border-radius: 24px;
  overflow: hidden;
}
.shot img { width: 100%; }

.dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  cursor: pointer;
  transition: background-color .18s ease;
}
.dot.is-active { background: #000; }


/* ============ REVIEWS ============ */

.reviews {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
  margin: 305px auto 0;
  padding-inline: var(--gutter);
  text-align: center;
}

.reviews .section-lead { max-width: 570px; }

.reviews__rail {
  display: flex;
  gap: 29px;
  margin-top: 55px;
  padding-bottom: 8px;
  text-align: left;

  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* bleed past the container to the right viewport edge */
  margin-right: calc(-1 * max(0px, (100vw - var(--narrow)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--narrow)) / 2));
}
.reviews__rail::-webkit-scrollbar { display: none; }
.reviews__rail { align-items: stretch; }
.reviews__rail.is-grabbing { cursor: grabbing; scroll-snap-type: none; }

.review {
  position: relative;
  flex: 0 0 375px;
  min-height: 664px;
  padding: 36px 36px 108px;   /* room for the app icon in the corner */
  background: var(--surface);
  border-radius: 20px;
  scroll-snap-align: start;
}

.review__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--badge);
  color: #fff;
}
.review__badge svg { margin-top: 4px; }
.review__badge--coral { background: var(--badge-coral); }

.review__source {
  margin-top: 34px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 26px;
  color: var(--ink);
}

.review__meta {
  margin-top: 39px;
  font-size: 17px;
  line-height: 22px;
  color: var(--muted);
}
.flag { margin-right: 4px; }

.review__body {
  margin-top: 26px;
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
}
.review__body p + p { margin-top: 27px; }

.review__app {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 64px;   /* 48px icon inside a padded crop */
  height: 64px;
}


/* ============ FOOTER ============ */

.footer { padding: 168px var(--gutter) var(--gutter); }

.footer__card {
  max-width: var(--wide);
  margin-inline: auto;
  min-height: 478px;
  padding: 128px 80px 40px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 409px 184px 1fr;
}

.footer__about {
  max-width: 285px;
  margin-top: 25px;
  font-size: 15px;
  line-height: 18px;
  color: var(--muted);
}

.footer__head {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
}

.footer__col ul { margin-top: 26px; }
.footer__col li { line-height: 17px; }
.footer__col li + li { margin-top: 22px; }
.footer__col a {
  font-size: 16px;
  color: var(--muted);
  transition: color .18s ease;
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}
.footer__bottom a { transition: color .18s ease; }
.footer__bottom a:hover { color: var(--ink); }


/* ============ REVEAL ON SCROLL ============ */
/* Elements only start hidden when JS is running, so the page still
   reads fine with scripting off. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
    transform 900ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
  will-change: opacity, transform;
}

/* media (phone cards, icons) drift up and settle from slightly smaller */
.js [data-reveal="media"] {
  transform: translateY(36px) scale(.965);
  transition-duration: 1100ms;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1280px) {
  .hero__title { font-size: 6vw; line-height: 1.21; }
  .showcase, .reviews, .intro { padding-inline: 32px; }
  .footer { padding-top: 140px; }
}

@media (max-width: 1000px) {
  :root { --gutter: 24px; }

  .hero__card { padding: 40px 40px 56px; min-height: 420px; }
  .logo { font-size: 32px; }
  .hero__title { font-size: 7vw; }

  .intro { padding-top: 56px; }
  .intro__icons { gap: 16px; }
  .intro__icon { width: 118px; height: 118px; }

  .showcase {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 96px;
  }
  .showcase__info { padding-top: 0; }
  .showcase + .showcase { margin-top: 96px; }
  .showcase--rev .showcase__info  { order: 1; }
  .showcase--rev .showcase__media { order: 2; }

  .reviews { margin-top: 140px; }
  .reviews .section-lead { max-width: 570px; }

.reviews__rail {
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }

  .footer { padding-top: 64px; }
  .footer__card { padding: 64px 40px 32px; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { padding-top: 32px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .hero__card { padding: 28px 24px 40px; border-radius: 20px; min-height: 340px; }
  .logo { font-size: 26px; }
  .btn-ghost { height: 40px; padding: 0 18px; font-size: 14px; }
  .hero__title { font-size: 34px; line-height: 1.18; }

  .section-title { font-size: 26px; line-height: 32px; }
  .section-lead { font-size: 17px; line-height: 24px; }

  .intro__icons { gap: 6px; margin-top: 32px; }
  .intro__icon { width: 74px; height: 74px; }

  .showcase__icon { width: 96px; height: 96px; }
  .hero__title br { display: none; }
  .showcase__desc { font-size: 16px; line-height: 23px; }
  .pills { gap: 12px; margin-top: 32px; flex-wrap: wrap; }
  .pill { height: 36px; padding: 0 16px; font-size: 15px; }

  .review { flex-basis: 280px; min-height: 0; padding: 28px 28px 88px; }
  .review__body { font-size: 15px; line-height: 24px; }
  .review__app { width: 60px; height: 60px; right: 24px; bottom: 20px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
