/* ============================================================
   WorkDeck Theme — Main Stylesheet
   Fonts:  Archivo Black (headings) + DM Sans (body)
   Palette: #0a0b10 bg · #E8E6FF primary · #9890F5 accent
   ============================================================ */

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

:root {
  /* WorkDeck brand */
  --wd-primary:    #E8E6FF;   /* light slate/lavender */
  --wd-accent:     #9890F5;   /* mid purple accent */
  --wd-accent2:    #6B5FF8;   /* deeper purple for hover/icon */
  --wd-glow:       #6B5FF8;

  /* Backgrounds */
  --bg:            #0a0b10;
  --bg-card:       #13141f;
  --bg-card-hover: #181928;
  --bg-mid:        #0e0f1c;

  /* Text */
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,0.35);
  --text-mid:      rgba(255,255,255,0.65);

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-accent: rgba(232,230,255,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6,
.font-archivo {
  font-family: 'Archivo Black', sans-serif;
}

/* ── WORKDECK SVG ICON (inline helper) ── */
/* Top blade: #9890F5 @ 50% · Bottom blade: #E8E6FF · Spine: #E8E6FF @ 70% */

/* ── NAV ── */
.wd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3rem;
  background: rgba(10,11,16,0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.wd-nav.scrolled { padding: 1rem 3rem; }

/* Logo lockup */
.wd-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wd-logo-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.wd-logo-text em {
  font-style: normal;
  color: var(--wd-accent);
}

/* Nav links */
.wd-nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.wd-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.wd-nav-links a:hover { color: var(--text); }

.wd-nav-cta {
  background: var(--wd-accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px;
  font-weight: 700 !important;
  font-family: 'Archivo Black', sans-serif !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.01em !important;
  transition: background 0.2s !important;
}
.wd-nav-cta:hover { background: var(--wd-accent2) !important; color: #fff !important; }

/* Hamburger */
.wd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.wd-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.wd-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wd-hamburger.open span:nth-child(2) { opacity: 0; }
.wd-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.wd-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}
.wd-mobile-menu.open { display: flex; }
.wd-mobile-menu a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.wd-mobile-menu a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--wd-accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(107,95,248,0.35);
}
.btn-primary:hover {
  background: var(--wd-accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107,95,248,0.5);
  color: #fff;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--wd-accent);
  background: rgba(152,144,245,0.08);
  color: var(--text);
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--wd-accent2);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--wd-accent2);
}

/* ── SECTION HELPERS ── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wd-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ── HERO ── */
.wd-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.wd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(107,95,248,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 80% 85%, rgba(152,144,245,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.wd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(152,144,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152,144,245,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.wd-hero-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
}

.wd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(152,144,245,0.1);
  border: 1px solid rgba(152,144,245,0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-accent);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.wd-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--wd-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.wd-hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.wd-hero h1 em {
  font-style: normal;
  color: var(--wd-accent);
}

.wd-hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.wd-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── PRODUCTS ── */
.wd-products {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wd-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wd-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.wd-product-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* Per-product accent glow on hover */
.wd-product-card .card-glow {
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  opacity: 0;
  filter: blur(50px);
  transition: opacity 0.4s;
  pointer-events: none;
}
.wd-product-card:hover .card-glow { opacity: 0.12; }

.wd-product-card.featured { border-color: rgba(152,144,245,0.3); }
.wd-product-card.coming-soon { opacity: 0.65; }

.card-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
}
.card-badge.live {
  background: var(--wd-accent);
  color: #fff;
}
.card-badge.soon {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Product icon — matches brand icon but smaller */
.product-icon {
  width: 52px; height: 52px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.product-sector {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.product-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.product-name em { font-style: normal; }

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Archivo Black', sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.2s;
}
.product-link:hover { gap: 0.7rem; }
.product-link.inactive {
  color: var(--text-muted) !important;
  cursor: default;
  pointer-events: none;
}

/* ── WHY WORKDECK ── */
.wd-why {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 2rem;
}

.wd-why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.wd-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.wd-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.wd-pillar:hover { border-color: var(--border-accent); }

.pillar-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }

.wd-pillar h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.wd-pillar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.wd-how {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.wd-how-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.wd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.wd-steps::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--wd-accent) 0%, rgba(152,144,245,0.15) 50%, var(--wd-accent) 100%);
}

.wd-step { text-align: center; padding: 0 1rem; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--wd-accent);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(152,144,245,0.2);
}

.wd-step h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.wd-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA STRIP ── */
.wd-cta-strip {
  margin: 0 2rem 5rem;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--wd-accent) 0%, var(--wd-accent2) 100%);
  border-radius: 20px;
  padding: 4rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.wd-cta-strip::before {
  content: '';
  position: absolute;
  top: -40%; right: -5%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.wd-cta-strip::after {
  content: '';
  position: absolute;
  bottom: -50%; left: 30%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.wd-cta-strip-text { position: relative; }

.wd-cta-strip h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
}
.wd-cta-strip p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

/* ── FOOTER ── */
.wd-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.wd-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wd-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.wd-footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.wd-footer-links a:hover { color: var(--text); }

.wd-footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WP HELPERS ── */
.alignnone   { margin: 1rem 0; }
.aligncenter { display: block; margin: 1rem auto; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wd-nav { padding: 1rem 1.5rem; }
  .wd-nav-links { display: none; }
  .wd-hamburger { display: flex; }
  .wd-why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .wd-pillars { grid-template-columns: 1fr 1fr; }
  .wd-steps { grid-template-columns: 1fr; }
  .wd-steps::before { display: none; }
  .wd-cta-strip { flex-direction: column; text-align: center; padding: 3rem 2rem; }
}

@media (max-width: 600px) {
  .wd-hero { padding: 6rem 1.5rem 4rem; }
  .wd-products, .wd-how { padding: 5rem 1.5rem; }
  .wd-why { padding: 5rem 1.5rem; }
  .wd-products-grid { grid-template-columns: 1fr; }  .wd-pillars { grid-template-columns: 1fr; }
  .wd-cta-strip { margin: 0 1rem 3rem; }
}
