/* ═══════════════════════════════════════════
   XFactorAI™ — Communications Intelligence™
   Production Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --bg: #0b1120;
  --bg-2: #0f1730;
  --bg-3: #162035;
  --bg-card: #152040;
  --bg-card-h: #1b2a50;
  --white: #f1f5f9;
  --gray: #b0bdd0;
  --muted: #8896ad;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dim: rgba(59,130,246,0.12);
  --blue-glow: rgba(59,130,246,0.08);
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --gold-dim: rgba(245,158,11,0.1);
  --gold-light: #fbbf24;
  --border: rgba(148,163,184,0.12);
  --border-h: rgba(59,130,246,0.3);
  --r: 14px;
}

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

.tm { font-size:.7em; vertical-align:super; opacity:.6; font-weight:400; }
h1 .tm { font-size:.35em; }
h2 .tm { font-size:.45em; }

html { scroll-behavior:smooth; }
body {
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--bg);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  line-height:1.6;
}

/* ─── NAV ─── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:0 48px; height:64px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(11,17,32,0.88); backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(96,165,250,.08);
}
.nav-logo { font-weight:800; font-size:18px; letter-spacing:-0.5px; color:var(--white); text-decoration:none; }
.nav-logo span { color:var(--blue); }
.nav-mid { display:flex; gap:32px; align-items:center; margin-left:auto; }
.nav-mid a { color:var(--gray); text-decoration:none; font-size:13.5px; font-weight:500; transition:color .25s; }
.nav-mid a:hover { color:var(--white); }
.nav-cta {
  background:var(--blue); color:#fff !important; padding:9px 22px; border-radius:8px;
  font-size:13px; font-weight:600; text-decoration:none; transition:all .25s;
  border:none; cursor:pointer;
}
.nav-cta:hover { background:var(--blue-light); box-shadow:0 0 24px rgba(59,130,246,.3); }
.nav-hamburger {
  display:none; flex-direction:column; gap:5px; cursor:pointer;
  background:none; border:none; padding:8px;
}
.nav-hamburger span {
  width:22px; height:2px; background:var(--gray); border-radius:2px;
  transition:all .3s ease;
}

/* Nav dropdown (e.g. About → submenu) */
.nav-dropdown { position:relative; align-self:stretch; display:flex; align-items:center; }
.nav-dropdown-trigger { display:inline-flex; align-items:center; gap:5px; }
.nav-dropdown-trigger svg { opacity:.7; transition:transform .25s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform:rotate(180deg); }
/* invisible bridge so the submenu stays open while moving the cursor down */
.nav-dropdown::after { content:''; position:absolute; top:100%; left:-24px; right:-24px; height:14px; }
.nav-submenu {
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px);
  min-width:190px; padding:8px;
  background:rgba(15,23,48,0.97); backdrop-filter:blur(20px);
  border:1px solid rgba(96,165,250,.15); border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
  display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transition:opacity .22s ease, transform .22s ease;
  z-index:101;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav-submenu a {
  display:block; padding:9px 14px; border-radius:8px;
  font-size:13.5px; font-weight:500; color:var(--gray); white-space:nowrap;
  text-decoration:none; transition:background .2s, color .2s;
}
.nav-submenu a:hover { background:rgba(96,165,250,.12); color:var(--white); }

/* Mobile nav sub-link */
.mobile-nav a.mobile-nav-sub {
  font-size:15px; font-weight:500; color:var(--blue-light);
  padding-top:6px; margin-top:-2px;
}

