/* Plong landing page. Follows "Plong — Brand guidelines" (Visual identity guidelines, 08 slides). */
:root {
  /* Core */
  --azure-33: #0A44A0;   /* wordmark & dots */
  --cyan-42: #09CDCD;    /* symbol center only: never text */
  --azure-8: #00102B;    /* dark foundation, headings */
  --grey-95: #F9F7EC;    /* warm neutral */
  /* Supporting */
  --white: #FFFFFF;
  --azure-13: #001A40;
  --azure-22: #002D72;
  --azure-40: #005BCC;
  --cyan-76: #A0E5D9;
  --grey-91: #DDF5F0;
  /* Text and rules seen across the guidelines */
  --text-2: #4F5B6E;
  --rule: #B8C4D9;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 70px);
  --max: 1260px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--azure-8);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; color: var(--azure-8); }

/* Type scale: display 40/48, h1 28/36, h2 22/28, h3 18/24 (all 600); scaled up for the web hero */
h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; }

/* label · 12/16 · SemiBold, azure, uppercase (as in "PLONG / BRAND IDENTITY") */
.label {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azure-33);
}
.label--light { color: var(--white); }

.caption { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--text-2); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--azure-33);
  color: var(--white);
  z-index: 10;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--azure-40); outline-offset: 3px; }

/* Layout */
.top, .section, .foot, .dark__inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--azure-33);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.btn:hover { background: var(--azure-22); }

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--azure-33);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { color: var(--azure-22); }

/* Sections */
.section { margin-top: clamp(88px, 11vw, 152px); }

.section > h2 { max-width: 18em; }

/* Tiles */
.tiles { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.tile__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 400 / 218;
  margin-bottom: 28px;
  background: var(--grey-95);
}

.tile h3 { font-size: 22px; line-height: 28px; }
.tile p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.tile strong { color: var(--azure-8); font-weight: 600; }

/* dataLg 32/36 Medium · dataMd 20/24 Medium, scaled for the tile */
.data { margin: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--azure-33) !important; }
.data__lg { font-size: clamp(56px, 6vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.data__md { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--azure-8); }

.tile__symbol { width: 52%; max-width: 170px; height: auto; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 48px); margin-top: 48px; align-items: start; }

.screen { margin: 0; }



.screen figcaption { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.screen figcaption strong { display: block; font-size: 18px; line-height: 24px; color: var(--azure-8); font-weight: 600; }


/* Tablet */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; max-width: 520px; }
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}



/* Header: icon + wordmark lockup (staff figure beside "Plong", Poppins Bold) */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.22em;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--azure-33);
  text-decoration: none;
}

.lockup__icon { width: 0.8em; height: 1.08em; margin-bottom: 0.2em; }

.top__link { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.top__link:hover { color: var(--azure-33); }

/* Hero: full-bleed photo in a rounded frame, text below */
.hero { margin: 0; padding: 0; }

.hero__media {
  position: relative;
  margin: 0 clamp(10px, 1.6vw, 24px);
  height: clamp(460px, 82vh, 920px);
  overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 36px);
  background: var(--azure-8);
  /* enlarged crop of the broadcast symbol, like the digital brand banner */
  --x: 92%;
  --y: 50%;
  --size: 74%;
}

.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 42%; }

/* darken toward the right so the white dots read on the photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 16, 43, 0) 35%, rgba(0, 16, 43, .55) 100%),
    linear-gradient(180deg, rgba(0, 16, 43, .25) 0%, rgba(0, 16, 43, 0) 30%, rgba(0, 16, 43, .3) 100%);
  pointer-events: none;
}

.hero__symbol {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  height: var(--size);
  width: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.hero__symbol .dots path { fill: var(--white); }
.hero__staff { fill: var(--cyan-42); }

.hero__text {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}

.hero__aside .lede { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero__symbol .dot,
  .hero__staff {
    transform-box: fill-box;
    transform-origin: center;
  }
  /* 1. the signal goes out, centre to edge; 2. then it keeps pulsing outward in waves */
  .hero__symbol .dot {
    animation:
      dot-in .55s cubic-bezier(.3, 1.5, .55, 1) var(--d) both,
      dot-pulse 2.4s ease-in-out calc(var(--d) * 1.6 + 1.6s) infinite;
  }
  /* the right person steps in, then breathes with the signal */
  .hero__staff {
    animation:
      staff-in .6s cubic-bezier(.3, 1.6, .5, 1) 1.2s both,
      staff-breathe 2.4s ease-in-out 1.9s infinite;
  }
}

@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: .9; transform: scale(1); } }
@keyframes dot-pulse { 0%, 100% { opacity: .9; transform: scale(1); } 35% { opacity: 1; transform: scale(1.16); } 70% { opacity: .8; transform: scale(.97); } }
@keyframes staff-in { from { opacity: 0; transform: translateY(18%) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes staff-breathe { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.05); } }

/* Closing banner */
.banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 14vw, 220px);
  border-radius: 28px;
  background: var(--azure-33);
  color: var(--white);
}

