/* The presentation page (www/prezentare.html). Same palette and fonts as the game. */
:root {
  --red: #ce1126; --red-dark: #7a0a15; --blue: #002b7f; --yellow: #fcd116;
  --cream: #fff6e5; --ink: #2b1a10; --muted: #6b5a4a;
  --display: 'Baloo 2', 'Nunito', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.55; }
/* height:auto keeps the width/height attributes from stretching shrunken images */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4.5vw, 42px); color: var(--blue); }
h3 { font-size: 22px; }
/* side padding also clears the notch / Dynamic Island when a phone is held sideways */
section {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) max(16px, env(safe-area-inset-right)) clamp(48px, 7vw, 88px) max(16px, env(safe-area-inset-left));
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff;
  background: var(--red); padding: 12px 22px; border-radius: 14px; border: none;
  box-shadow: 0 4px 0 var(--red-dark); transition: transform 0.1s;
}
.btn:hover { transform: translateY(-2px); }
.btn.big { font-size: 22px; padding: 16px 28px; border-radius: 16px; }
.btn.small { font-size: 15px; padding: 8px 14px; border-radius: 11px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: rgba(255, 246, 229, 0.92);
  backdrop-filter: blur(8px); border-bottom: 6px solid; border-image: linear-gradient(90deg, var(--blue) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%) 1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.lang { border: none; background: transparent; font: 800 14px 'Nunito', sans-serif; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.lang[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; max-width: none;
  background: radial-gradient(120% 120% at 70% 0%, #1458cf 0%, var(--blue) 60%, #001a4f 100%); color: #fff;
  padding-left: max(16px, env(safe-area-inset-left), calc((100vw - 1120px) / 2 + 16px));
  padding-right: max(16px, env(safe-area-inset-right), calc((100vw - 1120px) / 2 + 16px)); }
.hero h1 { font-size: clamp(54px, 9vw, 104px); color: var(--red); -webkit-text-stroke: 0; text-shadow: 0 0 0 #fff, 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff, 0 9px 0 var(--red-dark); margin-bottom: 18px; }
.kicker { font-weight: 800; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin: 0 0 6px; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 520px; opacity: 0.95; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 18px; }
.soon { font-size: 14px; opacity: 0.8; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }

/* Screenshots: real phone captures (812×375, see scripts/store-assets.mjs --web-only) shown in a phone held
   sideways. Padding percentages follow the frame's width, so the bezel scales with it; the screen corners
   are matched to the frame's (4.2% / 9% of a 2.17:1 image is the same radius both ways). */
.phone {
  position: relative;
  padding: 2.2% 3.6%;
  border-radius: 6% / 13%;
  background: linear-gradient(150deg, #34343c 0%, #121216 45%, #050507 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 28px 50px -18px rgba(0, 18, 60, 0.65);
}
.phone img { width: 100%; border-radius: 4.2% / 9%; background: #1b2340; }
/* front camera, on the left bezel */
.phone::before {
  content: '';
  position: absolute;
  left: 1.3%; top: 50%;
  width: 1.1%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3c4a6a, #0b0f1a 70%);
  transform: translateY(-50%);
}
.phone.tilt { transform: rotate(-2.5deg); }
.hero .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 60px -10px rgba(0, 0, 0, 0.6); }

/* how */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.cards article, .features article { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 4px 0 #e6d6b8; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.cards p, .features p { margin: 0; color: var(--muted); }

/* journey */
.journey { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.places { columns: 2; padding-left: 22px; margin: 16px 0 0; font-weight: 800; }
.places li { margin-bottom: 4px; }

/* cast */
.cast { text-align: center; }
.cast > p { color: var(--muted); max-width: 600px; margin: 0 auto 24px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.cast-grid figure { margin: 0; }
.cast-grid svg { width: 80px; height: 80px; transition: transform 0.15s; }
.cast-grid figure:hover svg { transform: scale(1.1) rotate(-4deg); }
.cast-grid figcaption { font-size: 12px; font-weight: 800; line-height: 1.2; margin-top: 4px; }

/* challenge */
.challenge { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.challenge p { color: var(--muted); font-size: 18px; margin-bottom: 20px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0; }
.features h3 { font-size: 19px; }

.final { text-align: center; background: var(--blue); color: #fff; max-width: none; }
.final h2 { color: #fff; margin-bottom: 22px; }
footer { text-align: center; padding: 28px 16px max(40px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer a { color: var(--blue); font-weight: 800; }
footer p { margin: 6px 0 0; }

@media (max-width: 820px) {
  .hero, .journey, .challenge { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  /* phones: the screenshots use almost the whole width (the tilted one can't push the page sideways) */
  .hero { overflow: hidden; }
  .phone { margin: 0 -8px; }
  .journey, .challenge { gap: 28px; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .brand span { display: none; }
}
@media (max-width: 520px) {
  .cards, .features { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cast-grid svg { width: 60px; height: 60px; }
  .cast-grid figcaption { font-size: 10.5px; }
  .places { columns: 1; }
}

/* Phones held sideways: little height, so a one-line title and tighter spacing keep the screenshot beside it */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 60px); margin-bottom: 10px; text-shadow: 0 0 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 6px 0 var(--red-dark); }
  .lead { font-size: 16px; }
  .cta { margin: 16px 0 12px; }
  .btn.big { font-size: 19px; padding: 12px 22px; }
}
