@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0d11;
  --bg-elevated: #11141b;
  --surface: rgba(19, 22, 30, 0.78);
  --surface-solid: #141720;
  --glass: rgba(18, 21, 29, 0.64);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f4f5f7;
  --text-secondary: #a2a9b5;
  --text-muted: #6c7380;

  --accent: #fb4f59;
  --accent-hover: #ff666f;
  --accent-ink: #0b0d11;
  --accent-soft: rgba(251, 79, 89, 0.14);
  --accent-border: rgba(251, 79, 89, 0.34);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif-italic: 'Georgia', 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes navEnter {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes horizonSettle {
  from {
    opacity: 0.4;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tileFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes tileBreath {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.035);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.065);
  }
}

@keyframes gentleDrift {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes screenSwap {
  from {
    opacity: 0.35;
    transform: scale(0.988);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popValue {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Reveal Classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s var(--ease-out-expo) var(--reveal-delay, 0ms),
    transform 0.65s var(--ease-out-expo) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="scale"] {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   Floating Centered Pill Navbar (Zero Glow)
   ========================================================= */
.floating-nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
  transition: top 0.28s var(--ease-out-expo);
}

.floating-nav-wrap.scrolled {
  top: 12px;
}

.pill-nav {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  animation: navEnter 0.55s var(--ease-out-expo) both;
  transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s var(--ease-out-expo);
}

.floating-nav-wrap.scrolled .pill-nav {
  background: rgba(13, 16, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  padding-right: 4px;
}

.pill-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.35s var(--ease-spring);
}

.pill-brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.pill-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill-links a {
  position: relative;
  transition: color 0.18s ease;
}

.pill-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out-expo);
}

.pill-links a:hover,
.pill-links a[aria-current="page"] {
  color: var(--text);
}

.pill-links a:hover::after,
.pill-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.pill-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, transform 0.22s var(--ease-spring);
  white-space: nowrap;
}

.pill-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.pill-cta:active {
  transform: translateY(1px) scale(0.97);
}

.btn-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.28s var(--ease-spring);
  white-space: nowrap;
}

.btn-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out-expo);
  pointer-events: none;
}

.btn-pill:hover::before {
  left: 150%;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-pill:active {
  transform: translateY(1px) scale(0.97);
}

.btn-pill-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-pill-accent:hover {
  background: var(--accent-hover);
}

.btn-pill-glass {
  background: rgba(18, 21, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-pill-glass:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(28, 32, 42, 0.9);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #ff989e;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* =========================================================
   Hero Section (Zero Glow, Rich Motion)
   ========================================================= */
.hero-art-section {
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  padding-top: 148px;
  padding-bottom: 120px;
  background: var(--bg);
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  animation: horizonSettle 1.15s var(--ease-out-expo) both;
  transition: transform 0.35s var(--ease-out-expo);
  will-change: transform;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(11, 13, 17, 0.35) 18%, transparent 40%, transparent 76%, var(--bg) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  padding-inline: 24px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 5.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--text);
  animation: fadeUp 0.7s var(--ease-out-expo) 0.08s both;
}

.hero-title em {
  display: inline-block;
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(244, 245, 247, 0.82);
  animation: fadeUp 0.7s var(--ease-out-expo) 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.28s both;
}

.hero-meta-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(244, 245, 247, 0.82);
  animation: fadeUp 0.7s var(--ease-out-expo) 0.36s both;
}

/* Frosted Glass Rounded-Square Mosaic Clusters */
.tile-cluster {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 62px);
  grid-auto-rows: 62px;
  gap: 4px;
  transition: transform 0.3s var(--ease-out-expo);
  will-change: transform;
}

.tile-cluster .sq {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation:
    tileFloat 5.6s ease-in-out infinite,
    tileBreath 4.8s ease-in-out infinite;
}

.tile-cluster .sq:nth-child(2n) {
  animation-delay: -1.4s, -0.9s;
  animation-duration: 6.4s, 5.2s;
}

