/* Orange Keep · Under Construction placeholder (standalone) */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --c-orange: #F7861B;
  --c-orange-bright: #FF8A1E;
  --c-orange-deep: #E0611A;
  --c-gold: #FFB454;
  --c-ink: #120D08;
  --c-ink-2: #1C140C;
  --c-on-dark: #F6ECDD;
  --c-on-dark-soft: #C7B6A0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* Overscroll gutters: warm gradient top, ink bottom — mirrors the body gradient. */
html { background: linear-gradient(to bottom, #2a1c0e 0 50%, #120D08 50% 100%) fixed; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--c-on-dark);
  background: radial-gradient(120% 90% at 50% -10%, #2a1c0e 0%, var(--c-ink-2) 38%, var(--c-ink) 100%);
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient drifting glow */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle, rgba(247,134,27,.55), transparent 70%);
}
.bg-orbs span:nth-child(1){ width: 420px; height: 420px; top: -8%; left: -6%; animation: drift 16s ease-in-out infinite; }
.bg-orbs span:nth-child(2){ width: 360px; height: 360px; bottom: -10%; right: -5%; background: radial-gradient(circle, rgba(255,180,84,.45), transparent 70%); animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.12); } }

.wrap {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px;
}

/* Central provided graphic */
.relic { position: relative; width: min(280px, 64vw); margin-bottom: 8px; }
.relic .halo {
  position: absolute; inset: -18% ; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, rgba(247,134,27,0), rgba(255,180,84,.55), rgba(247,134,27,0) 60%);
  filter: blur(14px); animation: spin 8s linear infinite;
}
.relic img {
  position: relative; z-index: 1; width: 100%; display: block;
  filter: drop-shadow(0 24px 50px rgba(247,134,27,.45));
  animation: hover 5.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.2deg); } }

/* Wordmark */
.relic-word { width: min(520px, 86vw); margin: clamp(40px, 7vw, 72px) 0 6px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.5)); }

.tagline {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); letter-spacing: -.02em; margin: 14px 0 6px;
  background: linear-gradient(100deg, var(--c-gold), var(--c-orange-bright), var(--c-orange-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  max-width: 540px; color: var(--c-on-dark-soft); font-size: 1.06rem; line-height: 1.6; margin: 0 0 34px;
}

/* ===== Unique progress indicator: the Keep Ring =====
   Six shield segments illuminate in sequence around a glowing core,
   echoing the Orange Keep app icon. */
.keep-ring { --size: 112px; --radius: 40px; position: relative; width: var(--size); height: var(--size); margin: 8px auto 34px; }
.keep-ring .core {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 34px;
  transform: translate(-50%, -50%); border-radius: 8px 8px 11px 11px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-orange-deep));
  box-shadow: 0 0 22px rgba(247,134,27,.85), inset 0 1px 0 rgba(255,255,255,.4);
  animation: corePulse 2.4s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { transform: translate(-50%,-50%) scale(.92); opacity:.9; } 50% { transform: translate(-50%,-50%) scale(1.06); opacity:1; } }
.keep-ring .seg {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 22px;
  border-radius: 5px 5px 9px 9px;
  background: rgba(255,196,84,.14); border: 1px solid rgba(255,196,84,.26);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--radius) * -1));
}
.keep-ring .seg::after {
  content:''; position:absolute; inset:-1px; border-radius: inherit; opacity:0;
  background: linear-gradient(180deg, var(--c-gold), var(--c-orange));
  box-shadow: 0 0 12px rgba(247,134,27,.9);
  animation: segGlow 3s ease-in-out infinite;
}
.keep-ring .seg:nth-child(1){ --a: 0deg; }   .keep-ring .seg:nth-child(1)::after { animation-delay: 0s; }
.keep-ring .seg:nth-child(2){ --a: 60deg; }  .keep-ring .seg:nth-child(2)::after { animation-delay: .5s; }
.keep-ring .seg:nth-child(3){ --a: 120deg; } .keep-ring .seg:nth-child(3)::after { animation-delay: 1s; }
.keep-ring .seg:nth-child(4){ --a: 180deg; } .keep-ring .seg:nth-child(4)::after { animation-delay: 1.5s; }
.keep-ring .seg:nth-child(5){ --a: 240deg; } .keep-ring .seg:nth-child(5)::after { animation-delay: 2s; }
.keep-ring .seg:nth-child(6){ --a: 300deg; } .keep-ring .seg:nth-child(6)::after { animation-delay: 2.5s; }
@keyframes segGlow { 0%, 12% { opacity: 1; } 38%, 100% { opacity: 0; } }

/* ===== Charging bolt progress =====
   A Lightning bolt that charges from empty to full as launch nears,
   echoing the Lightning half of the wallet. */
.charge-shell { width: 100%; display: flex; justify-content: center; }
.charge { position: relative; display: flex; align-items: center; gap: 24px; }
.charge::before { /* soft aura behind the bolt */
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,134,27,.32), transparent 66%);
  filter: blur(16px); z-index: 0; pointer-events: none;
}
.bolt { position: relative; z-index: 1; width: 76px; height: 108px; display: block; overflow: visible; }
.bolt-outline { fill: rgba(255,196,84,.07); stroke: rgba(255,196,84,.4); stroke-width: .5; }
.bolt-fill { filter: drop-shadow(0 0 5px rgba(247,134,27,.95)); transition: y .25s ease, height .25s ease; }
.bolt-spark { fill: #fff; opacity: 0; }
.bolt.charging .bolt-spark { animation: spark 1.2s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }

.charge-read { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.charge-read .pct {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--c-gold), var(--c-orange-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.charge-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; color: var(--c-on-dark-soft); }
.charge-status::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--c-gold); box-shadow: 0 0 8px rgba(255,180,84,.9); animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* Footer */
.c-footer {
  position: relative; z-index: 1; text-align: center; padding: 24px 16px 28px;
  font-size: .86rem; color: var(--c-on-dark-soft);
}
.c-footer a { color: var(--c-gold); text-decoration: none; font-weight: 600; }
.c-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
