/* LinkLab marketing site — theme tokens aligned with visual builder */

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

:root {
  --bg-deep: #050508;
  --bg: #0a0a12;
  --bg-elevated: #12101c;
  --glass-blur: 20px;
  --glass-bg: rgba(18, 16, 32, 0.52);
  --glass-bg-strong: rgba(24, 20, 42, 0.72);
  --glass-bg-solid: rgba(14, 12, 26, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(167, 139, 250, 0.35);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --text: #ebe9f5;
  --muted: #9b94b8;
  --cyan: #7dd3fc;
  --accent: #a78bfa;
  --blue: #6366f1;
  --green: #4ade80;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --max-w: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-mark-wrap::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .hero-stage-brand {
    display: none !important;
  }

  .hero-stage-card {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
  }
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Animated background ───────────────────────────────────────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 100% 70% at 0% -5%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 105%, rgba(167, 139, 250, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(34, 211, 238, 0.06), transparent 65%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: rgba(99, 102, 241, 0.35);
  top: -12%;
  left: -8%;
  animation: drift-a 22s ease-in-out infinite;
}

.orb-2 {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: rgba(167, 139, 250, 0.28);
  bottom: -10%;
  right: -6%;
  animation: drift-b 26s ease-in-out infinite;
}

.orb-3 {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  background: rgba(34, 211, 238, 0.18);
  top: 40%;
  left: 45%;
  animation: drift-c 18s ease-in-out infinite;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.06); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -6%) scale(1.08); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-42%, -58%) scale(1.1); }
  66% { transform: translate(-58%, -44%) scale(0.95); }
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

/* ─── Layout shell ──────────────────────────────────────────────────────── */
.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ─── Glass utilities ───────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  background-image: var(--grain);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg), var(--glass-highlight);
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), var(--glass-highlight);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.28);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: calc(var(--radius-sm) - 2px);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* LinkLab logo — cyan/purple highlight flows around the icon border (header/footer) */
.brand-mark-wrap {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.brand-mark-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-sm) + 2px);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(125, 211, 252, 0.35) 268deg,
    rgba(125, 211, 252, 0.95) 282deg,
    rgba(167, 139, 250, 1) 295deg,
    rgba(125, 211, 252, 0.95) 308deg,
    rgba(125, 211, 252, 0.35) 322deg,
    transparent 340deg,
    transparent 360deg
  );
  animation: linklab-border-shine 3.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.brand-mark-wrap::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-sm) - 2px);
  background: #12101c;
  pointer-events: none;
  z-index: 1;
}

