/* ==========================================================================
   Timechain Live — Construction / "Launching soon" placeholder
   Standalone page. Self-contained styling (does not depend on styles.css).
   Unique blockchain-themed progress indicator.
   ========================================================================== */

:root {
  --bg-900: #050b18;
  --orange: #f7931a;
  --gold: #ffb627;
  --gold-light: #ffd472;
  --text: #eaf1fb;
  --text-muted: #8da3c2;
  --line: rgba(140, 170, 220, 0.22);
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient animated background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 640px at 78% 12%, rgba(247,147,26,0.20), transparent 60%),
    radial-gradient(820px 620px at 12% 88%, rgba(36,80,150,0.26), transparent 58%),
    linear-gradient(180deg, #07101f 0%, #050b18 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,160,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
  animation: drift 26s linear infinite;
}
@keyframes drift { to { background-position: 58px 58px, 58px 58px; } }

/* Floating glow orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: 0.5; }
.orb.o1 { width: 360px; height: 360px; top: -80px; right: -60px; background: rgba(247,147,26,0.4); animation: float1 14s ease-in-out infinite; }
.orb.o2 { width: 320px; height: 320px; bottom: -90px; left: -70px; background: rgba(40,90,170,0.5); animation: float2 18s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

/* Layout */
.con-main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px;
}
.con-inner { width: 100%; max-width: 680px; animation: rise 0.9s cubic-bezier(0.2,0.8,0.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Brand mark: intelligence core with orbiting balls */
.con-mark { position: relative; width: 460px; height: 460px; margin: 0 auto 38px; display: grid; place-items: center; }
.con-mark .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,182,39,0.34);
}
.con-mark .ring.r1 { width: 292px; height: 292px; animation: spin 16s linear infinite; }
.con-mark .ring.r2 { width: 356px; height: 356px; border-style: dashed; border-color: rgba(255,182,39,0.22); animation: spin 30s linear infinite reverse; }
.con-mark .ring.r3 { width: 412px; height: 412px; border-color: rgba(120,160,220,0.20); animation: spin 22s linear infinite; }
.con-mark .ring.r4 { width: 460px; height: 460px; border-color: rgba(120,160,220,0.14); animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Orbiting balls — centred on their ring's border, with size + colour variants */
.con-mark .ring .node {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
  top: 0; left: 50%; transform: translate(-50%, -50%);
}
.con-mark .ring .node.n-lg { width: 17px; height: 17px; box-shadow: 0 0 16px var(--gold); }
.con-mark .ring .node.n-sm { width: 7px; height: 7px; box-shadow: 0 0 9px var(--gold); }
.con-mark .ring .node.blue { background: #6db3ff; box-shadow: 0 0 13px rgba(109,179,255,0.85); }
.con-mark .ring .node.pos-bottom { top: 100%; left: 50%; }
.con-mark .ring .node.pos-right { top: 50%; left: 100%; }
.con-mark .ring .node.pos-left { top: 50%; left: 0; }

.con-mark .icon {
  width: 260px; height: 260px; border-radius: 50%; position: relative; z-index: 2;
  filter: drop-shadow(0 18px 46px rgba(247,147,26,0.42)) drop-shadow(0 0 24px rgba(255,182,39,0.22));
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Keep the larger mark from overflowing on narrow screens */
@media (max-width: 560px) {
  .con-mark { transform: scale(0.78); margin-bottom: 8px; }
}
@media (max-width: 380px) {
  .con-mark { transform: scale(0.64); }
}

/* Title */
.con-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  padding: 7px 16px; border: 1px solid rgba(255,182,39,0.32); border-radius: 999px;
  background: rgba(255,168,40,0.07); margin-bottom: 26px;
}
.con-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.con-inner h1 {
  font-family: var(--font-head); font-weight: 700; line-height: 1.08;
  font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.02em; color: #fff; margin-bottom: 18px;
}
.con-inner h1 .grad {
  background: linear-gradient(100deg, var(--gold-light), var(--orange) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.con-inner .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto 44px; line-height: 1.6; }

/* ====================== Blockchain progress indicator ====================== */
.chain-progress { max-width: 460px; margin: 0 auto; }
.chain-status {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-size: 0.84rem; margin-bottom: 14px;
}
.chain-status .cs-label { color: var(--text-muted); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 9px; }
.chain-status .cs-label .spark {
  width: 9px; height: 9px; border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  box-shadow: 0 0 10px rgba(247,147,26,0.7); animation: mine 1.1s ease-in-out infinite;
}
@keyframes mine { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
.chain-status .cs-pct { color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; }

/* The "blocks" of the chain */
.chain-track { display: flex; gap: 6px; }
.chain-block {
  position: relative; flex: 1; height: 26px; border-radius: 6px;
  background: rgba(120,150,200,0.10); border: 1px solid rgba(120,150,200,0.16);
  overflow: hidden; transition: border-color 0.4s ease;
}
.chain-block::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}
.chain-block.filled { border-color: rgba(255,182,39,0.5); }
.chain-block.filled::after { transform: scaleX(1); opacity: 1; }
.chain-block.mining::after { transform: scaleX(1); opacity: 0.4; animation: blockPulse 0.9s ease-in-out infinite; }
@keyframes blockPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.7; } }
/* subtle link line between blocks echoes a chain */
.chain-block + .chain-block::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 6px; height: 2px;
  background: rgba(255,182,39,0.3); transform: translateY(-50%);
}

.chain-sub { margin-top: 16px; font-size: 0.84rem; color: rgba(141,163,194,0.8); letter-spacing: 0.03em; }
.chain-sub b { color: var(--gold-light); font-weight: 600; }

/* Footer */
.con-footer { padding: 26px 24px; text-align: center; border-top: 1px solid var(--line); }
.con-footer p { color: var(--text-muted); font-size: 0.88rem; }
.con-footer a { color: var(--gold-light); text-decoration: none; transition: color 0.18s ease; }
.con-footer a:hover { color: var(--gold); text-decoration: underline; }

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