:root {
  color-scheme: dark;
  --wf-background: #0a0a0a;
  --wf-surface: #131313;
  --wf-surface-container: #201f1f;
  --wf-surface-container-low: #1c1b1b;
  --wf-surface-container-lowest: #0e0e0e;
  --wf-on-surface: #e5e2e1;
  --wf-on-surface-variant: #b9cacb;
  --wf-primary: #dbfcff;
  --wf-primary-container: #00f0ff;
  --wf-on-primary-container: #006970;
  --wf-secondary: #ebb2ff;
  --wf-secondary-container: #b600f8;
  --wf-outline: #849495;
  --wf-outline-variant: #3b494b;
  --wf-error: #ffb4ab;
  --wf-success: #84f2b8;
  --wf-forge-gold: #d9aa51;
  --wf-forge-gold-deep: #8d5f21;
  --wf-enamel-navy: #1c2657;
}

html {
  scroll-behavior: smooth;
  background: var(--wf-background);
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.04), transparent 34%),
    linear-gradient(180deg, #0a0a0a 0%, #131313 42%, #0e0e0e 100%);
  color: var(--wf-on-surface);
  overflow-x: hidden;
}

main,
section,
footer {
  background-color: transparent;
}

a,
button,
input,
select,
textarea,
summary,
[tabindex]:not([tabindex="-1"]) {
  outline-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--wf-primary-container);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  z-index: 60;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--wf-primary-container);
  color: var(--wf-on-primary-container);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.obsidian-band {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(19, 19, 19, 0.96)),
    #0a0a0a;
}

.page-section {
  scroll-margin-top: 92px;
}

nav[aria-label="Main"] a[href="index.html"] > img[src*="Workflow-Forge-Logo-real_v1"] {
  height: 51.2px;
  margin-top: -12.8px;
  margin-bottom: -12.8px;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.glass-panel,
.glass-card {
  background: rgba(32, 31, 31, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.case-card-stack .glass-panel {
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-input {
  width: 100%;
  background-color: #050505;
  border: 1px solid #353534;
  color: var(--wf-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.glass-input:focus {
  border-color: var(--wf-primary-container);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 0 5px rgba(0, 240, 255, 0.1);
}

.glass-input.is-error,
.is-error .glass-input {
  border-color: var(--wf-error);
  box-shadow: 0 0 0 1px rgba(255, 180, 171, 0.25);
}

.glass-input.is-success,
.is-success .glass-input {
  border-color: var(--wf-success);
  box-shadow: 0 0 0 1px rgba(132, 242, 184, 0.22);
}

.field-message {
  margin-top: 6px;
  color: var(--wf-error);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.is-success .field-message,
.field-message.is-success {
  color: var(--wf-success);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: var(--wf-primary-container);
  color: var(--wf-on-primary-container);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 219, 233, 0.6);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary[disabled],
.btn-ghost[disabled] {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--wf-outline);
  border-radius: 4px;
  background: transparent;
  color: var(--wf-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: var(--wf-surface-container);
  border-color: var(--wf-primary-container);
  transform: translateY(-2px);
}

.neon-glow-primary {
  box-shadow: 0 0 20px -5px rgba(0, 219, 233, 0.4);
}

.neon-glow-primary-hover:hover {
  box-shadow: 0 0 25px rgba(0, 219, 233, 0.6);
}

.ai-node-glow {
  box-shadow: 0 0 30px 5px rgba(182, 0, 248, 0.3);
  animation: neonPulse 3s infinite;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(32, 31, 31, 0.5);
  color: var(--wf-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  text-transform: uppercase;
}

.eyebrow-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wf-primary-container);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.hero-loop-video {
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.45);
}

.hero-loop-video[data-reduced-motion="paused"] {
  filter: saturate(0.8) contrast(1.05) brightness(0.5);
}

.workflow-demo {
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 240, 255, 0.16), transparent 24%),
    radial-gradient(circle at 78% 30%, rgba(182, 0, 248, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(14, 14, 14, 0.94), rgba(32, 31, 31, 0.72));
}

.forge-core {
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.25), inset 0 0 18px rgba(182, 0, 248, 0.24);
}

.flash-frame {
  position: relative;
  overflow: hidden;
}

.flash-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(115deg, transparent 20%, rgba(0, 240, 255, 0.28), rgba(182, 0, 248, 0.22), transparent 78%);
  transform: translateX(-75%);
  animation: sweepGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.flash-frame > * {
  position: relative;
  z-index: 1;
}

.metric-pulse {
  animation: metricFloat 7s ease-in-out infinite;
}

.metric-pulse:nth-child(2) {
  animation-delay: 0.7s;
}

.metric-pulse:nth-child(3) {
  animation-delay: 1.4s;
}

.metric-pulse:nth-child(4) {
  animation-delay: 2.1s;
}

.floating-chip {
  animation: chipDrift 6s ease-in-out infinite;
}

.floating-chip:nth-child(2) {
  animation-delay: 1.2s;
}

.floating-chip:nth-child(3) {
  animation-delay: 2.4s;
}

.light-rail {
  position: relative;
  overflow: hidden;
}

.light-rail::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.85), rgba(182, 0, 248, 0.65), transparent);
  animation: railMove 4s linear infinite;
}

.workflow-stage {
  animation: workflowStage 15s infinite;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.workflow-stage--logic {
  animation-delay: 5s;
}

.workflow-stage--integration {
  animation-delay: 10s;
}

.flow-line {
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.85), rgba(182, 0, 248, 0.6), transparent);
  animation: flowPulse 2.4s linear infinite;
}

