/* css/site.css: the landing page. The live 3D Athenai behind, the title, two buttons, live numbers, the $ZEYS row,
   and one guide with a sticky table of contents. */

body { background: var(--glaze-solid); }

/* --- top bar ---------------------------------------------------------------------------------------------------- */
.top {
  position: fixed; z-index: 30; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  height: 54px; display: flex; align-items: center; gap: 16px; padding: 0 8px 0 10px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(42, 104, 236, .94), rgba(17, 62, 172, .92)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--rim-soft), 0 10px 26px -14px rgba(0, 0, 0, .8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--bronze-hi); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .2em; line-height: 1; text-transform: uppercase; padding-top: 2px; }
.top-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-links a { color: var(--on-glaze); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 12px; border-radius: 9px; min-height: 40px; display: inline-flex; align-items: center; }
.top-links a:hover { background: rgba(92, 200, 255, .12); color: #E9EDF4; }
@media (max-width: 560px) { .top-links a:not(:first-child) { display: none; } }
@media (max-width: 340px) { .top-links { display: none; } }

/* --- hero: the live city ---------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 86px 16px 128px; }
.hero-stage { position: absolute; inset: 0; z-index: 0; background: var(--glaze-solid); }
/* the poster first (a real render of the city replaces img/hero.jpg); the gradient is the fallback under it */
.hero-poster { position: absolute; inset: 0; background: url('/img/hero.jpg') center 58% / cover no-repeat, linear-gradient(180deg, #9ABBE9 0%, #C8D3E3 34%, #7598CB 56%, #396197 74%, #1E2C3E 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; touch-action: pan-y; }
.hero-canvas.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 40, 120, .32), transparent 22%, transparent 74%, rgba(6, 40, 120, .45)); }