/* ─── HERO ─── */
.hero {
  min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  padding:140px 48px 100px; position:relative;
}
.hero::after {
  content:''; position:absolute; top:-100px; right:-200px;
  width:700px; height:700px;
  background:radial-gradient(circle,rgba(59,130,246,.12),transparent 65%);
  pointer-events:none;
}
.hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--blue-dim); border:1px solid rgba(59,130,246,.15);
  border-radius:100px; padding:6px 16px 6px 12px;
  font-size:12px; font-weight:600; color:var(--blue-light);
  margin-bottom:32px; width:fit-content;
}
.hero-tag-dot {
  width:6px; height:6px; border-radius:50%; background:var(--blue);
  animation:pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
  font-size:clamp(42px,6vw,80px); font-weight:800; line-height:1.05;
  letter-spacing:-0.035em; max-width:850px; margin-bottom:24px;
}
.hero h1 .hl {
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-p { font-size:18px; color:#d4dbe8; max-width:580px; line-height:1.75; margin-bottom:40px; }
.hero-btns { display:flex; gap:12px; margin-bottom:80px; flex-wrap:wrap; }
.btn-blue {
  background:var(--blue); color:#fff; padding:14px 32px; border-radius:10px;
  font-weight:600; font-size:14.5px; text-decoration:none; transition:all .25s;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn-blue:hover { background:var(--blue-light); box-shadow:0 0 32px rgba(59,130,246,.3); }
.btn-ghost {
  color:var(--gray); padding:14px 32px; border-radius:10px; font-weight:500;
  font-size:14.5px; text-decoration:none; border:1px solid rgba(148,163,184,.15); transition:all .25s;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn-ghost:hover { border-color:rgba(96,165,250,.3); color:var(--white); }

.hero-nums { display:flex; gap:56px; padding-top:48px; border-top:1px solid rgba(148,163,184,.15); }
.hero-num h3 { font-size:40px; font-weight:800; letter-spacing:-0.03em; line-height:1; color:var(--gold-light); }
.hero-num h3 span { color:var(--blue); }
.hero-num p { font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font-weight:600; margin-top:6px; }

/* ─── SECTION COMMON ─── */
section { padding:120px 48px; }
.sec-label { font-size:11.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--blue); margin-bottom:16px; }
.sec-title { font-size:clamp(32px,4vw,52px); font-weight:800; line-height:1.1; letter-spacing:-0.03em; max-width:650px; margin-bottom:16px; }
.sec-sub { font-size:16px; color:#d4dbe8; max-width:520px; line-height:1.7; }

/* ─── WHAT WE BUILD ─── */
.what { background:var(--bg-2); border-top:1px solid rgba(96,165,250,.1); border-bottom:1px solid rgba(96,165,250,.1); }
.what-inner { max-width:1200px; margin:0 auto; }
.what-header { margin-bottom:56px; }
.what-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
  perspective:1200px; position:relative;
}
@media (hover:hover) and (min-width:769px) {
  .what-grid::before {
    content:''; position:absolute; width:500px; height:500px; border-radius:50%;
    background:radial-gradient(circle,rgba(200,210,230,.12) 0%,rgba(180,200,220,.06) 35%,transparent 70%);
    left:var(--grid-x,50%); top:var(--grid-y,50%); transform:translate(-50%,-50%);
    pointer-events:none; z-index:0; transition:opacity .3s; opacity:0;
  }
  .what-grid:hover::before { opacity:1; }
}

.what-card {
  position:relative; border-radius:var(--r); padding:1px;
  background:linear-gradient(135deg,rgba(59,130,246,.15),rgba(34,211,238,.08),rgba(59,130,246,.15));
  transition:box-shadow .4s ease;
  box-shadow:0 8px 32px rgba(59,130,246,.08),0 0 60px rgba(59,130,246,.04),0 2px 4px rgba(0,0,0,.2);
}
.what-card-inner {
  position:relative; z-index:3; background:var(--bg-card);
  border-radius:calc(var(--r) - 1px); padding:28px 24px; height:100%;
  transition:background .4s ease;
}
.what-card:hover .what-card-inner { background:var(--bg-card-h); }
.what-card:hover { box-shadow:0 20px 60px rgba(59,130,246,.16),0 0 100px rgba(59,130,246,.08),0 4px 8px rgba(0,0,0,.25); }

/* Advanced effects — desktop only, browsers that support mask-composite */
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  @media (hover:hover) and (min-width:769px) {
    .what-card { transform-style:preserve-3d; }
    .what-card::before {
      content:''; position:absolute; inset:0; border-radius:var(--r); padding:1px;
      background:conic-gradient(from var(--gradient-angle,0deg),rgba(59,130,246,.4),rgba(34,211,238,.3),rgba(139,92,246,.3),rgba(59,130,246,.4));
      mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
      mask-composite:exclude;
      -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
      -webkit-mask-composite:xor;
      opacity:0; transition:opacity .5s ease; pointer-events:none; z-index:1;
      animation:rotateGradient 4s linear infinite;
    }
    .what-card:hover::before { opacity:1; }
    .what-card::after {
      content:''; position:absolute; inset:1px; border-radius:calc(var(--r) - 1px);
      background:radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%),rgba(200,215,240,.14) 0%,transparent 60%);
      opacity:0; transition:opacity .3s ease; pointer-events:none; z-index:2;
    }
    .what-card:hover::after { opacity:1; }
  }
}
/* @property must be top-level */
@property --gradient-angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes rotateGradient { to { --gradient-angle:360deg; } }