.node-pulse {
  animation: nodePulse 2.8s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.93);
}

.reveal.reveal-blur {
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.device-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.device-frame__chrome {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
}

.device-frame__dots {
  display: flex;
  gap: 6px;
}

.device-frame__dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(229, 226, 225, 0.3);
}

.device-frame__url {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.65);
  color: var(--wf-on-surface-variant);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.2;
  padding: 7px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-frame__screen {
  background: var(--wf-surface-container-lowest);
}

.device-frame__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item,
details.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(32, 31, 31, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--wf-on-surface);
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  padding: 18px 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--wf-primary-container);
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item__body,
.faq-item > p {
  color: var(--wf-on-surface-variant);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px 20px;
}

.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--wf-on-surface-variant);
}

.trust-seal img {
  width: clamp(96px, 10vw, 140px);
  height: auto;
}

.trust-seal__caption {
  max-width: 240px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-status {
  min-height: 24px;
  color: var(--wf-on-surface-variant);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--wf-success);
}

.form-status.is-error {
  color: var(--wf-error);
}

.form-status a {
  color: var(--wf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--wf-outline);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00dbe9;
}

@keyframes sweepGlow {
  0%,
  35% {
    opacity: 0;
    transform: translateX(-78%);
  }
  50% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateX(78%);
  }
}

@keyframes metricFloat {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(0);
  }
  50% {
    border-color: rgba(0, 240, 255, 0.32);
    transform: translateY(-8px);
  }
}

@keyframes slowImageDrift {
  from {
    transform: scale(1.02) translateX(-1%);
  }
  to {
    transform: scale(1.09) translateX(1%);
  }
}

@keyframes scanAcross {
  from {
    opacity: 0;
    transform: translateX(0);
  }
  10%,
  80% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(1400px);
  }
}

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

@keyframes railMove {
  from {
    transform: translateX(-24%);
  }
  to {
    transform: translateX(24%);
  }
}

@keyframes workflowStage {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  5%,
  28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  33%,
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes flowPulse {
  0% {
    opacity: 0.25;
    transform: scaleX(0.65);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.25;
    transform: scaleX(0.65);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.16);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.42);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(182, 0, 248, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(182, 0, 248, 0.6);
  }
}

/* ---- Modern motion layer (2026-07-07) ---- */

/* Interactive lift + cursor spotlight on glass surfaces */
.glass-panel,
.glass-card {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background-color 0.4s ease;
}

@media (hover: hover) {
  .glass-panel.wf-lift:hover,
  .glass-card.wf-lift:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow:
      0 18px 48px -18px rgba(0, 0, 0, 0.7),
      0 0 30px -8px rgba(0, 240, 255, 0.28);
  }
}

/* Cursor-follow sheen: a glow layered over the panel base, under content.
   --spot fades the glow in on hover; @property lets it animate smoothly. */
@property --spot {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.glass-panel.wf-spot {
  background-image: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 240, 255, calc(var(--spot) * 0.9)),
    rgba(182, 0, 248, calc(var(--spot) * 0.4)) 45%,
    transparent 65%
  );
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    --spot 0.35s ease;
}

@media (hover: hover) {
  .glass-panel.wf-spot:hover {
    --spot: 0.16;
  }
}

/* Scroll progress bar (element injected by site.js) */
.wf-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--wf-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #00f0ff, #b600f8);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

/* Count-up numerals hold their width so the layout doesn't jitter */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* Animated sheen sweep across primary buttons */
.btn-primary,
.neon-glow-primary-hover {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.neon-glow-primary-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

@media (hover: hover) {
  .btn-primary:hover::after,
  .neon-glow-primary-hover:hover::after {
    animation: wfSheen 0.85s ease-out;
  }
}

@keyframes wfSheen {
  from { left: -120%; }
  to { left: 160%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

  .glass-panel.wf-lift:hover,
  .glass-card.wf-lift:hover {
    transform: none;
  }

  .glass-panel.wf-spot {
    background-image: none;
  }

  .wf-scroll-progress {
    display: none;
  }

  .flash-frame::before,
  .light-rail::after {
    display: none;
  }
}