/* the title panel: black glaze with a meander above and below, like the shoulder band of a vase */
.hero-in {
  position: relative; z-index: 2; text-align: center; width: min(660px, 100%); display: grid; justify-items: center; gap: 10px; color: var(--on-glaze);
  padding: 34px 30px 30px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 92, 228, .9), rgba(14, 52, 150, .92)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--rim), 0 24px 60px -24px rgba(0, 0, 0, .85);
}
.hero-in::before, .hero-in::after { content: ''; position: absolute; left: 18px; right: 18px; height: 12px; background: var(--meander) left center / 15px 12px repeat-x; opacity: .9; pointer-events: none; }
.hero-in::before { top: 10px; }
.hero-in::after { bottom: 10px; }
.hero-mark { display: block; margin-top: 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(3.6rem, 11vw, 6.6rem); line-height: .95; letter-spacing: .16em; padding-left: .16em; text-transform: uppercase;
  color: #FFFFFF; background: linear-gradient(180deg, #FFFFFF 18%, #E3F1FF 55%, #9FD2FF 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(6, 40, 120, .9)) drop-shadow(0 10px 22px rgba(0, 0, 0, .5));
}
.hero-lede { margin: 2px 0 0; font-size: clamp(1.05rem, 2vw, 1.22rem); font-weight: 500; color: #E0E6EF; max-width: 32em; line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.hero-cta .btn { min-width: 156px; min-height: 48px; font-size: 1.08rem; }
.hero-cta .btn.wax { font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 1.04rem; }
.btn.ghost.light { color: #FFFFFF; background: rgba(6, 40, 120, .3); box-shadow: inset 0 0 0 1.5px rgba(92, 200, 255, .75); }
.btn.ghost.light:hover { background: rgba(92, 200, 255, .14); filter: none; }
.hero-free { margin: 0; max-width: 560px; padding: 8px 16px; border-radius: 12px; background: rgba(6, 40, 120, .6); box-shadow: inset 0 0 0 1px rgba(92, 200, 255, .5); color: #D2DAE7; font-size: .98rem; line-height: 1.4; text-align: center; }
.hero-free b { color: var(--bronze-hi); }
.hero-free.on { box-shadow: inset 0 0 0 1.5px var(--bronze-hi); background: rgba(17, 47, 69, .75); }
.hero-free.on b { color: #DFE5EE; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.hero-stats > span { padding: 5px 13px; border-radius: 999px; background: rgba(212, 220, 233, .06); box-shadow: inset 0 0 0 1px rgba(10, 140, 245, .7); font-size: .92rem; color: var(--on-glaze-2); }
.hero-stats i { font-style: normal; }
.hero-stats b { color: #D0D9E7; font-size: 1.04rem; margin-right: 3px; }
.hero-ca { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .9rem; color: var(--on-glaze-2); }
.hero-ca .ca-tick { font-family: var(--display); font-weight: 700; letter-spacing: .08em; color: var(--bronze-hi); }
.hero-ca code { font-family: var(--ui); font-weight: 600; background: rgba(6, 40, 120, .7); padding: 4px 10px; border-radius: 6px; color: #D2DAE7; word-break: break-all; box-shadow: inset 0 0 0 1px rgba(46, 92, 156, .45); }
.hero-ca code.addr { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .82rem; }
.ca-copy, .ca-buy { min-height: 32px; display: inline-flex; align-items: center; border: 0; border-radius: 6px; padding: 3px 12px; font-weight: 800; font-size: .88rem; text-decoration: none; }
.ca-copy { background: linear-gradient(180deg, var(--bronze-hi), var(--bronze)); color: var(--ink); }
.ca-buy { background: radial-gradient(120% 140% at 35% 20%, var(--wine-hi), var(--wine)); color: #DFE5EE; box-shadow: inset 0 0 0 1.5px rgba(92, 200, 255, .5); }

.hero-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; pointer-events: none; }
.hero-bottom > * { pointer-events: auto; }
.hero-watch { min-height: 44px; color: var(--bronze-hi); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 7px 16px; border-radius: 999px; background: linear-gradient(180deg, rgba(42, 104, 236, .94), rgba(17, 62, 172, .92)); box-shadow: var(--rim-soft); font-size: .9rem; max-width: 100%; color: var(--on-glaze); }
.hf-co { color: #CFD8E6; font-weight: 700; }

/* short and narrow screens: the panel tightens, the mark steps aside on landscape phones */
@media (max-width: 520px) {
  .hero { padding: 80px 12px 118px; }
  .hero-in { padding: 30px 18px 26px; gap: 8px; }
  .hero-foot { font-size: .8rem; padding: 6px 12px; gap: 2px 10px; }
  .hero-cta .btn { min-width: 132px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 72px 16px 66px; }
  .hero-mark { display: none; }
  .hero-title { font-size: 3rem; }
  .hero-in { padding: 32px 24px 28px; gap: 6px; width: min(640px, 100%); }
  .hero-cta .btn { min-height: 44px; }
  .hero-lede { font-size: 1rem; }
  .hero-cta { margin-top: 4px; }
  .hero-bottom { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

/* --- guide ------------------------------------------------------------------------------------------------------ */
.guide { position: relative; color: var(--ink); padding: clamp(56px, 7vw, 96px) 16px clamp(48px, 7vw, 88px); }
.guide-band { position: absolute; left: 0; right: 0; top: 18px; opacity: .85; }
.guide-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: 86px; display: grid; gap: 2px; padding: 14px 10px 12px; border-radius: 12px; background: rgba(244, 246, 249, .5); box-shadow: inset 0 0 0 1px rgba(16, 23, 32, .2), inset 0 0 0 4px rgba(212, 220, 233, .8), inset 0 0 0 5px rgba(10, 140, 245, .4); }
.toc-h { font-family: var(--display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-lo); margin: 0 0 6px 10px; font-size: .9rem; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; padding: 7px 10px; border-radius: 7px; border-left: 3px solid transparent; }
.toc a:hover { background: rgba(16, 23, 32, .06); color: var(--ink); }
.toc a.on { border-left-color: var(--terracotta); color: var(--ink); background: rgba(10, 140, 245, .08); }
.doc { max-width: 780px; display: grid; gap: 40px; }
.doc article { scroll-margin-top: 86px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 0 .5em; letter-spacing: .06em; color: var(--ink); }
.doc h2::after { content: ''; display: block; height: 12px; width: min(240px, 60%); margin-top: 8px; background: var(--eggdart) left top / 16px 12px repeat-x; opacity: .85; }
.doc h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; margin: 1em 0 .3em; color: var(--terracotta-lo); }
.doc p, .doc li { color: var(--ink-2); font-size: 1.04rem; }
.doc p { margin: 0 0 .75em; }
.doc ul { margin: 0 0 .75em; padding-left: 1.2em; display: grid; gap: 6px; }
.doc ul li::marker { color: var(--terracotta); }
.doc b { color: var(--ink); }
.doc .note { font-size: .95rem; color: var(--ink-3); }
.howto { margin: 0 0 1em; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.howto li { counter-increment: step; position: relative; padding: 10px 14px 10px 54px; border-radius: 10px; background: rgba(244, 246, 249, .55); box-shadow: inset 0 0 0 1px rgba(24, 53, 92, .2); }
.howto li::before { content: counter(step, upper-roman); position: absolute; left: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--bronze-hi); background: radial-gradient(circle at 35% 30%, #3F78F0, var(--wine-lo)); box-shadow: inset 0 0 0 1.5px var(--terracotta), 0 0 0 1px var(--bronze); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .98rem; background: rgba(244, 246, 249, .35); }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(24, 53, 92, .22); vertical-align: top; }
.doc th { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--terracotta-lo); border-bottom: 1.5px solid rgba(16, 23, 32, .45); }
.plain { padding: 10px 14px; border-left: 3px solid var(--wine); background: rgba(30, 76, 110, .06); border-radius: 0 10px 10px 0; }
.chest-now { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chest-now div { padding: 10px 12px; border-radius: 10px; background: var(--glaze-solid); box-shadow: var(--rim-soft); }
.chest-now dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--on-glaze-2); font-weight: 700; }
.chest-now dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; color: #D0D9E7; overflow-wrap: anywhere; }
.doc-chart { margin: 14px 0 0; padding: 10px 10px 8px; border-radius: 12px; background: #DAE1EC; box-shadow: inset 0 0 0 1px rgba(16, 23, 32, .4), inset 0 0 0 5px #DAE1EC, inset 0 0 0 6px rgba(10, 140, 245, .5); }
.doc-chart svg { width: 100%; height: auto; }
.doc-chart figcaption { font-size: .86rem; color: var(--ink-3); padding: 4px 6px 0; }
@media (max-width: 860px) {
  .guide-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .toc { position: sticky; top: 70px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 8px 16px; margin: 0 -16px; border-radius: 0; box-shadow: none; background: linear-gradient(var(--papyrus) 82%, rgba(212, 220, 233, 0)); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-h { display: none; }
  .toc a { flex: none; border: 1px solid rgba(24, 53, 92, .35); border-radius: 999px; padding: 8px 14px; font-size: .9rem; background: rgba(244, 246, 249, .8); min-height: 40px; display: inline-flex; align-items: center; }
  .toc a.on { border-color: var(--terracotta); background: #EDF1F6; }
  .chest-now { grid-template-columns: minmax(0, 1fr); }
  .howto li { padding-left: 50px; }
}
@media (max-width: 520px) {
  .doc table { font-size: .9rem; }
  .doc th, .doc td { padding: 7px 6px; }
}

/* --- footer ----------------------------------------------------------------------------------------------------- */
.foot { position: relative; padding: 34px 16px calc(26px + env(safe-area-inset-bottom)); text-align: center; }
.foot-band { position: absolute; left: 0; right: 0; top: 10px; opacity: .8; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; font-size: .95rem; color: var(--on-glaze-2); }
.foot-co { color: #CFD8E6; font-weight: 700; }
.foot-chain { display: inline-flex; align-items: center; gap: 7px; color: #D2DAE7; font-weight: 700; }
.foot-chain i { width: 8px; height: 8px; border-radius: 50%; background: #66BDB0; box-shadow: 0 0 0 3px rgba(102, 189, 176, .22); }
.foot-credit { max-width: 760px; margin: 14px auto 0; font-size: .8rem; line-height: 1.45; color: rgba(138, 168, 211, .85); }
.foot-credit a { color: var(--bronze-hi); }
/* the X link: in the top bar beside the sections, and in the footer */
.top-links .top-x { gap: 7px; }
.top-links .top-x svg, .foot-x svg { flex: none; }
.foot-x { display: inline-flex; align-items: center; gap: 6px; color: var(--on-glaze); text-decoration: none; font-weight: 700; min-height: 40px; padding: 0 6px; border-radius: 8px; }
.foot-x:hover { background: rgba(92, 200, 255, .15); }
@media (max-width: 760px) { .top-links .top-x span { display: none; } .top-links .top-x { padding: 10px 12px; min-width: 42px; justify-content: center; } }

