/* QUINTILLION MINING COMPANY LTD. — landing page styles. Dark only; it is a space game. */

:root {
  --ink:    #05070F;
  --hull:   #EAF0FA;
  --amber:  #FFB03A;
  --mint:   #6FE7D2;
  --violet: #B78CFF;
  --red:    #FF6A5A;
  --dim:    #7C8AA6;

  --line: rgba(124, 138, 166, .28);
  --line-hi: rgba(124, 138, 166, .55);
  --panel: rgba(234, 240, 250, .028);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --pad: clamp(18px, 5vw, 40px);
  --gap: clamp(20px, 4vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px; /* clears the sticky bar on in-page jumps */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--hull);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── starfield backdrop ─────────────────────────────── */
.stars, .veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stars {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23EAF0FA'%3E%3Ccircle cx='18' cy='36' r='1' opacity='.55'/%3E%3Ccircle cx='73' cy='11' r='.8' opacity='.35'/%3E%3Ccircle cx='126' cy='58' r='1.3' opacity='.6'/%3E%3Ccircle cx='201' cy='24' r='.9' opacity='.4'/%3E%3Ccircle cx='243' cy='79' r='1' opacity='.5'/%3E%3Ccircle cx='44' cy='104' r='.8' opacity='.3'/%3E%3Ccircle cx='158' cy='121' r='1.1' opacity='.45'/%3E%3Ccircle cx='94' cy='147' r='.9' opacity='.4'/%3E%3Ccircle cx='222' cy='163' r='1.2' opacity='.5'/%3E%3Ccircle cx='12' cy='188' r='1' opacity='.35'/%3E%3Ccircle cx='131' cy='206' r='.8' opacity='.3'/%3E%3Ccircle cx='186' cy='233' r='1.1' opacity='.5'/%3E%3Ccircle cx='61' cy='247' r='.9' opacity='.4'/%3E%3Ccircle cx='249' cy='219' r='.8' opacity='.3'/%3E%3Ccircle cx='104' cy='81' r='.7' opacity='.28'/%3E%3Ccircle cx='170' cy='176' r='.7' opacity='.28'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .85;
}
.veil {
  background:
    radial-gradient(120vw 70vh at 78% -10%, rgba(183, 140, 255, .16), transparent 62%),
    radial-gradient(90vw 60vh at 8% 22%, rgba(255, 176, 58, .10), transparent 60%),
    radial-gradient(120vw 80vh at 50% 118%, rgba(111, 231, 210, .09), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ── type ───────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

.kicker {
  font-size: 11px;
  letter-spacing: .30em;
  color: var(--dim);
  text-transform: uppercase;
}

.dot { color: var(--dim); padding: 0 .2em; }
.muted { color: var(--dim); }

.h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(15px, 3.4vw, 19px);
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.h2 .rule {
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.h2-plain { letter-spacing: .16em; font-size: clamp(19px, 5vw, 30px); }

/* ── top bar ────────────────────────────────────────── */
.bar {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .30em;
  color: var(--hull);
}
.mark svg { color: var(--dim); flex: none; }
.bar-play { padding: 8px 18px; font-size: 11px; }

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hull);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease,
              border-color .16s ease, transform .1s ease;
}
.btn:hover { border-color: var(--hull); background: rgba(234, 240, 250, .07); }
.btn:active { transform: translateY(1px); }

.btn-go {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 176, 58, .18), 0 12px 40px -14px rgba(255, 176, 58, .75);
}
.btn-go:hover { background: #FFC468; border-color: #FFC468; color: var(--ink); }

.btn-ghost { color: var(--dim); }
.btn-ghost:hover { color: var(--hull); }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ── hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  gap: var(--gap);
  padding-top: clamp(34px, 8vw, 76px);
  padding-bottom: clamp(34px, 7vw, 68px);
}
.hero-copy { display: grid; gap: 18px; align-content: start; }

.title {
  font-size: clamp(40px, 13.5vw, 92px);
  letter-spacing: .10em;
  line-height: .98;
  margin-top: 2px;
  /* keep the trailing letter-space from pushing the glyphs off-centre */
  text-indent: .10em;
  margin-left: -.10em;
  text-shadow: 0 0 44px rgba(234, 240, 250, .18);
  overflow-wrap: break-word;
}
@media (min-width: 480px) { .title { letter-spacing: .16em; text-indent: .16em; margin-left: -.16em; } }

.tagline {
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: .28em;
  color: var(--mint);
  text-transform: uppercase;
}
.lede { color: var(--dim); max-width: 46ch; }
.lede b, .foot-note b { color: var(--hull); font-weight: 700; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta .btn { flex: 1 1 auto; min-width: 168px; }

.stats {
  display: flex;
  gap: clamp(18px, 6vw, 44px);
  list-style: none;
  margin: 14px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.stats li { display: grid; gap: 2px; }
.stats b { font-size: 22px; color: var(--amber); line-height: 1; }
.stats span { font-size: 10px; letter-spacing: .24em; color: var(--dim); }

/* ── hero art ───────────────────────────────────────── */
.art-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: #070A14;
  overflow: hidden;
  border-radius: 3px;
}
.hero-svg, .hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
}
.hero-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.hero-photo.is-on { opacity: 1; }
.art-frame:has(.hero-photo.is-on) .hero-svg { opacity: 0; }

.art-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 12px;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(5, 7, 15, .92), rgba(5, 7, 15, 0));
  text-align: center;
}

