/* ============================================
   MACE Applications — Custom Styles
   Dark, forged, electric.
   ============================================ */

:root {
  --bg: #05070f;
  --bg-raised: #0a0e1c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-dim: #9aa3b8;
  --text-faint: #5d6579;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --steel: #cbd5e1;
  --accent-gradient: linear-gradient(120deg, #60a5fa 0%, #22d3ee 50%, #a5b4fc 100%);
  --glow-blue: rgba(59, 130, 246, 0.35);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 76px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

/* Film grain */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 1600;
  background: var(--accent-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 65%);
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-primary {
  color: #051024;
  background: linear-gradient(120deg, #7cb6ff 0%, #38bdf8 100%);
  box-shadow: 0 0 0 1px rgba(125, 182, 255, 0.4), 0 10px 32px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(125, 182, 255, 0.7), 0 14px 44px rgba(56, 189, 248, 0.45);
}

.btn-primary i {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ========== Navigation ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-icon {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.45));
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.nav-brand-text em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 96px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora-a {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.30) 0%, transparent 70%);
}

.aurora-b {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 70%);
  animation-delay: -6s;
}

.aurora-c {
  width: 380px;
  height: 380px;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.96); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw + 1rem, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-meta i {
  margin-right: 6px;
  color: var(--text-dim);
}

.meta-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}

/* Hero visual — the emblem stage */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mace-stage {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.mace-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(34, 211, 238, 0.08) 45%, transparent 70%);
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.mace-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ring-outer {
  inset: 0;
  animation: spin 40s linear infinite;
}

.ring-outer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.ring-inner {
  inset: 9%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  animation: spin 60s linear infinite reverse;
}

.ring-inner::before {
  content: '';
  position: absolute;
  bottom: 6%;
  right: 6%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mace-emblem {
  position: relative;
  width: 58%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 44px rgba(59, 130, 246, 0.35));
  animation: emblem-float 6s ease-in-out infinite;
  transform: translateZ(40px);
}

@keyframes emblem-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* Floating glass chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  animation: chip-float 7s ease-in-out infinite;
  transform: translateZ(70px);
}

.float-chip i {
  font-size: 1.2rem;
  color: var(--steel);
}

.float-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.float-chip span:not(.pulse-dot) {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.chip-ios {
  top: 12%;
  left: -6%;
  animation-delay: -1s;
}

.chip-android {
  bottom: 16%;
  right: -8%;
  animation-delay: -3.5s;
}

.chip-status {
  bottom: 2%;
  left: 4%;
  animation-delay: -5s;
}

@keyframes chip-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-cue-track {
  display: block;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  position: relative;
}

.scroll-cue-thumb {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--cyan);
  animation: cue-slide 2s ease-in-out infinite;
}

@keyframes cue-slide {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ========== Marquee ========== */
.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee-group span:hover {
  color: var(--steel);
}

.marquee-star {
  color: var(--blue);
  font-size: 0.8rem;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ========== Sections ========== */
.section {
  position: relative;
  padding: 130px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 56px;
}

.section-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
}

.section-title {
  font-size: clamp(2rem, 3vw + 0.8rem, 3.2rem);
  font-weight: 700;
  margin: 0;
}

/* ========== Spotlight (cursor-tracking sheen) ========== */
.spotlight {
  position: relative;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.10),
    transparent 65%
  );
}

.spotlight:hover::before {
  opacity: 1;
}

/* ========== Forge card (Our Apps) ========== */
.forge-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 60px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* animated gradient border sweep */
.forge-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--sweep, 0deg), transparent 0%, rgba(96, 165, 250, 0.8) 8%, transparent 18%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-sweep 6s linear infinite;
  pointer-events: none;
}

@property --sweep {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-sweep {
  to { --sweep: 360deg; }
}

.forge-icon {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.25), rgba(10, 14, 28, 0.9) 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.forge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.forge-body h3 {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem);
  margin-bottom: 12px;
}

.forge-body p {
  color: var(--text-dim);
  max-width: 620px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 20px;
}

.forge-progress {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 28px 0 20px;
  max-width: 420px;
}

.forge-progress-bar {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  transform-origin: left;
  animation: forging 3.2s var(--ease-out) infinite;
}

@keyframes forging {
  0%   { transform: scaleX(0.15); opacity: 1; }
  60%  { transform: scaleX(0.72); opacity: 1; }
  100% { transform: scaleX(0.72); opacity: 0.4; }
}

.forge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ========== Bento (About) ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-item {
  border-radius: var(--radius);
  padding: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-item:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(59, 130, 246, 0.08);
}

.bento-item h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.bento-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.bento-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-glyph {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.5);
}

.bento-main h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.bento-main p {
  margin-bottom: 26px;
}

.bento-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.bento-steps i {
  color: var(--blue);
  font-size: 0.75rem;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.icon-blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.icon-cyan {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
}

.bento-wide {
  grid-column: 1 / 3;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s ease;
  cursor: default;
}

.chip:hover {
  color: #051024;
  background: linear-gradient(120deg, #7cb6ff, #38bdf8);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* ========== Contact ========== */
.section-contact {
  padding-bottom: 160px;
}

.contact-panel {
  position: relative;
  text-align: center;
  padding: 90px 40px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter 0.3s ease;
}

.contact-mail i {
  font-size: 0.6em;
  -webkit-text-fill-color: var(--cyan);
  transition: transform 0.3s var(--ease-out);
}

.contact-mail:hover {
  filter: brightness(1.25) drop-shadow(0 0 24px rgba(56, 189, 248, 0.45));
}

.contact-mail:hover i {
  transform: translate(4px, -4px);
}

.contact-loc {
  margin-top: 30px;
  color: var(--text-faint);
  font-size: 0.95rem;
}

.contact-loc i {
  margin-right: 8px;
  color: var(--text-dim);
}

/* ========== Footer ========== */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 90px 0 36px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.04) 100%);
}

.footer-wordmark {
  position: absolute;
  bottom: -0.22em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.4));
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0;
}

.footer-col h6 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-forged {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ========== Reveal animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow,
  .hero-canvas {
    display: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .mace-stage {
    width: min(300px, 64vw);
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-loc {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 40px 36px;
    background: rgba(7, 10, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 1400;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    font-size: 1.3rem;
    font-family: var(--font-display);
    padding: 12px 0;
  }

  .nav-cta {
    margin: 20px 0 0;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1500;
  }

  .section {
    padding: 90px 0;
  }

  .section-head {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
  }

  .forge-card {
    flex-direction: column;
    text-align: center;
    padding: 48px 28px;
  }

  .forge-progress {
    margin-inline: auto;
  }

  .forge-tags {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-main,
  .bento-wide,
  .bento-loc {
    grid-column: span 1;
  }

  .float-chip {
    display: none;
  }

  .mace-stage {
    width: min(240px, 64vw);
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .meta-divider {
    display: none;
  }
}
