/* ============================================================
   hiyalhu — public landing page
   light theme on the official brand palette
   ============================================================ */
@font-face {
  font-family: 'Garet';
  src: url('fonts/Garet-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Garet';
  src: url('fonts/Garet-Heavy.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hiyalhu Script';
  src: url('fonts/quotes-script.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #023E88;
  --red: #880808;
  --peri: #9494FF;
  --coral: #FF7474;
  --gold: #FFDE59;
  --paper: #FDFCF8;
  --ink: #23201C;
  --ink-soft: #5A554D;
  --ink-faint: #8F887C;
  --line: rgba(35, 32, 28, 0.12);
  --script: 'Hiyalhu Script', 'Segoe Script', cursive;
  --sans: 'Garet', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, nav.top, footer { position: relative; z-index: 1; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.script { font-family: var(--script); font-weight: 400; }

:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }

/* ---------------- top nav ---------------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.brandmark { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brandmark img { width: 44px; height: 44px; transition: transform 0.4s var(--ease); }
.brandmark:hover img { transform: rotate(14deg); }
.brandmark b {
  font-family: var(--script);
  font-size: 26px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}
.top-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top-links a {
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 0.15s;
}
.top-links a:hover { color: var(--red); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s;
  font-family: var(--sans);
}
.btn:active { transform: scale(0.97); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(2, 62, 136, 0.28); }
.btn-blue:hover { box-shadow: 0 8px 26px rgba(2, 62, 136, 0.38); }
.btn-gold { background: var(--gold); color: var(--red); box-shadow: 0 6px 20px rgba(255, 222, 89, 0.5); }
.btn-gold:hover { box-shadow: 0 8px 26px rgba(255, 222, 89, 0.65); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: 84px 0 40px;
  text-align: center;
  overflow: hidden;
}
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  animation: blob-float 14s ease-in-out infinite alternate;
}
.hero .blob.b1 { width: 420px; height: 420px; background: rgba(148, 148, 255, 0.4); top: -140px; left: -100px; }
.hero .blob.b2 { width: 380px; height: 380px; background: rgba(255, 222, 89, 0.55); bottom: -160px; right: -80px; animation-delay: -5s; }
.hero .blob.b3 { width: 260px; height: 260px; background: rgba(255, 116, 116, 0.28); top: 30%; right: 18%; animation-delay: -9s; }
@keyframes blob-float {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(36px) scale(1.08); }
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(35, 32, 28, 0.06);
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--coral); animation: blink 2.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 1.04;
  margin: 26px 0 8px;
  letter-spacing: 0.01em;
}
.hero h1 .w-red { color: var(--red); }
.hero h1 .w-blue { color: var(--blue); }
.hero h1 .w-peri { color: #6D6DFF; }
.hero h1 .w-coral { color: var(--coral); }
.hero h1 .w-underline { position: relative; white-space: nowrap; }
.hero h1 .w-underline::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: 0.06em;
  height: 0.14em;
  background: var(--gold);
  border-radius: 99px;
  z-index: -1;
  transform: rotate(-1deg);
}
.hero .sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 17.5px;
}
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .meta-strip {
  margin-top: 42px;
  display: flex;
  gap: 10px 26px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero .meta-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta-strip .pip { width: 7px; height: 7px; border-radius: 99px; }

/* floating game pieces */
.pieces { position: absolute; inset: 0; pointer-events: none; }
.piece { position: absolute; opacity: 0.9; animation: piece-float 7s ease-in-out infinite alternate; }
@keyframes piece-float { from { transform: translateY(-8px) rotate(-6deg); } to { transform: translateY(10px) rotate(8deg); } }
.die { width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 8px 18px rgba(35,32,28,0.12); display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; padding: 6px; gap: 2px; transform: rotate(12deg); }
.die i { border-radius: 99px; background: transparent; }
.die i.on { background: var(--ink); }
.die.d-red i.on { background: var(--red); }
.die.d-blue i.on { background: var(--blue); }
.cardpiece { width: 58px; height: 80px; border-radius: 9px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 10px 20px rgba(35,32,28,0.14); }
.cardpiece::after { content: ''; display: block; margin: 10px; height: 22px; border-radius: 5px; }
.cardpiece.c-peri::after { background: var(--peri); }
.cardpiece.c-coral::after { background: var(--coral); }
.cardpiece.c-gold::after { background: var(--gold); }
.token { width: 40px; height: 40px; border-radius: 99px; border: 9px solid var(--gold); box-shadow: 0 8px 16px rgba(35,32,28,0.12); }

/* ---------------- sections ---------------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--coral);
}
.section-head h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 56px);
  line-height: 1.1;
  margin: 10px 0 12px;
  color: var(--ink);
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hcard {
  --rail: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(35, 32, 28, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.hcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--rail);
}
.hcard:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(35, 32, 28, 0.1); }
.hcard .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--rail) 14%, white);
  color: var(--rail);
}
.hcard .icon svg { width: 26px; height: 26px; }
.hcard h3 { font-weight: 800; font-size: 19px; margin: 0 0 8px; letter-spacing: 0.01em; }
.hcard p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.hcard .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rail);
}

/* timeline */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--peri), var(--blue), var(--coral), var(--gold));
}
.tl-item { position: relative; padding: 0 0 30px 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 5px;
  width: 21px; height: 21px;
  border-radius: 99px;
  background: var(--tl, var(--blue));
  border: 4.5px solid var(--paper);
  box-shadow: 0 0 0 2.5px var(--tl, var(--blue));
}
.tl-item .tl-time {
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tl, var(--blue));
}
.tl-item h3 { margin: 3px 0 4px; font-size: 18px; font-weight: 800; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* value tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  transition: transform 0.18s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile .tic { font-size: 26px; line-height: 1; margin-bottom: 10px; display: inline-flex; color: var(--tl, var(--peri)); }
.tile .tic svg { width: 28px; height: 28px; }
.tile b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

/* formats */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fmt {
  position: relative;
  border-radius: 20px;
  padding: 30px 28px;
  color: #fff;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(35, 32, 28, 0.16);
  transition: transform 0.2s var(--ease);
}
.fmt:hover { transform: translateY(-5px) rotate(-0.5deg); }
.fmt.f-blue { background: linear-gradient(150deg, #0a4ea3, var(--blue)); }
.fmt.f-red { background: linear-gradient(150deg, #a31414, var(--red)); }
.fmt.f-peri { background: linear-gradient(150deg, #a7a7ff, #7676f4); }
.fmt .fmt-k { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.75; }
.fmt h3 { font-family: var(--script); font-weight: 400; font-size: 34px; margin: 8px 0 8px; line-height: 1.05; }
.fmt p { margin: 0 0 18px; font-size: 14.5px; opacity: 0.92; }
.fmt .fmt-foot { margin-top: auto; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; }
.fmt .fmt-orn { position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); }
.fmt .fmt-orn::after { content: ''; position: absolute; inset: 26px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; border-radius: 26px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-band::before { width: 300px; height: 300px; top: -130px; left: -90px; }
.cta-band::after { width: 380px; height: 380px; bottom: -190px; right: -110px; }
.cta-band h2 { font-family: var(--script); font-weight: 400; font-size: clamp(36px, 5vw, 54px); margin: 0 0 10px; }
.cta-band h2 em { color: var(--gold); font-style: normal; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 26px; }

/* book section */
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step .n {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 24px;
  color: #fff;
}
.step:nth-child(1) .n { background: var(--blue); }
.step:nth-child(2) .n { background: var(--red); }
.step:nth-child(3) .n { background: var(--peri); }
.step b { display: block; font-size: 16px; margin-bottom: 3px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.loc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(35, 32, 28, 0.08);
}
.loc-card .loc-img {
  height: 200px;
  background:
    radial-gradient(300px 160px at 30% 20%, rgba(255, 222, 89, 0.5), transparent 70%),
    radial-gradient(280px 160px at 80% 80%, rgba(148, 148, 255, 0.45), transparent 70%),
    #0b1d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.loc-card .loc-img .logo-stamp { width: 108px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); animation: piece-float 6s ease-in-out infinite alternate; }
.loc-body { padding: 22px 24px; }
.loc-body h3 { margin: 0 0 4px; font-weight: 800; font-size: 18px; }
.loc-body p { color: var(--ink-soft); margin: 0 0 14px; font-size: 14.5px; }

/* footer */
footer { background: #07192f; color: rgba(255, 255, 255, 0.75); padding: 44px 0 34px; }
.foot-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer img { width: 46px; height: 46px; }
footer .foot-brand b { font-family: var(--script); font-size: 24px; color: var(--gold); font-weight: 400; display: block; line-height: 1.1; }
footer .foot-brand small { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; }
.foot-links { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 13.5px; }
.foot-links a { color: rgba(255, 255, 255, 0.7); }
.foot-links a:hover { color: var(--gold); }
.foot-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: rgba(255, 255, 255, 0.45); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 940px) {
  .cards3, .formats, .tiles { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .top-links a.hide-m { display: none; }
}
@media (max-width: 640px) {
  .cards3, .formats, .tiles { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-top: 56px; }
  .top-links a.hide-m { display: none; }
  .top-links .btn { padding: 8px 14px; font-size: 12.5px; }
  .cta-band { padding: 44px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