.tile-cluster .sq:nth-child(3n) {
  animation-delay: -2.8s, -1.8s;
  animation-duration: 7.1s, 6.1s;
}

.tile-cluster .sq:nth-child(4n) {
  animation-delay: -3.6s, -2.5s;
}

.tile-cluster .sq.empty {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  animation: none;
}

.tile-cluster .sq.dim {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(11, 13, 17, 0.16);
}

.tile-cluster-left {
  left: -14px;
  bottom: 42px;
}

.tile-cluster-center {
  left: 50%;
  transform: translateX(-50%);
  bottom: 58px;
  grid-template-columns: repeat(3, 52px);
  grid-auto-rows: 52px;
}

.tile-cluster-right {
  right: -12px;
  bottom: 36px;
}

/* Faint Outline Mosaic Tiles */
.faint-grid {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  grid-auto-rows: 64px;
  gap: 4px;
}

.faint-grid .sq {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s ease;
}

.faint-grid .sq:nth-child(odd) {
  animation: tileFloat 7.5s ease-in-out infinite;
}

.faint-grid .sq:nth-child(even) {
  animation: tileFloat 8.4s ease-in-out -3.2s infinite;
}

.faint-grid .sq.empty {
  border: 0;
  animation: none;
}

.faint-tl { top: 0; left: 0; }
.faint-tr { top: 0; right: 0; }
.faint-bl { bottom: 20px; left: 0; }
.faint-br { bottom: 20px; right: 0; }

/* =========================================================
   Section 2: Notched Interlocking Cards + Glass Dock
   ========================================================= */
.metrics-section {
  position: relative;
  padding-top: 96px;
  padding-bottom: 112px;
  overflow: hidden;
  background: var(--bg);
}

.pines-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  mask-image: linear-gradient(to top, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 18%, black 82%, transparent 100%);
  animation: gentleDrift 9s ease-in-out infinite;
}

.section-intro {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-heading {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-heading em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-lead {
  margin: 12px auto 0;
  max-width: 540px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* 4 Notched Interlocking Coral Cards */
.notched-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 960px;
  margin-inline: auto;
}

.notched-card {
  position: relative;
  min-height: 210px;
  padding: 24px 26px;
  border-radius: 26px;
  background: var(--accent);
  color: #0b0d11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.34s var(--ease-spring),
    background-color 0.2s ease,
    opacity 0.65s var(--ease-out-expo) var(--reveal-delay, 0ms);
}

.notched-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--accent-hover);
  z-index: 3;
}

.notched-card:first-child {
  -webkit-mask-image: radial-gradient(circle 18px at 100% 50%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 18px at 100% 50%, transparent 98%, #000 100%);
}

.notched-card:nth-child(2),
.notched-card:nth-child(3) {
  -webkit-mask-image:
    radial-gradient(circle 18px at 0% 50%, transparent 98%, #000 100%),
    radial-gradient(circle 18px at 100% 50%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 18px at 0% 50%, transparent 98%, #000 100%),
    radial-gradient(circle 18px at 100% 50%, transparent 98%, #000 100%);
  mask-composite: intersect;
}

.notched-card:last-child {
  -webkit-mask-image: radial-gradient(circle 18px at 0% 50%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 18px at 0% 50%, transparent 98%, #000 100%);
}

.notched-label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(11, 13, 17, 0.78);
}

.notched-value {
  font-size: clamp(2.15rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0b0d11;
  font-variant-numeric: tabular-nums;
}

.notched-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 13, 17, 0.68);
}

/* Frosted Glass Compatibility Dock (Zero Glow) */
.compat-dock {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 18px auto 0;
  padding: 20px 28px;
  border-radius: 18px;
  background: rgba(19, 22, 30, 0.66);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 18px 28px;
}

.compat-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(244, 245, 247, 0.9);
  transition: transform 0.25s var(--ease-spring), color 0.18s ease;
}

.compat-item:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.compat-item svg {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.compat-item:hover svg {
  transform: scale(1.16) rotate(-6deg);
}

/* =========================================================
   Section 3: Interactive Client Showcase (Zero Glow)
   ========================================================= */
.preview-section {
  position: relative;
  padding-block: 88px;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}

.preview-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
}

.preview-tab {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(19, 22, 30, 0.84);
  border: 1px solid var(--border);
  transition:
    color 0.16s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.22s var(--ease-spring);
}

.preview-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.preview-tab[aria-selected="true"] {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.03);
}

.glass-window {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  padding: 10px;
  background: rgba(20, 23, 31, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: border-color 0.24s ease;
}

.glass-window:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.window-stage {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1920 / 1032;
  background: #0b0d11;
  cursor: zoom-in;
}

.window-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.2s ease;
}

.window-stage:hover img {
  transform: scale(1.008);
}

.window-stage img.swapping {
  animation: screenSwap 0.34s var(--ease-out-expo) both;
}

.window-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.caption-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.caption-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #ff9aa0;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.caption-left span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoom-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.16s ease, transform 0.22s var(--ease-spring);
}

