@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --wf-navy: #061525;
  --wf-navy-2: #0c2238;
  --wf-navy-3: #122d4a;
  --wf-blue: #1ba5e0;
  --wf-blue-bright: #3ec5ff;
  --wf-blue-deep: #0d6e9e;
  --wf-text: #e8f0fa;
  --wf-text-muted: #94a8be;
  --wf-card: rgba(12, 34, 56, 0.72);
  --wf-card-solid: #0f2740;
  --wf-line: rgba(27, 165, 224, 0.22);
  --wf-glow: rgba(27, 165, 224, 0.35);
  --wf-success: #22c55e;
  --wf-warning: #f59e0b;
  --wf-danger: #ef4444;
  --wf-radius: 18px;
  --wf-radius-lg: 28px;
  --wf-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --wf-max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.wf-v2 {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--wf-text);
  background: var(--wf-navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wf-blue-bright);
}

a:hover {
  color: #7dd8ff;
}

/* Header */
.wf-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 10;
}

.wf-v2-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.wf-v2-brand strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wf-v2-brand span {
  font-size: 0.72rem;
  color: var(--wf-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wf-v2-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
}

.wf-v2-nav a {
  color: var(--wf-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}

.wf-v2-nav a:hover,
.wf-v2-nav a[aria-current="page"] {
  color: #fff;
}

/* Hero — full bleed */
.wf-v2-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.wf-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(27, 165, 224, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(62, 197, 255, 0.14), transparent 50%),
    linear-gradient(165deg, #061525 0%, #0c2238 40%, #0a1a2e 100%);
  z-index: 0;
}

.wf-v2-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wf-max);
  margin: 0 auto;
}

.wf-v2-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wf-blue-bright);
  margin-bottom: 0.75rem;
}

.wf-v2-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  max-width: 18ch;
  color: #fff;
}

.wf-v2-hero p {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--wf-text-muted);
  max-width: 52ch;
  margin: 0;
}

.wf-v2-hero--compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  max-width: 24ch;
}

.wf-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons */
.wf-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

.wf-v2-btn:hover {
  transform: translateY(-1px);
}

.wf-v2-btn--primary {
  background: linear-gradient(135deg, var(--wf-blue) 0%, var(--wf-blue-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 28px var(--wf-glow);
}

.wf-v2-btn--primary:hover {
  box-shadow: 0 12px 36px var(--wf-glow);
  color: #fff;
}

.wf-v2-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.wf-v2-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wf-v2-btn--outline {
  background: transparent;
  color: var(--wf-blue-bright);
  border-color: var(--wf-line);
}

.wf-v2-btn--outline:hover {
  background: rgba(27, 165, 224, 0.1);
  color: #fff;
}

.wf-v2-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Main content */
.wf-v2-main {
  padding: 0 clamp(1rem, 4vw, 2rem) 3.5rem;
  max-width: var(--wf-max);
  margin: 0 auto;
}

.wf-v2-section {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  max-width: var(--wf-max);
  margin: 0 auto;
}

.wf-v2-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: #fff;
}

.wf-v2-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.wf-v2-span-12 { grid-column: span 12; }
.wf-v2-span-8 { grid-column: span 8; }
.wf-v2-span-6 { grid-column: span 6; }
.wf-v2-span-4 { grid-column: span 4; }
.wf-v2-span-3 { grid-column: span 3; }

@media (max-width: 900px) {
  .wf-v2-span-8,
  .wf-v2-span-6,
  .wf-v2-span-4,
  .wf-v2-span-3 {
    grid-column: span 12;
  }
}

/* Cards */
.wf-v2-card {
  background: var(--wf-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--wf-shadow);
}

.wf-v2-card h2,
.wf-v2-card h3 {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.wf-v2-card p,
.wf-v2-card li {
  color: var(--wf-text-muted);
  line-height: 1.6;
}

.wf-v2-card--highlight {
  border-color: rgba(27, 165, 224, 0.45);
  background: linear-gradient(145deg, rgba(12, 34, 56, 0.9), rgba(18, 45, 74, 0.75));
}

/* Flow strip */
.wf-v2-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-v2-flow li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wf-text-muted);
}