.what-card-icon { font-size:28px; margin-bottom:16px; }
.what-card h4 { font-size:15.5px; font-weight:700; margin-bottom:8px; letter-spacing:-0.01em; }
.what-card p { font-size:13px; color:#d4dbe8; line-height:1.65; }
.what-card-tag {
  display:inline-block; margin-top:14px; font-size:10.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; padding:4px 10px; border-radius:6px;
}

/* ─── FLIP CARD ─── */
.what-card { cursor:pointer; perspective:800px; }
.what-card-flipper {
  position:relative; width:100%; height:100%;
  transition:transform 0.6s cubic-bezier(.4,.0,.2,1);
  transform-style:preserve-3d;
  will-change:transform;
}
.what-card.flipped .what-card-flipper { transform:rotateX(180deg); }
.what-card-front, .what-card-back {
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
}
.what-card-back {
  position:absolute; inset:0;
  transform:rotateX(180deg);
  display:flex; flex-direction:column;
  padding:16px !important;
}
.card-back-header {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:12px; padding-bottom:10px;
  border-bottom:1px solid var(--border);
}
.card-back-header h4 { font-size:13px; margin:0; color:var(--white); }
.card-back-close {
  font-size:11px; font-weight:600; color:var(--blue-light);
  text-transform:uppercase; letter-spacing:.06em;
  padding:4px 10px; border-radius:6px;
  background:var(--blue-dim); border:1px solid rgba(59,130,246,.15);
}

/* ─── LIGHTBOX MODAL (Premium) ─── */
.lightbox {
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(5,8,16,.94); backdrop-filter:blur(20px) saturate(1.2);
  padding:24px;
}
.lightbox.open { display:flex; align-items:center; justify-content:center; }

.lightbox-chrome {
  display:flex; align-items:center; gap:16px;
  width:100%; height:100%; max-width:85vw; max-height:85vh;
}
.lb-center { flex:1; display:flex; flex-direction:column; min-width:0; height:100%; }
.lb-title-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:0 4px 14px; flex-shrink:0;
}
.lb-title {
  font-size:15px; font-weight:700; color:var(--white); letter-spacing:-.01em;
}
.lb-counter {
  font-size:12px; color:var(--muted); font-weight:500;
  background:var(--bg-card); border:1px solid var(--border);
  padding:4px 12px; border-radius:20px;
}
.lb-viewport {
  flex:1; display:flex; align-items:center; justify-content:center;
  overflow:hidden; border-radius:14px; min-height:0;
  background:var(--bg-3);
  border:1px solid var(--border);
  box-shadow:0 24px 80px rgba(0,0,0,.4), 0 0 120px rgba(59,130,246,.06);
}
.lb-viewport img {
  max-width:100%; max-height:100%; object-fit:contain;
  border-radius:12px;
  transition:opacity .25s ease;
}
.lb-viewport img.loading { opacity:0; }

/* Nav arrows */
.lb-nav {
  flex-shrink:0; width:48px; height:48px; border-radius:50%;
  background:var(--bg-card); border:1px solid var(--border);
  color:var(--white); font-size:24px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s;
}
.lb-nav:hover { background:var(--blue-dim); border-color:rgba(59,130,246,.3); transform:scale(1.08); }
.lb-nav:active { transform:scale(.95); }

/* Close button - floating top-right */
.lb-close {
  position:fixed; top:20px; right:20px; z-index:210;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:var(--white); font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .25s; backdrop-filter:blur(8px);
}
.lb-close:hover { background:rgba(255,255,255,.15); transform:scale(1.1) rotate(90deg); }

@media (max-width:768px) {
  .lightbox-chrome { max-width:96vw; max-height:90vh; gap:8px; }
  .lb-nav { width:36px; height:36px; font-size:20px; }
  .lb-title { font-size:13px; }
  .lb-close { top:12px; right:12px; width:38px; height:38px; }
}
.card-screenshot {
  flex:1; display:flex; align-items:center; justify-content:center;
  overflow:hidden; border-radius:8px;
  background:var(--bg-3); min-height:0;
}
.card-screenshot img {
  max-width:100%; max-height:100%; object-fit:contain;
  border-radius:6px;
}
/* Placeholder when no image loaded */
.card-screenshot img[src=""], .card-screenshot img:not([src]) {
  display:none;
}
.card-screenshot:has(img:not([src])):after,
.card-screenshot:has(img[src=""]):after {
  content:'Screenshot coming soon';
  font-size:12px; color:var(--muted); font-weight:500;
}
.card-flip-hint {
  display:block; margin-top:12px; font-size:10.5px;
  color:var(--muted); font-weight:500; letter-spacing:.04em;
  opacity:.6;
}