.zoom-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* 3-Column Feature Strip */
.pillars-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.pillar-glass {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(17, 20, 27, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.22s ease,
    opacity 0.65s var(--ease-out-expo) var(--reveal-delay, 0ms);
}

.pillar-glass:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.pillar-glass h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pillar-glass p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.preset-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-spring);
}

.preset-chip:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.preset-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #ffffff;
}

.preset-readout {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.preset-readout.pop {
  animation: popValue 0.28s var(--ease-out-expo) both;
}

/* =========================================================
   Section 4: Closing Fjord Banner + Frosted Card + Solid Coral Footer
   ========================================================= */
.closing-band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 24px 96px;
  overflow: hidden;
  background: var(--bg);
}

.closing-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out-expo);
}

.closing-band:hover .closing-art {
  transform: scale(1.015);
}

.closing-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11, 13, 17, 0.3) 26%, transparent 60%);
}

.closing-glass-card {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 52px 44px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(22, 26, 35, 0.88) 0%,
    rgba(19, 23, 32, 0.66) 72%,
    rgba(19, 23, 32, 0.42) 100%
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.closing-glass-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.closing-glass-card p {
  margin: 0 auto 26px;
  max-width: 480px;
  font-size: 15.5px;
  color: rgba(244, 245, 247, 0.82);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Solid Full-Width Coral Footer */
.solid-footer {
  background: var(--accent);
  color: #0b0d11;
  padding: 36px 0 26px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.025em;
  justify-self: start;
}

.footer-mark img {
  transition: transform 0.35s var(--ease-spring);
}

.footer-mark:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a {
  color: rgba(11, 13, 17, 0.85);
  transition: opacity 0.15s ease, transform 0.2s var(--ease-spring);
}

.footer-nav a:hover {
  opacity: 0.62;
  transform: translateY(-1px);
}

.footer-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.footer-icons a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(11, 13, 17, 0.12);
  display: grid;
  place-items: center;
  color: #0b0d11;
  transition: background-color 0.16s ease, transform 0.25s var(--ease-spring);
}

.footer-icons a:hover {
  background: rgba(11, 13, 17, 0.22);
  transform: translateY(-2px);
}

.footer-copy {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(11, 13, 17, 0.72);
}

/* =========================================================
   Download Page Styles (Zero Glow)
   ========================================================= */
.download-page-wrap {
  position: relative;
  min-height: calc(100vh - 150px);
  padding-top: 124px;
  padding-bottom: 92px;
  overflow: hidden;
  background: var(--bg);
}

.dl-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.dl-glass-panel {
  border-radius: 26px;
  padding: 34px;
  background: rgba(17, 20, 28, 0.8);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  animation: fadeUp 0.65s var(--ease-out-expo) 0.08s both;
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.dl-head img {
  width: 50px;
  height: 50px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.dl-head h1 {
  margin: 0 0 3px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dl-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.dl-notched-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 24px 0;
}

.dl-mini-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent);
  color: #0b0d11;
  animation: fadeUp 0.55s var(--ease-out-expo) both;
  transition: transform 0.25s var(--ease-spring), background-color 0.16s ease;
}

.dl-mini-card:nth-child(1) { animation-delay: 0.12s; }
.dl-mini-card:nth-child(2) { animation-delay: 0.19s; }
.dl-mini-card:nth-child(3) { animation-delay: 0.26s; }
.dl-mini-card:nth-child(4) { animation-delay: 0.33s; }

.dl-mini-card:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

.dl-mini-card:first-child {
  -webkit-mask-image: radial-gradient(circle 10px at 100% 50%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 10px at 100% 50%, transparent 98%, #000 100%);
}

.dl-mini-card:nth-child(2),
.dl-mini-card:nth-child(3) {
  -webkit-mask-image:
    radial-gradient(circle 10px at 0% 50%, transparent 98%, #000 100%),
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 10px at 0% 50%, transparent 98%, #000 100%),
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000 100%);
  mask-composite: intersect;
}

.dl-mini-card:last-child {
  -webkit-mask-image: radial-gradient(circle 10px at 0% 50%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 10px at 0% 50%, transparent 98%, #000 100%);
}

.dl-mini-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(11, 13, 17, 0.72);
  margin-bottom: 4px;
}

.dl-mini-card strong {
  font-size: 14.5px;
  font-weight: 800;
}

.hash-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(11, 13, 17, 0.7);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.hash-box:hover {
  border-color: var(--border-strong);
}

.hash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hash-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

.copy-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.22s var(--ease-spring);
}

.copy-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.copy-pill.copied {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.05);
}