.banner h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 44px); }
.banner p { margin: 10px 0 0; max-width: 30em; color: #D6E0F5; }

.banner__text, .banner__actions { position: relative; z-index: 1; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn--light { background: var(--white); color: var(--azure-33); border-radius: 999px; }
.btn--light:hover { background: var(--grey-95); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 12px 24px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* The staff figure peeks in from the corner */
.banner__staff {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  bottom: -6px;
  width: clamp(72px, 9vw, 130px);
  height: auto;
  color: var(--cyan-42);
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-2);
}
.foot a { color: var(--azure-33); }

/* Phone */
@media (max-width: 640px) {
  .lockup { font-size: 26px; }
  .hero { padding-top: 0; }
  .hero__media { height: min(64vh, 560px); min-height: 400px; --x: 84%; --y: 30%; --size: 44%; }
  .hero__media img { object-position: 58% 50%; }
  .hero__text { grid-template-columns: 1fr; margin-top: 28px; }
  .screens { grid-template-columns: 1fr; max-width: 340px; }
  .banner { padding: 32px 24px 120px; border-radius: 22px; }
  .banner__actions { width: 100%; }
  .banner__actions .btn { flex: 1 1 auto; text-align: center; }
  .foot { flex-direction: column; margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
}

/* Closing area fades from white into the dark foundation (no hard edge) */
.finale {
  margin-top: clamp(88px, 11vw, 152px);
  padding-top: clamp(140px, 16vw, 240px);
  background: linear-gradient(to bottom, var(--white) 0%, #DCE5F4 22%, var(--azure-22) 68%, var(--azure-8) 100%);
}
.finale > .section { margin-top: 0; }

.banner { box-shadow: 0 30px 60px -30px rgba(0, 16, 43, .6); }

.foot {
  max-width: none;
  margin-top: 0;
  padding-top: 56px;
  background: var(--azure-8);
  color: #C9D2E3;
  border-top: 0;
}
.foot a { color: var(--white); }
@media (min-width: 1260px) {
  .foot { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); padding-right: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}
@media (max-width: 640px) {
  .foot { margin: 0; padding-left: 16px; padding-right: 16px; }
}

.lede { margin: 24px 0 0; max-width: 32em; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text-2); }
.hero__aside .lede { margin-top: 0; }

/* Phone frame: an original iPhone-style device drawn in CSS (no Apple artwork) */
.device {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  padding: 3.4%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(145deg, #3a3d42 0%, #1c1d20 40%, #2a2c30 100%);
  box-shadow:
    inset 0 0 0 1.5px #6b6f76,
    inset 0 0 0 4px #121316,
    0 2px 4px rgba(0, 16, 43, .10),
    0 24px 40px -18px rgba(0, 16, 43, .35),
    0 48px 80px -40px rgba(0, 16, 43, .30);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12.6% / 5.8%;
  background: #000;
}

/* Dynamic Island */
.device__island {
  position: absolute;
  top: 4.9%;
  left: 50%;
  width: 29%;
  height: 3.1%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
}

/* Side buttons */
.device__btn {
  position: absolute;
  width: 1.4%;
  min-width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4a4d53, #2a2c30);
}
.device__btn--action   { left: -1.2%; top: 15%; height: 4.4%; }
.device__btn--vol-up   { left: -1.2%; top: 22%; height: 7.6%; }
.device__btn--vol-down { left: -1.2%; top: 31.5%; height: 7.6%; }
.device__btn--power    { right: -1.2%; top: 25%; height: 11%; }

.screen figcaption { margin-top: 28px; }

.banner .banner__meta { margin-top: 14px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .01em; color: var(--cyan-76); }
.banner__text { flex: 1 1 560px; }
.banner .banner__text p { max-width: 38em; }

/* Background section */
.section__intro { margin: 24px 0 0; font-size: 17px; color: var(--text-2); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.fact { padding: clamp(28px, 4vw, 48px); background: var(--grey-95); border-radius: 24px; }
.fact .data { align-items: flex-start; }
.fact .data__lg { font-size: clamp(44px, 5vw, 68px); }
.fact__text { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.source { display: block; margin: 12px 0 0; font-size: 12px; line-height: 16px; font-style: italic; color: var(--text-2); }

.statement { margin: clamp(56px, 7vw, 88px) 0 0; max-width: 20em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; color: var(--azure-8); }

.problems { margin-top: 32px; }

.bridge { margin: 32px 0 0; max-width: 36em; font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--azure-33); }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
}

.caption__link { font-weight: 600; color: var(--azure-33); text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.caption__link:hover { color: var(--azure-22); }

/* ---------- Pixel-art crowd behind the page ---------- */
.crowd-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .38;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Background numbers */
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.stat {
  margin: 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stat b { display: block; font-size: clamp(32px, 4vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--azure-33); }
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--azure-8); }
@media (max-width: 640px) {
  .stat { flex: 1 1 140px; padding: 14px 16px; }
}

/* keep text readable over the walking crowd */
.hero__text h1, .hero__text p, .section > h2, .section > .label, .section > .caption,
.tile h3, .tile p, .screen figcaption {
  text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 12px #fff;
}

/* ---------- The app: text left; the hand rises from behind the closing banner ---------- */
.showcase {
  --rise: calc(clamp(140px, 16vw, 240px) + clamp(60px, 7vw, 110px));   /* finale top padding + overlap into the banner */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 24px clamp(24px, 4vw, 64px);
}
.showcase__text { align-self: center; padding-bottom: calc(var(--rise) * .5); }
.showcase__text h2, .showcase__text .label { text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 12px #fff; }
.showcase__media {
  display: block;
  margin-right: calc(-1 * var(--gutter));
  margin-bottom: calc(-1 * var(--rise));   /* the sleeve runs down behind the banner */
}
.showcase__media img {
  display: block;
  width: 100%;
  height: auto;
  /* only the last strip fades, for the part of the sleeve beside the banner */
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
.showcase + .finale { margin-top: 0; }
.finale .banner { z-index: 2; }
@media (min-width: 1260px) {
  .showcase__media { margin-right: calc(-1 * ((100vw - var(--max)) / 2 + var(--gutter))); }
}
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__text { padding-bottom: 0; }
  .showcase__media { margin-left: calc(-1 * var(--gutter) / 2); }
}

/* the mockup bleeds to the window edge: never scroll sideways */
main { overflow-x: clip; }