@keyframes linklab-border-shine {
  to { transform: rotate(360deg); }
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--glass-border-hover);
  background: rgba(167, 139, 250, 0.12);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--glass-highlight);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--glass-border-hover);
  background: rgba(167, 139, 250, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.85));
  border-color: rgba(167, 139, 250, 0.45);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), var(--glass-highlight);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45), var(--glass-highlight);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--glass-bg-solid);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  box-shadow: var(--glass-shadow-lg);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-mobile a:hover { background: rgba(167, 139, 250, 0.12); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-intro-brand {
  margin-bottom: 0.75rem;
  animation: fade-up 0.7s ease-out 0.04s both;
}

.hero-intro-brand .brand-mark-wrap {
  width: 40px;
  height: 40px;
}

.hero-intro-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.hero-intro-brand .brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-visual-stage {
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
}

.hero-stage-panel {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

.hero-stage-brand {
  animation: hero-alt-brand 14s ease-in-out infinite;
}

.hero-stage-card {
  animation: hero-alt-card 14s ease-in-out infinite;
}

@keyframes hero-alt-brand {
  0%, 34% {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  44%, 86% {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
  96%, 100% {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
}

@keyframes hero-alt-card {
  0%, 34% {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
  44%, 86% {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  96%, 100% {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
}

.hero-brand-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: min(100%, 26rem);
  margin: 0 auto;
  padding: clamp(0.25rem, 2vw, 0.75rem);
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Responsive logo size; edge mask blends tile corners/borders into page bg */
.hero-brand-feather {
  --logo-feather: 18%;
  display: block;
  width: clamp(13rem, min(48vmin, 94vw), 20rem);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--logo-feather),
      #000 calc(100% - var(--logo-feather)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--logo-feather),
      #000 calc(100% - var(--logo-feather)),
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--logo-feather),
      #000 calc(100% - var(--logo-feather)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--logo-feather),
      #000 calc(100% - var(--logo-feather)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-brand-feather picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-brand-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 600px) {
  .hero-brand-showcase {
    max-width: min(100%, 30rem);
  }

  .hero-brand-feather {
    width: clamp(14rem, min(46vmin, 100%), 22rem);
  }
}

@media (min-width: 900px) {
  .hero-brand-showcase {
    max-width: min(100%, 34rem);
  }

  .hero-brand-feather {
    width: clamp(16rem, min(44vmin, 100%), 24rem);
    --logo-feather: 16%;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.1);
  margin-bottom: 1.25rem;
  animation: fade-up 0.7s ease-out 0.08s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fade-up 0.7s ease-out 0.12s both;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  animation: fade-up 0.7s ease-out 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  animation: fade-up 0.7s ease-out 0.24s both;
}

.hero-visual {
  position: relative;
  width: 100%;
  animation: fade-up 0.9s ease-out 0.2s both;
}

.hero-stage-card .hero-card {
  width: 100%;
}

.hero-card {
  padding: 1.5rem;
  padding-top: 2.35rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.4), rgba(167, 139, 250, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--cyan);
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.float-chip {
  position: absolute;
  z-index: 1;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-solid);
  backdrop-filter: blur(12px);
  animation: float-chip 4s ease-in-out infinite;
  max-width: calc(100% - 1rem);
}

.float-chip-1 {
  top: 0.65rem;
  right: 0.65rem;
  color: var(--accent);
  animation-delay: 0s;
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Features ─────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 769px) {
  .section-head h2 {
    white-space: nowrap;
  }

  #features .section-head {
    max-width: 52rem;
  }
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), var(--glass-highlight);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Builder embed ─────────────────────────────────────────────────────── */
.builder-section {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.builder-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.builder-intro h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.builder-intro p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.builder-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.builder-frame-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.15);
  pointer-events: none;
  z-index: 2;
}

.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(14, 12, 26, 0.85);
  font-size: 0.8rem;
  color: var(--muted);
}

.builder-toolbar strong { color: var(--text); }

.builder-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(85vh, 900px);
  min-height: min(70vh, 640px);
  border: none;
  background: var(--bg-deep);
}

@media (max-width: 900px) {
  .builder-iframe {
    min-height: min(75vh, 720px);
    height: min(82vh, 820px);
  }
}

@media (max-width: 640px) {
  .builder-iframe {
    min-height: 75vh;
    height: 80vh;
  }
}

/* ─── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  padding: 2.5rem 0 3rem;
}

.cta-inner {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.linklab-x {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg-solid);
  backdrop-filter: blur(var(--glass-blur));
  padding: 2.5rem 0 2rem;
}

.footer-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 36rem;
  width: 100%;
  margin-inline: auto;
}

.footer-centered .footer-brand {
  justify-content: center;
  margin-bottom: 0.85rem;
}

.footer-centered .footer-brand .brand-name {
  font-size: 1.15rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 32rem;
}

.footer-dead-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
  padding: 0 0.25rem;
}

.footer-dead {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  color: rgba(125, 211, 252, 0.82);
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.footer-dead:hover {
  color: var(--cyan);
  border-color: var(--glass-border-hover);
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.22), var(--glass-highlight);
  transform: translateY(-1px);
}

.footer-dead:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-dead.is-copied {
  color: var(--cyan);
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(125, 211, 252, 0.1);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.28), var(--glass-highlight);
}

.footer-copy {
  margin: 0;
  padding-top: 1.25rem;
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
  border-top: 1px solid var(--glass-border);
  letter-spacing: 0.02em;
}

/* ─── Responsive header ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header-actions .btn-primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-intro-brand {
    justify-content: center;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
    width: 100%;
  }

  .hero-brand-feather {
    width: clamp(12rem, min(90vw, 50vmin), 17rem);
    --logo-feather: 20%;
  }
}

@media (max-width: 480px) {
  .hero-stat-row { grid-template-columns: 1fr; }
}