.wf-v2-flow li strong {
  color: #fff;
  background: rgba(27, 165, 224, 0.15);
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.wf-v2-flow li:not(:last-child)::after {
  content: "→";
  color: var(--wf-blue);
  margin-left: 0.25rem;
  font-weight: 400;
}

/* Metrics */
.wf-v2-metric {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.wf-v2-metric-label {
  font-size: 0.78rem;
  color: var(--wf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.wf-v2-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  text-align: center;
}

/* Status badges */
.wf-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.wf-v2-badge--pass {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.wf-v2-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wf-v2-badge--info {
  background: rgba(27, 165, 224, 0.12);
  color: var(--wf-blue-bright);
  border: 1px solid var(--wf-line);
}

/* Forms */
.wf-v2-form {
  display: grid;
  gap: 1rem;
}

.wf-v2-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--wf-text);
}

.wf-v2-form input,
.wf-v2-form select,
.wf-v2-form textarea {
  border: 1px solid var(--wf-line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: rgba(6, 21, 37, 0.6);
  color: #fff;
}

.wf-v2-form input::placeholder,
.wf-v2-form textarea::placeholder {
  color: #5a7088;
}

.wf-v2-form input:focus,
.wf-v2-form select:focus,
.wf-v2-form textarea:focus {
  outline: 2px solid rgba(27, 165, 224, 0.4);
  border-color: var(--wf-blue);
}

.wf-v2-form select option {
  background: var(--wf-navy-2);
  color: #fff;
}

/* Lists & steps */
.wf-v2-list {
  margin: 0;
  padding-left: 1.2rem;
}

.wf-v2-list li {
  margin-bottom: 0.4rem;
}

.wf-v2-steps {
  counter-reset: wfstep;
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-v2-steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.wf-v2-steps li::before {
  counter-increment: wfstep;
  content: counter(wfstep);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(27, 165, 224, 0.15);
  color: var(--wf-blue-bright);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--wf-line);
}

.wf-v2-steps strong {
  color: #fff;
  display: block;
  margin-bottom: 0.15rem;
}

/* Approval buckets */
.wf-v2-bucket {
  border-radius: var(--wf-radius);
  padding: 1.25rem;
  border: 1px solid var(--wf-line);
}

.wf-v2-bucket--safe {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

.wf-v2-bucket--review {
  background: rgba(27, 165, 224, 0.08);
  border-color: var(--wf-line);
}

.wf-v2-bucket--risk {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.wf-v2-bucket h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #fff;
}

/* Progress track */
.wf-v2-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.wf-v2-progress span {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wf-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-v2-progress span.is-active {
  background: rgba(27, 165, 224, 0.2);
  color: var(--wf-blue-bright);
  border-color: var(--wf-line);
  font-weight: 600;
}

.wf-v2-progress span.is-done {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}

/* Dashboard status list */
.wf-v2-status-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-v2-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 21, 37, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.wf-v2-status-list li span:first-child {
  color: var(--wf-text);
}

/* Table */
.wf-v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wf-v2-table th,
.wf-v2-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-v2-table th {
  color: var(--wf-text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wf-v2-table td {
  color: var(--wf-text);
}

/* Footer */
.wf-v2-footer {
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  background: rgba(4, 14, 26, 0.6);
}

.wf-v2-footer p {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--wf-text-muted);
}

.wf-v2-footer a {
  color: var(--wf-text-muted);
  text-decoration: none;
}

.wf-v2-footer a:hover {
  color: var(--wf-blue-bright);
}

.wf-v2-footer .wf-v2-operator {
  opacity: 0.45;
  font-size: 0.75rem;
}

.wf-v2-muted {
  color: var(--wf-text-muted);
}

/* Landing-specific */
.wf-v2-landing .wf-v2-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.wf-v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.wf-v2-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.wf-v2-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wf-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wf-v2-notice {
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  font-size: 0.88rem;
}