.smartscreen-box {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.smartscreen-box > strong:first-child {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.smartscreen-box strong {
  color: var(--text);
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-panel {
  border-radius: 22px;
  padding: 24px;
  background: rgba(17, 20, 28, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  animation: fadeUp 0.65s var(--ease-out-expo) 0.18s both;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-spring);
}

.side-panel:nth-child(2) {
  animation-delay: 0.28s;
}

.side-panel:hover {
  border-color: var(--border-strong);
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.kv-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.kv-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border-soft);
}

.kv-rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv-rows span {
  color: var(--text-secondary);
}

.kv-rows strong {
  text-align: right;
  font-weight: 600;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.notes-list li + li {
  margin-top: 8px;
}

/* =========================================================
   Lightbox & Toast (Zero Glow)
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 12, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox.open .lightbox-inner {
  animation: lightboxZoomIn 0.28s var(--ease-out-expo) both;
}

.lightbox-inner {
  width: min(1220px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-title {
  font-size: 14px;
  font-weight: 600;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0b0d11;
}

.lightbox-frame img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 370px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 24, 33, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.3s var(--ease-spring);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast strong {
  display: block;
  margin-bottom: 2px;
}

.toast p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.toast a {
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   Responsive & Reduced Motion
   ========================================================= */
@media (max-width: 920px) {
  .notched-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .notched-card:first-child,
  .notched-card:nth-child(2),
  .notched-card:nth-child(3),
  .notched-card:last-child {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .pillars-row,
  .dl-layout {
    grid-template-columns: 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-mark,
  .footer-icons {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .pill-links {
    display: none;
  }

  .hero-art-section {
    min-height: 700px;
    padding-top: 120px;
    padding-bottom: 148px;
  }

  .tile-cluster-center {
    display: none;
  }

  .tile-cluster {
    grid-template-columns: repeat(3, 38px);
    grid-auto-rows: 38px;
  }

  .tile-cluster-left {
    left: -8px;
    bottom: 12px;
  }

  .tile-cluster-right {
    right: -8px;
    bottom: 12px;
  }

  .faint-grid {
    grid-template-columns: repeat(3, 44px);
    grid-auto-rows: 44px;
  }

  .notched-row,
  .dl-notched-mini {
    grid-template-columns: 1fr 1fr;
  }

  .dl-mini-card:first-child,
  .dl-mini-card:nth-child(2),
  .dl-mini-card:nth-child(3),
  .dl-mini-card:last-child {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .closing-glass-card {
    padding: 36px 22px;
  }

  .window-caption-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-glass-panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
