/* HOME / TECH / ABOUT / CONTACT */
.hero {
  padding: 40px var(--gutter) 48px;
  padding-left: clamp(16px, 8vw, 128px); /* left indent of the hero text — raise to move it right */
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero-copy { container-type: inline-size; }
/* Headline scales with its column so each line stays on one row. */
.hero-copy h1 { font-size: clamp(40px, 17cqi, 118px); white-space: nowrap; }
.hero-copy > p { max-width: 560px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #111; }
.btn-ghost { color: #d9dde1; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.hero-stats { display: flex; gap: 40px; margin-top: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; }
.hero-stats span { font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.hero-visual { height: 500px; position: relative; display: grid; place-items: center; perspective: 1200px; --mx: 0; --my: 0; }
.grid-plane {
  position: absolute;
  width: 130%;
  height: 75%;
  bottom: 0;
  background:
    linear-gradient(#e77b0022 1px, transparent 1px),
    linear-gradient(90deg, #e77b0022 1px, transparent 1px);
  background-size: 45px 45px;
  transform: perspective(450px) rotateX(60deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  overflow: hidden;
  background: none;
}
.grid-plane::before {
  content: "";
  position: absolute;
  inset: -45px 0 0;
  background:
    linear-gradient(#e77b0022 1px, transparent 1px),
    linear-gradient(90deg, #e77b0022 1px, transparent 1px);
  background-size: 45px 45px;
  animation: grid-run 3s linear infinite;
  will-change: transform;
}
@keyframes grid-run { to { transform: translateY(45px); } }
.orb { position: absolute; border-radius: 50%; border: 1px solid #3a3025; }
.orb-a { width: 320px; height: 320px; animation: orb-pulse 6s ease-in-out infinite; }
.orb-b { width: 470px; height: 470px; border-style: dashed; animation: orb-pulse 6s ease-in-out infinite 3s, spin 80s linear infinite; }

/* Whole visual tilts toward the mouse (js/hero.js sets --mx / --my) */
.hero-stage {
  position: relative;
  width: min(400px, 82%);
  aspect-ratio: 1;
  transform: rotateY(calc(var(--mx) * 14deg)) rotateX(calc(var(--my) * -12deg));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* Artwork card */
.hero-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #151a1f, #090b0d);
  border: 1px solid #343b42;
  box-shadow: 0 35px 80px #000, 0 0 60px #e77b001f;
  transform: rotate(-7deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  animation: card-float 7s ease-in-out infinite;
}
.hero-logo { width: 78%; max-width: 300px; height: auto; min-height: 0; flex: 0 1 auto; object-fit: contain; align-self: center; }
.card-top, .card-bottom { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; color: #737d87; }

/* Floating info chips */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: #0d1014f5;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px #000c;
  white-space: nowrap;
  transform: translateZ(60px);
  animation: chip-bob 5s ease-in-out infinite;
}
.hero-chip small { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-chip strong { font-size: 13px; }
.chip-icon { width: 32px; height: 32px; display: grid; place-items: center; background: #e77b0018; border: 1px solid #e77b0055; color: var(--accent); flex: none; }
.chip-icon svg { width: 17px; height: 17px; }
.chip-icon.gold { color: #ffc34d; background: #ffc34d14; border-color: #ffc34d55; }
.chip-champ { top: -2%; right: -16%; }
.chip-games { top: -11%; left: -6%; animation-delay: -1.7s; }
.chip-rank { bottom: -12%; right: -4%; animation-delay: -3.4s; }

/* Headline + intro polish */
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Soft glows are radial gradients rather than blur filters — far cheaper to animate. */
.hero-bg .glow { position: absolute; border-radius: 50%; will-change: transform; }
.hero-bg .g1 { width: 760px; height: 760px; right: -5%; top: -10%; background: radial-gradient(closest-side, #e77b0033, transparent); animation: lab-drift 16s ease-in-out infinite; }
.hero-bg .g2 { width: 600px; height: 600px; left: -15%; bottom: -25%; background: radial-gradient(closest-side, #6b3cff1f, transparent); animation: lab-drift 20s ease-in-out infinite reverse; }
.hero-bg .g3 { width: 420px; height: 420px; left: 30%; top: -20%; background: radial-gradient(closest-side, #ffad5514, transparent); animation: lab-drift 12s ease-in-out infinite; }
@keyframes lab-drift { 50% { transform: translate(60px, -40px) scale(1.1); } }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #e77b0055;
  background: #e77b0010;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  color: #c9cfd5;
}
.hero-pill .pulse { flex: none; }
.pill-tag { padding: 3px 8px; background: var(--accent); color: var(--on-accent); letter-spacing: .06em; font-size: 10px; transition: background .2s, transform .2s; }
a.pill-tag:hover { background: var(--accent-soft); transform: translateY(-1px); }
.hero-copy h1 em {
  background: linear-gradient(100deg, var(--accent) 20%, #ffcf8a 45%, var(--accent) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 5s ease-in-out 1.2s 2;
  padding-right: .05em;
}
@keyframes text-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.btn-glow { position: relative; overflow: hidden; box-shadow: 0 0 0 0 #e77b0066; animation: btn-pulse 2.6s ease-out infinite; }
.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff55, transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: btn-shine 3.5s ease-in-out infinite;
}
@keyframes btn-pulse { 0% { box-shadow: 0 0 0 0 #e77b0066; } 70%, 100% { box-shadow: 0 0 0 14px #e77b0000; } }
@keyframes btn-shine { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(280%) skewX(-20deg); } }

.hero-stats > div { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.hero-stats > div:first-child { border-left-color: var(--accent); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: 24px;
  height: 38px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  opacity: .8;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--accent); }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 12px; } }

@keyframes card-float {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}
@keyframes orb-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.ticker {
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px var(--gutter);
  color: #8d969f;
  font-size: 10px;
  letter-spacing: .16em;
}
.ticker > div { display: flex; align-items: center; gap: 10px; }
.ticker svg { width: 22px; height: 22px; flex: none; color: #c9cfd5; }
.ticker .accent { stroke: var(--accent); }
.ticker .accent-fill { fill: var(--accent); stroke: var(--accent); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 350px; color: var(--muted); font-size: 14px; margin: 0; }

.challenge-strip {
  border-block: 1px solid var(--line);
  padding: 25px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
}
.challenge-strip > div { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .15em; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3; } }
.challenge-strip p { color: var(--muted); font-size: 13px; margin: 0; }
.challenge-strip a { color: var(--accent); font-size: 12px; font-weight: 700; }
.challenge-strip a:hover { color: var(--accent-soft); }

.tech-section { background: #090b0d; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  margin: 0 2px;
  border: 1px solid #e77b0066;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.soon-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }

.how-it-works {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 36px;
  align-items: center;
}
.how-it-works h3 { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.how-it-works ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-it-works li { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; }
.how-it-works strong { display: block; font-size: 14px; }
.how-it-works li p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ABOUT */
.about-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
  overflow: hidden;
}

.about-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.about-visual::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: .18;
}
.about-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.about-ring.r1 { inset: 24%; border-color: #e77b0055; }
.about-ring.r2 { inset: 12%; border-style: dashed; animation: spin 40s linear infinite; }
.about-ring.r3 { inset: 0; border-color: var(--line); animation: spin 60s linear infinite reverse; }
.about-ring i {
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.about-ring.r3 i:nth-child(2) { top: auto; bottom: -4px; width: 8px; height: 8px; background: var(--text); box-shadow: 0 0 10px #fff8; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-logo { position: relative; width: 34%; filter: drop-shadow(0 20px 40px #000); animation: card-float 7s ease-in-out infinite; }

.about-chip {
  position: absolute;
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  border: 1px solid var(--line-strong);
  background: #0d1014e6;
  color: var(--text);
  animation: chip-bob 5s ease-in-out infinite;
}
.about-chip::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.about-chip.c1 { top: 14%; left: 2%; }
.about-chip.c2 { top: 46%; right: -2%; animation-delay: -1.6s; }
.about-chip.c3 { bottom: 12%; left: 10%; animation-delay: -3.2s; }
@keyframes chip-bob { 50% { transform: translateY(-8px); } }

.about-content h2 { margin-bottom: 18px; }
.about-lead { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 0 32px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.pillar { padding: 22px 20px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s; }
.pillar:hover { border-color: #e77b0088; transform: translateY(-4px); }
.pillar-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #e77b0018; border: 1px solid #e77b0044; color: var(--accent); }
.pillar-icon svg { width: 21px; height: 21px; }
.pillar h3 { font-family: var(--font-display); font-size: 20px; margin: 16px 0 6px; }
.pillar p { color: var(--muted); font-size: 13px; margin: 0; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.roadmap::before { content: ""; position: absolute; top: 6px; left: 6px; right: 6px; height: 2px; background: linear-gradient(90deg, var(--accent) 0 33%, var(--line-strong) 33%); }
.roadmap li { position: relative; padding: 24px 16px 0 0; }
.roadmap li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  background: var(--bg);
}
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1.6s ease-in-out infinite; }
.rm-step { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.roadmap li.done .rm-step { color: var(--accent); }
.roadmap strong { font-size: 14px; font-weight: 600; }

/* CONTACT */
.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #0a0c0f);
}
.contact-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -140px;
  top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(140px);
  opacity: .14;
}
.contact-section h2 { margin-bottom: 18px; }
.contact-lead { color: var(--muted); font-size: 16px; max-width: 440px; margin: 0 0 34px; }

.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.contact-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #0d1014b3;
  transition: border-color .2s, transform .2s;
}
.contact-points li:hover { border-color: #e77b0066; transform: translateX(4px); }
.cp-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #e77b0018; border: 1px solid #e77b0044; color: var(--accent); }
.cp-icon svg { width: 22px; height: 22px; }
.cp-label { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-points a, .contact-points strong { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-points a:hover { color: var(--accent); }
.cp-socials { display: flex; flex-wrap: wrap; gap: 4px 14px; }

.contact-card {
  position: relative;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #12161bf2, #0b0e11f2);
  padding: 36px;
  box-shadow: 0 30px 80px #0009;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.contact-card h3 { font-family: var(--font-display); font-size: 28px; margin: 0 0 18px; letter-spacing: -.02em; }
.contact-offline p { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

/* FOOTER */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #090b0d, #050607);
  padding: 0 var(--gutter);
  container-type: inline-size;
}
/* Animated light line along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: footer-sweep 6s linear infinite;
}
@keyframes footer-sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes footer-line { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.footer-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -320px;
  width: 1100px;
  height: 640px;
  translate: -50% 0;
  background: radial-gradient(closest-side, #e77b0026, transparent);
  pointer-events: none;
}

/* Call-to-action banner */
.footer-cta {
  position: relative;
  margin-top: 36px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid #e77b0055;
  background:
    linear-gradient(#e77b000f 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #e77b000f 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 15% 0%, #e77b0030, transparent 55%),
    linear-gradient(135deg, #17120c, #0b0d10);
  box-shadow: 0 30px 80px #0009, inset 0 0 0 1px #e77b0014;
  overflow: hidden;
}
.footer-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff0d, transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: champ-shine 7s ease-in-out infinite;
}
@keyframes champ-shine { 0%, 60% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(380%) skewX(-20deg); } }
.footer-cta h2 { font-size: clamp(24px, 3vw, 38px); margin: 10px 0 0; }
.footer-cta p { color: var(--muted); margin: 0; max-width: 460px; }
.footer-cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.footer-cta-actions .btn { padding: 13px 20px; font-size: 14px; }

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 40px 0 28px;
}
.footer-logo { height: 46px; width: auto; display: block; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 12px 0 16px; }
.socials { display: flex; gap: 10px; }
.socials a {
  --brand: var(--accent);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #0d1014;
  color: #c9cfd5;
  transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.socials a.s-fb { --brand: #1877f2; }
.socials a.s-ig { --brand: #e1306c; }
.socials a.s-in { --brand: #0a66c2; }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 45%, transparent); }
.socials a.s-ig:hover { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.socials svg { width: 17px; height: 17px; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col h3 { position: relative; margin: 2px 0 4px; padding-bottom: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 2px; background: var(--accent); }
.footer-col a { position: relative; font-size: 14px; color: var(--muted); transition: color .2s, padding .2s; }
.footer-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s;
}
.footer-col a:hover { color: var(--text); padding-left: 16px; }
.footer-col a:hover::before { width: 10px; }

/* Giant outlined wordmark */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 7.5cqi; /* "TARTR8" is ~6.5em wide: 7.5% of the footer width spans about half of it */
  line-height: .8;
  letter-spacing: -.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px #ffffff1c;
  background: linear-gradient(100deg, transparent 30%, #e77b0040 50%, transparent 70%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: footer-line 9s linear infinite;
  user-select: none;
  margin-bottom: -.12em;
  pointer-events: none;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* status left · copyright centred · back-to-top right */
  align-items: center;
  gap: 16px;
}
.footer-bottom .site-status { justify-self: start; }
.footer-bottom p { text-align: center; }
.footer-bottom .back-top { justify-self: end; }
.footer-bottom p { font-size: 12px; color: #656e77; margin: 0; }
.site-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.site-status i { width: 8px; height: 8px; border-radius: 50%; background: #5d666f; }
.site-status.up i { background: var(--good); box-shadow: 0 0 10px var(--good); animation: blink 2s ease-in-out infinite; }
.back-top { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.back-top b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  transition: background .2s, border-color .2s, transform .2s;
}
.back-top:hover { color: var(--text); }
.back-top:hover b { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }


/* CONTACT FORM */
.contact-form { display: grid; gap: 16px; }
.topic-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.topic-chips label { cursor: pointer; flex: 1 1 auto; } /* chips grow so every row spans the full form width */
.topic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chips label > span {
  display: block;
  text-align: center;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.topic-chips label:hover > span { border-color: var(--text); color: var(--text); }
.topic-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.topic-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.contact-form .field { display: grid; gap: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form input:not([type=radio]), .contact-form textarea {
  background: #0a0c0f;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6d7680; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #e77b0022; outline: none; }
.contact-form .invalid { border-color: var(--bad) !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.char-count { font-size: 11px; color: #7a838d; text-align: right; margin-top: -8px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form button { cursor: pointer; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-msg { font-size: 13px; font-weight: 600; }
.form-msg.good { color: var(--good); }
.form-msg.bad { color: var(--bad); }

.contact-sent { text-align: center; padding: 30px 0; animation: pop-in .3s ease-out; }
.sent-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #27c46b1f;
  border: 1px solid var(--good);
  color: var(--good);
  box-shadow: 0 0 30px #27c46b33;
}
.sent-check svg { width: 34px; height: 34px; }
.contact-sent p { color: var(--muted); margin: 0 auto 24px; max-width: 300px; }
.contact-sent .btn { cursor: pointer; background: none; }

/* LEADERBOARD (shown only when the backend is running) */
.leaderboard-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 30% 30%, #e77b000d, transparent 70%); }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lb-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  padding: 8px 16px 8px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lb-tab-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #0a0c0f; border: 1px solid var(--line); color: #c9cfd5; }
.lb-tab-icon svg { width: 20px; height: 20px; }
.lb-tab-icon .accent { stroke: var(--accent); }
.lb-tab-icon .accent-fill { fill: var(--accent); stroke: none; }
.lb-tab-icon .lit { fill: var(--accent); stroke: var(--accent); }
.lb-tab-icon .on-lit { stroke: #fff; }
.lb-tabs button:hover { color: var(--text); border-color: var(--text); }
.lb-tabs button[aria-selected="true"] { background: #e77b0018; border-color: var(--accent); color: var(--text); }
.lb-tabs button[aria-selected="true"] .lb-tab-icon { border-color: #e77b0066; }

.lb-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* Podium: 2nd · 1st · 3rd */
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.pod {
  --medal: #c9d1d9;
  position: relative;
  text-align: center;
  padding: 22px 14px 18px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--medal);
  background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 10%, transparent), var(--panel) 70%);
  min-width: 0;
  animation: pop-in .35s ease-out backwards;
}
.pod.p1 { --medal: #ffc34d; padding-top: 30px; padding-bottom: 26px; box-shadow: 0 0 40px #ffc34d1a; order: 2; animation-delay: .05s; }
.pod.p2 { --medal: #c9d1d9; order: 1; animation-delay: .12s; }
.pod.p3 { --medal: #d08a4f; order: 3; animation-delay: .18s; }
.pod.empty { border-top-color: var(--line-strong); background: var(--panel); opacity: .6; }
.pod-crown { width: 34px; height: 34px; margin: -6px auto 4px; color: #ffc34d; filter: drop-shadow(0 0 10px #ffad5588); animation: crown-bob 3s ease-in-out infinite; }
.pod-crown svg { width: 100%; height: 100%; }
@keyframes crown-bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.pod-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 2px solid var(--medal);
  background: #0a0c0f;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--medal);
}
.pod.p1 .pod-avatar { width: 64px; height: 64px; font-size: 28px; }
.pod-place { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--medal); text-transform: uppercase; }
.pod-name { font-weight: 700; font-size: 16px; margin: 4px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod.me .pod-name::after { content: " (you)"; font-weight: 500; font-size: 12px; color: var(--accent-soft); }
.pod-score { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.pod.p1 .pod-score { font-size: 34px; }
.pod-score small { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-left: 3px; }
.pod-meta { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Ranks 4–10 */
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-list li {
  display: grid;
  grid-template-columns: 34px 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #0d1014b3;
  transition: border-color .2s;
}
.lb-list li:hover { border-color: var(--line-strong); }
.lb-list li.me { border-color: var(--accent); background: #e77b0014; }
.lb-rank { font-size: 13px; color: #6d7680; font-weight: 700; }
.lb-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #1a1f25; color: var(--text); font-weight: 700; font-size: 14px; }
.lb-list li.me .lb-avatar { background: var(--accent); color: var(--on-accent); }
.lb-who { min-width: 0; }
.lb-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list li.me .lb-name::after { content: " (you)"; color: var(--accent-soft); font-size: 12px; font-weight: 500; }
.lb-when { display: block; font-size: 11px; color: #6d7680; }
.lb-score { font-family: var(--font-display); font-size: 20px; text-align: right; }
.lb-score small { font-family: var(--font-body); font-size: 11px; color: var(--muted); margin-left: 2px; }
.lb-list li.lb-note { display: block; text-align: center; color: var(--muted); font-size: 13px; border-style: dashed; background: none; }

.lb-empty-state { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-strong); }
.lb-empty-state .pod-crown { color: #3a424b; filter: none; animation: none; width: 48px; height: 48px; margin: 0 auto 12px; }
.lb-empty-state h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.lb-empty-state p { color: var(--muted); margin: 0 0 20px; }

/* Side cards */
.lb-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-height) + 20px); }
.lb-card { border: 1px solid var(--line-strong); background: var(--panel); padding: 22px; }
.lb-card:empty { display: none; }
.lb-card-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.lb-card .btn { width: 100%; justify-content: center; cursor: pointer; }
.lb-me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lb-me-head .avatar { width: 40px; height: 40px; font-size: 16px; }
.lb-me-head strong { display: block; font-size: 16px; }
.lb-me-head div > span { font-size: 12px; color: var(--muted); }
.lb-me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.lb-me-stats div { padding: 12px; background: #0a0c0f; border: 1px solid var(--line); }
.lb-me-stats small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-me-stats b { font-family: var(--font-display); font-size: 24px; }
.lb-me-stats b em { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 500; }
.lb-goal { font-size: 13px; color: #d3d8dd; padding: 12px; border-left: 3px solid var(--accent); background: #e77b000f; margin-bottom: 14px; }
.lb-goal strong { color: var(--accent-soft); }
.lb-card > p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.lb-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lb-info-row b { color: var(--text); font-weight: 600; }
.lb-info-rows { margin-bottom: 16px; }


/* Explore Our Services (Tech section) */
.offer-block { margin-top: 0; }
.offer-head { margin-bottom: 22px; }
.offer-head h3 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; margin: 12px 0 0; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.offer-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.offer-card:hover { border-color: #e77b0088; transform: translateY(-4px); box-shadow: 0 18px 36px #0008; }
.offer-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #e77b0018;
  border: 1px solid #e77b0044;
  color: var(--accent);
  transition: background .25s, color .25s;
}
.offer-card:hover .offer-icon { background: var(--accent); color: var(--on-accent); }
.offer-icon svg { width: 23px; height: 23px; }
.offer-card h4 { font-family: var(--font-display); font-size: 18px; margin: 18px 0 8px; letter-spacing: -.01em; }
.offer-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.offer-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.offer-link span { display: inline-block; transition: transform .2s; }
.offer-card:hover .offer-link span { transform: translateX(4px); }

.legend-note { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0; text-transform: none; color: #6d7680; }
.topic-chips.invalid label > span { border-color: var(--bad); }