.twinkle circle { animation: tw 4.5s ease-in-out infinite; }
.twinkle circle:nth-child(3n)   { animation-delay: -1.4s; }
.twinkle circle:nth-child(3n+1) { animation-delay: -2.9s; }
@keyframes tw { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }

.rockdrift { animation: drift 14s ease-in-out infinite; transform-origin: 300px 265px; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1.1deg); }
}
.ore path { animation: pulse 3.2s ease-in-out infinite; }
.ore path:nth-child(2) { animation-delay: -.9s; }
.ore path:nth-child(3) { animation-delay: -1.8s; }
.ore path:nth-child(4) { animation-delay: -2.4s; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.drill { animation: drillpulse 1.1s ease-in-out infinite; }
@keyframes drillpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.raider { animation: inbound 9s linear infinite; }
@keyframes inbound {
  0%   { transform: translate(60px, -26px); opacity: 0; }
  18%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-70px, 34px); opacity: 0; }
}
.drift rect { animation: float 7s ease-in-out infinite; }
.drift rect:nth-child(2) { animation-delay: -2.5s; }
.drift rect:nth-child(3) { animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, -10px); }
}

/* ── sections ───────────────────────────────────────── */
.block {
  padding-top: clamp(34px, 7vw, 66px);
  padding-bottom: clamp(34px, 7vw, 66px);
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 20px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-hi); background: rgba(234, 240, 250, .05); transform: translateY(-2px); }
.card .glyph { width: 38px; height: 38px; color: var(--hull); }
.card h3 {
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--amber);
}
.card p { color: var(--dim); font-size: 14px; }

.foot-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* ── seeds ──────────────────────────────────────────── */
.seed-panel {
  display: grid;
  gap: var(--gap);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(111, 231, 210, .05), rgba(111, 231, 210, 0) 55%),
    var(--panel);
  padding: clamp(20px, 5vw, 38px);
}
.seed-copy p { color: var(--dim); max-width: 56ch; }

.seed-form { display: grid; gap: 10px; align-content: center; }
.lbl {
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--dim);
  text-transform: uppercase;
}
.seed-row { display: flex; flex-wrap: wrap; gap: 10px; }
.seed-row input {
  flex: 1 1 190px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  background: rgba(5, 7, 15, .8);
  color: var(--hull);
  font: inherit;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.seed-row input::placeholder {
  color: var(--dim);
  opacity: .8;
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
}
.seed-row .btn { flex: 0 0 auto; }

.seed-url {
  font-size: 12px;
  color: var(--mint);
  letter-spacing: .06em;
  /* break the URL only where it must; keep the prose wrapping on words */
  overflow-wrap: anywhere;
  min-height: 1.6em;
}

/* ── app store ──────────────────────────────────────── */
.store {
  display: grid;
  gap: var(--gap);
  align-items: center;
}
.store-copy { display: grid; gap: 12px; }
.store-copy p:last-child { color: var(--dim); max-width: 50ch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border: 1px dashed var(--line-hi);
  border-radius: 6px;
  color: var(--dim);
  background: rgba(234, 240, 250, .03);
  justify-self: start;
}
.badge span { display: grid; font-size: 15px; letter-spacing: .14em; color: var(--hull); line-height: 1.25; }
.badge small { font-size: 9px; letter-spacing: .26em; color: var(--dim); }

/* ── footer ─────────────────────────────────────────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
}
.foot a { color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { border-bottom-color: var(--amber); }

/* ── wider viewports ────────────────────────────────── */
@media (min-width: 680px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .seed-panel { grid-template-columns: 1fr 1fr; align-items: center; }
  .store { grid-template-columns: 1fr auto; }
}
@media (max-width: 400px) {
  .cta .btn { min-width: 100%; }
  .bar-play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* company letterhead: the wordmark rides above its spelled-out subtitle */
.title-sub{display:block;font-size:clamp(11px,1.6vw,14px);letter-spacing:.42em;color:#FFB03A;font-weight:600;margin-top:10px}

/* the wordmark is the hero; text stands in when the image cannot */
.title-lockup{margin:0}
.title-img{width:min(560px,92%);height:auto;display:block;filter:drop-shadow(0 6px 24px rgba(0,0,0,.55))}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
