/* WeldWorks Testing Labs — landing page. Trust palette, matches the approved mockups. */
:root {
  --navy: #0d2a47;
  --navy-2: #173a5e;
  --steel: #1e6091;
  --ink: #0a1929;
  --muted: #5b6772;
  --faint: #8a96a3;
  --line: rgba(13, 42, 71, 0.10);
  --green: #15803d;
  --logo-navy: brightness(0) saturate(100%) invert(13%) sepia(35%) saturate(2400%) hue-rotate(192deg) brightness(94%) contrast(92%);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #f4f7fb; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }

.site {
  position: relative;
  background:
    radial-gradient(ellipse 1200px 700px at 85% -10%, rgba(13,42,71,0.06), transparent 60%),
    radial-gradient(ellipse 900px 600px at 10% 40%, rgba(30,96,145,0.05), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #eef2f7 100%);
}
.site::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; height: 1400px;
  background-image:
    linear-gradient(rgba(13,42,71,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,42,71,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 60%, transparent 90%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 60%, transparent 90%);
}

/* --- nav --- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 44px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 42, 71, 0.08);
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 58px; display: block; filter: var(--logo-navy); }
.logo-wrap .wordmark { font-weight: 900; font-size: 17px; letter-spacing: -0.3px; color: var(--navy); line-height: 1; }
.logo-wrap .wordmark small { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--steel); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 30px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); }
.nav-links a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.nav-cta { background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: 0.8px; text-transform: uppercase; padding: 12px 20px; border-radius: 6px; border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(13,42,71,0.18); font-family: var(--font); }
.nav-cta:hover { background: var(--navy-2); }

/* --- hero --- */
.hero { position: relative; z-index: 2; padding: 64px 44px 88px; max-width: 1180px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #1e3a5c; padding: 8px 16px; border: 1px solid rgba(13,42,71,0.18); border-radius: 100px; background: #fff; box-shadow: 0 2px 8px rgba(13,42,71,0.06); margin-bottom: 28px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(21,128,61,0.18); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
h1.hero-title { font-size: clamp(40px, 7vw, 78px); line-height: 0.98; font-weight: 900; letter-spacing: -2px; max-width: 900px; margin-bottom: 24px; text-transform: uppercase; }
h1.hero-title .accent { background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 50px; }
.btn-primary { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; padding: 16px 28px; border-radius: 7px; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(13,42,71,0.22); font-family: var(--font); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; padding: 16px 22px; border: 1px solid rgba(13,42,71,0.18); border-radius: 7px; cursor: pointer; box-shadow: 0 2px 6px rgba(13,42,71,0.04); font-family: var(--font); }
.btn-ghost:hover { background: #f4f7fb; }
.trust-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(13,42,71,0.1); }
.badge-card { background: #fff; border: 1px solid rgba(13,42,71,0.08); border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(13,42,71,0.06); min-height: 80px; }
.badge-card img { height: 52px; width: auto; display: block; }
.badge-card.iwb img { height: 64px; }
.trust-fact { display: flex; flex-direction: column; gap: 3px; }
.trust-fact .label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.trust-fact .val { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* --- generic section --- */
section.band { position: relative; z-index: 2; padding: 72px 44px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.navy { background: linear-gradient(180deg, var(--navy) 0%, #0b2340 100%); color: #fff; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--steel); }
.band.navy .kicker { color: #6fa8d8; }
.band.navy .kicker::before { background: #6fa8d8; }
h2.sec { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -1px; line-height: 1.05; margin-bottom: 16px; }
.sec-lead { font-size: 17px; color: var(--muted); max-width: 660px; line-height: 1.6; }
.band.navy .sec-lead { color: #b8c9dc; }

/* about / founder */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.about-copy p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.about-copy p strong { color: var(--ink); }
.cred-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--steel); border-radius: 12px; padding: 26px; box-shadow: 0 10px 30px rgba(13,42,71,0.08); }
.cred-card .who { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--steel); text-transform: uppercase; margin-bottom: 16px; }
.cred-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cred-row:last-child { border-bottom: none; }
.cred-row .num { font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: -1px; min-width: 64px; }
.cred-row .txt { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.35; }

/* card grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 6px 20px rgba(13,42,71,0.05); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13,42,71,0.1); }
.card .ic { width: 40px; height: 40px; border-radius: 9px; background: #eaf1f8; color: var(--steel); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.card h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; color: var(--ink); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* codes table */
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.code-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; }
.code-tag { flex-shrink: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.3px; color: #fff; background: var(--navy); padding: 7px 11px; border-radius: 6px; min-width: 88px; text-align: center; }
.code-item .cd { font-size: 14px; color: var(--ink); }
.code-item .cd strong { display: block; font-weight: 800; margin-bottom: 3px; }
.code-item .cd span { color: var(--muted); line-height: 1.5; }
.process-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.proc-chip { background: #fff; border: 1px solid rgba(30,96,145,0.3); color: var(--steel); font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 100px; }

/* navy stats / audience */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14px; }
.stat-grid .s .n { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; color: #fff; }
.stat-grid .s .l { font-size: 13px; color: #9fb6cf; margin-top: 4px; line-height: 1.4; }
.audience { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.aud-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #dce7f2; font-weight: 600; font-size: 13px; padding: 10px 18px; border-radius: 100px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .btn-primary { margin-top: 8px; font-size: 15px; padding: 18px 34px; }

/* footer */
footer { background: #07172b; color: #9fb6cf; padding: 44px 44px 30px; position: relative; z-index: 2; }
.foot-grid { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand .name { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.foot-brand .tag { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); margin-top: 6px; }
.foot-col h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #6f8aa6; margin-bottom: 12px; }
.foot-col p, .foot-col a { font-size: 14px; color: #c4d4e4; line-height: 1.9; text-decoration: none; display: block; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: 1120px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #6f8aa6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* --- chat launcher + panel --- */
.ww-launch { position: fixed; bottom: 26px; right: 26px; z-index: 60; display: flex; align-items: flex-end; gap: 14px; }
.ww-peek { background: #fff; border: 1px solid rgba(13,42,71,0.12); border-radius: 14px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(13,42,71,0.18); max-width: 260px; position: relative; }
.ww-peek::after { content: ''; position: absolute; bottom: 20px; right: -7px; width: 14px; height: 14px; background: #fff; border-right: 1px solid rgba(13,42,71,0.12); border-bottom: 1px solid rgba(13,42,71,0.12); transform: rotate(-45deg); }
.ww-peek .tag { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--steel); text-transform: uppercase; margin-bottom: 7px; }
.ww-peek .tag .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(21,128,61,0.2); }
.ww-peek p { font-size: 13.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.ww-peek .x { position: absolute; top: 6px; right: 8px; border: none; background: none; color: var(--faint); font-size: 16px; cursor: pointer; line-height: 1; }
.ww-fab { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 14px 32px rgba(13,42,71,0.32), 0 0 0 4px rgba(255,255,255,0.95); transition: transform .15s; }
.ww-fab:hover { transform: scale(1.05); }
.ww-fab svg { width: 28px; height: 28px; }
.ww-fab .dot { position: absolute; top: 7px; right: 7px; width: 13px; height: 13px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; }

.ww-panel-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 70; width: 410px; max-width: calc(100vw - 32px); height: 660px; max-height: calc(100vh - 48px); display: none; }
.ww-panel-wrap.open { display: block; animation: ww-pop .22s ease both; }
@keyframes ww-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ww-panel { width: 100%; height: 100%; border: none; border-radius: 18px; box-shadow: 0 30px 80px rgba(13,42,71,0.35); background: #fff; display: block; }
.ww-panel-close { position: absolute; top: -12px; right: -12px; z-index: 72; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 6px 16px rgba(13,42,71,0.3); }
.ww-panel-close:hover { background: var(--navy-2); }

/* --- responsive --- */
@media (max-width: 880px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { padding: 44px 22px 64px; }
  section.band { padding: 52px 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid3 { grid-template-columns: 1fr; }
  .codes { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 36px 22px 24px; }
}
@media (max-width: 480px) {
  nav { gap: 10px; }
  .logo-wrap { gap: 8px; }
  .logo-wrap img { height: 44px; }
  .nav-cta { padding: 10px 14px; font-size: 11.5px; letter-spacing: 0.5px; }
  .ww-panel-wrap { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100dvh; bottom: 0; right: 0; }
  .ww-panel { border-radius: 0; }
  /* keep clear of the widget's own ↻ restart button in the iframe header (top-right) */
  .ww-panel-close { top: 21px; right: 64px; }
  .ww-launch { bottom: 18px; right: 18px; }
  .ww-peek { display: none; }
}