/* ─── AUTO-SHOWCASE FLIP ─── */
.what-card.showcasing .what-card-flipper {
  transform:rotateX(180deg);
}
.what-card.showcasing {
  z-index:2;
}
@keyframes showcaseGlow {
  0%   { box-shadow:0 8px 32px rgba(59,130,246,.08); }
  50%  { box-shadow:0 12px 48px rgba(59,130,246,.25), 0 0 30px rgba(59,130,246,.1); }
  100% { box-shadow:0 8px 32px rgba(59,130,246,.08); }
}
.what-card.showcasing {
  animation:showcaseGlow 2.5s ease;
}
.tag-live { background:rgba(34,197,94,.1); color:#4ade80; }
.tag-ready { background:var(--blue-dim); color:var(--blue-light); }
.tag-beta { background:rgba(251,191,36,.1); color:#fbbf24; }
.tag-vertical { background:rgba(168,85,247,.1); color:#c084fc; }

/* ─── FEATURED: WORKPILOT ─── */
.featured { max-width:1200px; margin:0 auto; }
.featured-header { margin-bottom:48px; }
.featured-box {
  background:var(--bg-card); border:1px solid var(--border); border-radius:20px;
  overflow:hidden; display:grid; grid-template-columns:1fr 1fr; min-height:440px;
  box-shadow:0 8px 40px rgba(100,140,200,.08),0 0 80px rgba(100,160,240,.04);
}
.featured-left { padding:52px 48px; display:flex; flex-direction:column; justify-content:center; }
.featured-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--gold-dim); border:1px solid rgba(245,158,11,.2);
  border-radius:100px; padding:5px 14px; font-size:11px; font-weight:700;
  color:var(--gold-light); width:fit-content; margin-bottom:20px;
  text-transform:uppercase; letter-spacing:.06em;
}
.featured-left h3 { font-size:32px; font-weight:800; letter-spacing:-0.03em; line-height:1.15; margin-bottom:14px; }
.featured-left > p { font-size:15px; color:#d4dbe8; line-height:1.7; margin-bottom:28px; }
.feat-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.feat-list li { display:flex; align-items:center; gap:10px; font-size:13.5px; color:#d4dbe8; }
.feat-list li::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0; }

.featured-right {
  background:var(--bg-3); display:flex; align-items:center; justify-content:center;
  padding:40px; position:relative; overflow:hidden;
}
.featured-right::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 60% 40%,rgba(59,130,246,.08),transparent 60%);
}
.wp-mockup { position:relative; z-index:1; width:100%; max-width:440px; }
.wp-mock-bar {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:10px 10px 0 0; padding:10px 16px;
  display:flex; align-items:center; gap:8px;
}
.wp-mock-dots { display:flex; gap:5px; }
.wp-mock-dots span { width:8px; height:8px; border-radius:50%; background:var(--muted); opacity:.4; }
.wp-mock-title { font-size:11px; color:var(--muted); font-weight:600; }
.wp-mock-body {
  background:var(--bg); border:1px solid var(--border); border-top:0;
  border-radius:0 0 10px 10px; padding:6px 0; display:flex; flex-direction:column;
}
.wp-inbox-row {
  padding:10px 14px; border-bottom:1px solid var(--border);
  display:flex; gap:10px; align-items:flex-start; transition:background .2s;
}
.wp-inbox-row:last-child { border-bottom:none; }
.wp-inbox-row:hover { background:rgba(59,130,246,.04); }
.wp-inbox-avatar {
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; color:#fff; flex-shrink:0; margin-top:2px;
}
.wp-inbox-content { flex:1; min-width:0; }
.wp-inbox-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:2px; }
.wp-inbox-sender { font-size:11px; font-weight:700; color:var(--white); }
.wp-inbox-time { font-size:9.5px; color:var(--muted); font-weight:500; }
.wp-inbox-subject {
  font-size:10.5px; font-weight:600; color:#d4dbe8; margin-bottom:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:flex; align-items:center; gap:6px;
}
.wp-inbox-preview { font-size:9.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wp-tag { font-size:8px; font-weight:800; letter-spacing:.04em; padding:2px 6px; border-radius:3px; white-space:nowrap; flex-shrink:0; }
.wp-tag-revenue { background:rgba(34,197,94,.2); color:#6ee7a0; }
.wp-tag-compliance { background:rgba(239,68,68,.2); color:#fca5a5; }
.wp-tag-action { background:rgba(59,130,246,.2); color:#93bbfd; }
.wp-tag-review { background:rgba(168,85,247,.2); color:#d8b4fe; }
.wp-tag-schedule { background:rgba(251,191,36,.2); color:#fde047; }

/* ─── TECHNOLOGY ─── */
.tech-section { background:var(--bg-2); border-top:1px solid rgba(96,165,250,.1); border-bottom:1px solid rgba(96,165,250,.1); }
.tech-inner { max-width:1200px; margin:0 auto; }
.tech-header { margin-bottom:56px; }
.tech-stack { display:flex; flex-direction:column; gap:3px; }
.tech-row {
  background:var(--bg-card); border:1px solid rgba(100,140,200,.1); border-radius:10px;
  padding:24px 28px; display:grid; grid-template-columns:180px 1fr 100px; gap:28px;
  align-items:center; transition:all .4s cubic-bezier(.25,.46,.45,.94);
  box-shadow:0 8px 32px rgba(59,130,246,.08),0 0 60px rgba(59,130,246,.04),0 2px 4px rgba(0,0,0,.2);
}
.tech-row:hover {
  border-color:rgba(120,160,220,.3); background:var(--bg-card-h); transform:translateX(6px);
  box-shadow:0 16px 56px rgba(59,130,246,.14),0 0 90px rgba(59,130,246,.07),0 4px 8px rgba(0,0,0,.25),0 0 1px rgba(255,255,255,.1);
}
.tech-name { font-weight:700; font-size:14px; color:var(--blue-light); }
.tech-desc { font-size:13.5px; color:#d4dbe8; line-height:1.6; }
.tech-tag { font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); text-align:right; }

/* ─── ABOUT ─── */
.about-section { background:var(--bg-2); border-top:1px solid rgba(96,165,250,.1); border-bottom:1px solid rgba(96,165,250,.1); }
.about-inner { max-width:1200px; margin:0 auto; }
.about-header { margin-bottom:56px; }
.about-grid { display:grid; grid-template-columns:1fr 340px; gap:48px; align-items:start; }
.about-text { display:flex; flex-direction:column; gap:16px; }
.about-vision-title { font-size:24px; font-weight:800; letter-spacing:-0.02em; margin-bottom:4px; }
.about-text p { font-size:15px; color:#d4dbe8; line-height:1.8; }
.about-text strong { color:var(--white); font-weight:600; }
.about-card {
  background:var(--bg-card); border:1px solid rgba(96,165,250,.12); border-radius:var(--r);
  padding:40px 32px; text-align:center; position:sticky; top:100px;
  box-shadow:0 4px 20px rgba(100,140,200,.06),0 0 40px rgba(100,140,200,.03);
}
.about-avatar {
  width:72px; height:72px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:800; color:#fff; margin:0 auto 18px;
}
.about-card h4 { font-size:20px; font-weight:700; margin-bottom:4px; }
.about-role { font-size:13.5px; color:var(--blue-light); font-weight:600; display:block; margin-bottom:24px; }
.about-creds { display:flex; flex-direction:column; gap:12px; }
.about-cred { display:flex; align-items:center; gap:10px; font-size:13px; color:#d4dbe8; justify-content:center; }
.cred-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.about-bio-link { display:inline-block; margin-top:24px; font-size:13.5px; font-weight:600; color:var(--blue-light); text-decoration:none; transition:color .25s; }
.about-bio-link:hover { color:var(--white); }

/* ─── HOW WE WORK ─── */
.how { max-width:1200px; margin:0 auto; }
.how-header { margin-bottom:56px; }
.how-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.how-card {
  background:var(--bg-card); border:1px solid rgba(96,165,250,.12); border-radius:var(--r);
  padding:36px 28px; text-align:center; transition:all .4s cubic-bezier(.25,.46,.45,.94);
  box-shadow:0 6px 28px rgba(100,140,200,.1),0 0 56px rgba(100,160,240,.05);
}
.how-card:hover {
  border-color:rgba(96,165,250,.3); background:var(--bg-card-h);
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 14px 56px rgba(100,160,240,.16),0 0 90px rgba(100,160,240,.08),0 0 1px rgba(255,255,255,.12);
}
.how-num { font-size:48px; font-weight:800; color:var(--gold); opacity:.8; line-height:1; margin-bottom:18px; }
.how-card h4 { font-size:18px; font-weight:700; margin-bottom:10px; }
.how-card p { font-size:13.5px; color:#d4dbe8; line-height:1.7; }

/* ─── STATS ─── */
.stats { background:var(--bg-2); border-top:1px solid rgba(96,165,250,.1); border-bottom:1px solid rgba(96,165,250,.1); }
.stats-inner { max-width:1200px; margin:0 auto; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:48px; }
.stat-card {
  background:var(--bg-card); border:1px solid rgba(96,165,250,.12); border-radius:var(--r);
  padding:32px 24px; text-align:center;
  box-shadow:0 4px 20px rgba(100,140,200,.06),0 0 40px rgba(100,140,200,.03);
}
.stat-val { font-size:44px; font-weight:800; letter-spacing:-0.03em; line-height:1; margin-bottom:6px; color:var(--gold-light); }
.stat-val span { color:var(--gold); }
.stat-lbl { font-size:13px; color:#d4dbe8; }

/* ─── CTA ─── */
.cta {
  text-align:center; padding:140px 48px; position:relative; overflow:hidden;
  background:linear-gradient(175deg, var(--bg) 0%, #0d2040 40%, #122e54 70%, var(--bg) 100%);
  border-top:1px solid rgba(96,165,250,.12);
  border-bottom:1px solid rgba(96,165,250,.12);
}
.cta::before {
  content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:600px; height:400px;
  background:radial-gradient(circle,rgba(59,130,246,.1),rgba(245,158,11,.04) 40%,transparent 65%);
  pointer-events:none;
}
.cta .sec-title { max-width:550px; margin:0 auto 16px; }
.cta .sec-sub { max-width:440px; margin:0 auto 40px; text-align:center; }
.cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ─── CONTACT FORM ─── */
.contact-form {
  max-width:560px; margin:0 auto; text-align:left;
}
/* Spam honeypot. Positioned off-screen rather than display:none, which bots skip. */
.hp-field {
  position:absolute; left:-9999px; width:1px; height:1px;
  opacity:0; pointer-events:none;
}
.cf-row {
  display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;
}
.cf-field { display:flex; flex-direction:column; margin-bottom:16px; }
.cf-row .cf-field { margin-bottom:0; }
.cf-field label {
  font-size:12px; font-weight:600; color:var(--gray); text-transform:uppercase;
  letter-spacing:.08em; margin-bottom:6px;
}
.cf-field input,
.cf-field textarea {
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  border-radius:10px; padding:12px 16px; color:var(--white);
  font-family:inherit; font-size:14px; line-height:1.5;
  transition:border-color .25s, box-shadow .25s; outline:none; resize:vertical;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color:var(--muted); opacity:.7; }
.cf-field input:focus,
.cf-field textarea:focus {
  border-color:var(--blue); box-shadow:0 0 0 3px rgba(59,130,246,.15);
}
.cf-field input.cf-error,
.cf-field textarea.cf-error { border-color:#ef4444; }
.cf-submit {
  display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:4px;
}
.cf-status { flex:1; text-align:right; }
.cf-btn { cursor:pointer; border:none; white-space:nowrap; }
.cf-btn:disabled { opacity:.6; cursor:not-allowed; }
.cf-status { font-size:13px; }
.cf-status.success { color:#22c55e; }
.cf-status.error { color:#ef4444; }

/* ─── FOOTER ─── */
.foot {
  padding:48px 48px 32px; border-top:1px solid var(--border);
}
.foot-top {
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:32px;
}
.foot-brand {
  font-weight:800; font-size:18px; letter-spacing:-0.5px; color:var(--white); margin-bottom:16px;
}
.foot-brand span { color:var(--blue); }
.foot-contact-items { display:flex; flex-direction:column; gap:10px; }
.foot-contact-item {
  display:flex; align-items:center; gap:10px;
  font-size:12.5px; color:var(--muted); text-decoration:none; transition:color .25s;
}
a.foot-contact-item:hover { color:var(--gray); }
.foot-contact-item svg { flex-shrink:0; color:var(--blue); }
.foot-r { display:flex; gap:28px; padding-top:6px; }
.foot-r a { font-size:12.5px; color:var(--muted); text-decoration:none; transition:color .25s; }
.foot-r a:hover { color:var(--gray); }
.foot-bottom {
  padding-top:24px; border-top:1px solid var(--border);
  font-size:12px; color:var(--muted);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.anim { opacity:0; transform:translateY(24px); transition:opacity .65s cubic-bezier(.25,.46,.45,.94),transform .65s cubic-bezier(.25,.46,.45,.94); }
.anim.in { opacity:1; transform:translateY(0); }

/* Mobile: show everything immediately, no scroll reveal */
@media (max-width:768px) {
  .anim { opacity:1; transform:none; transition:none; }
}

.hero-tag,.hero h1,.hero-p,.hero-btns,.hero-nums { opacity:0; animation:fadeIn .7s ease forwards; }
.hero h1 { animation-delay:.15s; }
.hero-p { animation-delay:.3s; }
.hero-btns { animation-delay:.45s; }
.hero-nums { animation-delay:.6s; }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 1024px)
   ═══════════════════════════════════════════ */
@media (max-width:1024px) {
  .nav { padding:0 24px; }
  .nav-mid { gap:20px; }
  section { padding:80px 24px; }
  .hero { padding:120px 24px 80px; }
  .what-grid { grid-template-columns:1fr 1fr; }
  .featured-box { grid-template-columns:1fr; }
  .featured-left { padding:40px 32px; }
  .featured-right { min-height:300px; padding:32px; }
  .featured-left h3 { font-size:26px; }
  .how-grid { grid-template-columns:1fr; }
  .about-grid { grid-template-columns:1fr; }
  .about-card { position:static; max-width:400px; margin:0 auto; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .tech-row { grid-template-columns:1fr; gap:8px; padding:20px; }
  .tech-tag { text-align:left; }
  .hero-nums { gap:32px; flex-wrap:wrap; }
  .foot { flex-direction:column; gap:16px; text-align:center; }
  .foot-top { flex-direction:column; align-items:center; gap:24px; }
  .foot-contact { text-align:center; }
  .foot-contact-items { align-items:center; }
  .foot-r { justify-content:center; flex-wrap:wrap; }
  .cta { padding:100px 24px; }
  .cf-row { grid-template-columns:1fr; }
  .cf-submit { flex-direction:column; align-items:stretch; }
  .cf-status { text-align:center; }
}

/* ═══════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════ */
.mobile-nav {
  display:none;
  position:fixed; top:0; left:0; right:0; bottom:0; z-index:99;
  background:rgba(5,8,16,0.97); backdrop-filter:blur(24px);
  flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:32px;
  opacity:0; transition:opacity .3s ease;
  pointer-events:none;
}
.mobile-nav.open { display:flex; opacity:1; pointer-events:auto; }
.mobile-nav a {
  color:var(--white); text-decoration:none; font-size:20px; font-weight:600;
  padding:14px 24px; border-radius:10px; width:100%; max-width:300px;
  text-align:center; transition:background .2s;
}
.mobile-nav a:not(.btn-blue):hover { background:rgba(255,255,255,.05); }
.mobile-nav a:not(.btn-blue) { color:var(--gray); }

/* Hamburger animation */
.nav-hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 768px)
   ═══════════════════════════════════════════ */
@media (max-width:768px) {
  /* Nav: hide desktop links, show hamburger */
  .nav-mid { display:none; }
  .nav-hamburger { display:flex; }
  .nav { padding:0 20px; }

  /* Hero */
  .hero { min-height:auto; padding:100px 20px 56px; text-align:center; align-items:center; }
  .hero h1 { font-size:clamp(32px,8vw,48px); margin-bottom:18px; max-width:100%; }
  .hero-p { font-size:16px; margin-bottom:28px; line-height:1.7; margin-left:auto; margin-right:auto; }
  .hero-tag { margin-left:auto; margin-right:auto; }
  .hero-btns { margin-bottom:48px; flex-direction:column; align-items:stretch; gap:10px; }
  .btn-blue, .btn-ghost { padding:14px 24px; font-size:14.5px; justify-content:center; }
  .hero-nums { gap:0; justify-content:space-between; }
  .hero-num { flex:1; text-align:center; }
  .hero-num:not(:last-child) { border-right:1px solid var(--border); }
  .hero-num h3 { font-size:30px; }
  .hero-num p { font-size:11px; letter-spacing:.08em; }

  /* Sections */
  section { padding:64px 20px; }
  .sec-title { font-size:clamp(26px,6vw,36px); text-align:center; margin-left:auto; margin-right:auto; }
  .sec-sub { font-size:15px; text-align:center; margin-left:auto; margin-right:auto; }
  .sec-label { font-size:11px; text-align:center; }

  /* Product cards */
  .what-grid { grid-template-columns:1fr; gap:12px; }
  .what-header { margin-bottom:40px; text-align:center; }
  .what-card-inner { padding:24px 20px; }
  .what-card-icon { font-size:26px; margin-bottom:14px; }

  /* Featured WorkPilot */
  .featured-header { text-align:center; }
  .featured-box { grid-template-columns:1fr; border-radius:16px; }
  .featured-left { padding:32px 24px; text-align:center; }
  .featured-left h3 { font-size:22px; }
  .featured-left > p { font-size:14px; line-height:1.65; }
  .featured-badge { margin-left:auto; margin-right:auto; }
  .feat-list { align-items:center; }
  .feat-list li { font-size:12.5px; line-height:1.6; }
  .featured-right { padding:20px 16px; min-height:auto; }
  .wp-mockup { max-width:100%; }
  .wp-inbox-row { padding:8px 10px; gap:8px; }
  .wp-inbox-avatar { width:28px; height:28px; font-size:11px; }
  .wp-inbox-sender { font-size:11px; }
  .wp-inbox-time { font-size:11px; }
  .wp-inbox-subject { font-size:11px; flex-wrap:wrap; gap:4px; white-space:normal; }
  .wp-inbox-preview { font-size:11px; }
  .wp-tag { font-size:8px; padding:2px 5px; }

  /* Tech rows */
  .tech-row { padding:18px 16px; border-radius:10px; }
  .tech-name { font-size:13.5px; }
  .tech-desc { font-size:12.5px; }

  /* About */
  .about-header { margin-bottom:32px; text-align:center; }
  .about-text p { font-size:14px; line-height:1.75; text-align:center; }
  .about-vision-title { text-align:center; }
  .about-card { padding:32px 24px; }
  .about-creds { gap:10px; }
  .about-cred { font-size:12.5px; flex-wrap:wrap; justify-content:center; }

  /* How cards */
  .how-grid { gap:12px; }
  .how-card { padding:28px 20px; }
  .how-num { font-size:36px; margin-bottom:14px; }
  .how-card h4 { font-size:16px; }
  .how-card p { font-size:13px; }

  /* Stats */
  .stats-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .stat-val { font-size:36px; }
  .stat-lbl { font-size:12px; }

  /* CTA */
  .cta { padding:80px 20px; }
  .cta .sec-title { font-size:clamp(22px,5.5vw,32px) !important; margin-bottom:2px !important; }
  .cta .sec-sub[style*="font-size:22px"] { font-size:18px !important; }
  .cta-btns { flex-direction:column; align-items:center; }
  .cta-btns a { width:100%; max-width:280px; text-align:center; }

  /* Footer */
  .foot { padding:32px 20px 24px; }
  .foot-contact-item { font-size:11.5px; }
  .foot-r { gap:20px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max-width: 400px)
   ═══════════════════════════════════════════ */
@media (max-width:400px) {
  .nav { padding:0 14px; height:56px; }
  .nav-logo { font-size:16px; }

  .hero { padding:88px 14px 40px; }
  .hero h1 { font-size:clamp(26px,7.5vw,34px); }
  .hero-tag { font-size:11px; padding:5px 12px 5px 10px; margin-bottom:20px; }
  .hero-p { font-size:14.5px; margin-bottom:22px; }
  .hero-btns { margin-bottom:36px; }
  .btn-blue, .btn-ghost { padding:12px 20px; font-size:13.5px; }
  .hero-num h3 { font-size:24px; }
  .hero-num p { font-size:11px; }

  section { padding:48px 14px; }
  .sec-title { font-size:clamp(22px,6vw,30px); }

  .what-card-inner { padding:20px 16px; }
  .what-card-icon { font-size:22px; margin-bottom:10px; }
  .what-card h4 { font-size:14px; }
  .what-card p { font-size:12px; }
  .what-card-tag { font-size:11px; padding:3px 8px; }

  .featured-left { padding:24px 18px; }
  .featured-left h3 { font-size:18px; }
  .featured-badge { font-size:11px; padding:4px 10px; }
  .featured-right { padding:16px 12px; }
  .wp-mock-bar { padding:8px 12px; }
  .wp-mock-title { font-size:11px; }
  .wp-inbox-row { padding:7px 8px; gap:6px; }
  .wp-inbox-avatar { width:24px; height:24px; font-size:11px; }
  .wp-inbox-sender { font-size:11px; }
  .wp-inbox-subject { font-size:11px; }
  .wp-inbox-preview { display:none; }
  .wp-tag { font-size:8px; padding:2px 4px; letter-spacing:.02em; }

  .tech-row { padding:16px 14px; }
  .tech-name { font-size:13px; }
  .tech-desc { font-size:12px; line-height:1.55; }

  .about-text p { font-size:13.5px; }
  .about-card { padding:28px 18px; }
  .about-avatar { width:56px; height:56px; font-size:17px; }
  .about-card h4 { font-size:18px; }
  .about-cred { font-size:11.5px; }

  .how-card { padding:24px 16px; }
  .how-num { font-size:32px; }
  .how-card h4 { font-size:15px; }
  .how-card p { font-size:12.5px; }

  .stat-card { padding:22px 14px; }
  .stat-val { font-size:30px; }
  .stat-lbl { font-size:11.5px; }

  .cta { padding:64px 14px; }
  .cta .sec-title { font-size:clamp(20px,5vw,28px) !important; }
  .cta .sec-sub[style*="font-size:22px"] { font-size:16px !important; }
  .cta-btns a { max-width:100%; }

  .foot { padding:28px 14px 20px; }
  .foot-contact-item { font-size:11px; }
}

/* ─── TOUCH DEVICE: clean card presentation ─── */
@media (hover:none) {
  .what-card { transform:none !important; }
  .what-card:hover { transform:none !important; }
  .what-card:hover .what-card-inner { background:var(--bg-card); }
  .tech-row:hover { transform:none; }
  .how-card:hover { transform:none; }
}

/* ─── Safe area for notched phones ─── */
@supports(padding: max(0px)) {
  .nav { padding-left:max(20px, env(safe-area-inset-left)); padding-right:max(20px, env(safe-area-inset-right)); }
  .foot { padding-bottom:max(40px, env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════
   FIX 1: ACCESSIBILITY
   ═══════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position:fixed; top:-100px; left:16px; z-index:999;
  background:var(--blue); color:#fff; padding:10px 20px;
  border-radius:0 0 8px 8px; font-size:14px; font-weight:600;
  transition:top .2s ease; text-decoration:none;
}
.skip-link:focus { top:0; }

/* Focus styles */
*:focus-visible {
  outline:2px solid var(--blue-light);
  outline-offset:3px;
  border-radius:4px;
}
.btn-blue:focus-visible, .btn-ghost:focus-visible {
  outline-offset:4px;
  box-shadow:0 0 0 4px rgba(59,130,246,.25);
}
.what-card:focus-visible {
  outline:2px solid var(--blue-light);
  outline-offset:4px;
}
.lb-nav:focus-visible, .lb-close:focus-visible {
  outline:2px solid var(--blue-light);
  outline-offset:2px;
}
.faq-item summary:focus-visible {
  outline:2px solid var(--blue-light);
  outline-offset:2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
  .anim { opacity:1 !important; transform:none !important; }
  .what-card-flipper { transition:none !important; }
  .what-card.showcasing .what-card-flipper { transform:none !important; }
}

/* ═══════════════════════════════════════════
   FIX 6: FAQ SECTION
   ═══════════════════════════════════════════ */
.faq-section {
  padding:80px 40px; max-width:var(--mw); margin:0 auto;
}
.faq-inner { max-width:800px; margin:0 auto; }
.faq-header { text-align:center; margin-bottom:48px; }
.faq-list { display:flex; flex-direction:column; gap:12px; }
.faq-item {
  background:var(--bg-card); border:1px solid rgba(96,165,250,.1);
  border-radius:var(--r); overflow:hidden;
  transition:border-color .2s;
}
.faq-item:hover, .faq-item[open] { border-color:rgba(59,130,246,.25); }
.faq-item summary {
  padding:20px 24px; cursor:pointer;
  font-size:15px; font-weight:600; color:var(--white);
  list-style:none; display:flex; align-items:center;
  justify-content:space-between; gap:16px;
  transition:background .2s;
}
.faq-item summary:hover { background:rgba(59,130,246,.04); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after {
  content:'+'; font-size:20px; color:var(--blue-light);
  font-weight:400; flex-shrink:0;
  transition:transform .2s;
}
.faq-item[open] summary::after { content:'−'; transform:rotate(180deg); }
.faq-item p {
  padding:0 24px 20px; margin:0;
  font-size:14px; line-height:1.7; color:var(--gray);
}

@media (max-width:768px) {
  .faq-section { padding:60px 20px; }
  .faq-item summary { padding:16px 18px; font-size:14px; }
  .faq-item p { padding:0 18px 16px; font-size:13px; }
}
