:root {
  --pw-bg: #07111f;
  --pw-bg-soft: #0a1626;
  --pw-panel: #0d1b2d;
  --pw-panel-2: #101f33;
  --pw-line: rgba(148, 163, 184, .17);
  --pw-line-strong: rgba(56, 189, 248, .34);
  --pw-text: #f8fafc;
  --pw-muted: #aebdd0;
  --pw-blue: #38bdf8;
  --pw-blue-deep: #0ea5e9;
  --pw-green: #34d399;
  --pw-red: #fb7185;
  --pw-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --pw-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: absolute;
  top: 98px;
  left: 0;
  right: 0;
  height: 680px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(14,165,233,.13), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(37,99,235,.10), transparent 27%);
  z-index: 0;
}
.pw-page { position: relative; z-index: 1; overflow: hidden; }
.pw-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.pw-section { padding: 82px 0; }
.pw-section--compact { padding: 28px 0 74px; }
.pw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #7dd3fc;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pw-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--pw-blue); }
.pw-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.pw-section-head .pw-kicker { justify-content: center; }
.pw-section-head h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.pw-section-head p { margin: 0; color: var(--pw-muted); font-size: 17px; line-height: 1.7; }

/* Hero */
.pw-hero { padding: 82px 0 64px; }
.pw-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr); gap: 58px; align-items: center; }
.pw-hero h1 {
  max-width: 650px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -.055em;
}
.pw-gradient-text { color: #7dd3fc; }
.pw-hero-copy { max-width: 650px; margin: 0 0 28px; color: #c1cede; font-size: 18px; line-height: 1.72; }
.pw-value-list { display: grid; gap: 11px; margin: 0 0 30px; padding: 0; list-style: none; }
.pw-value-list li { display: flex; gap: 10px; align-items: flex-start; color: #e6edf7; font-size: 14px; line-height: 1.5; }
.pw-check { display: inline-grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; margin-top: 1px; border-radius: 50%; background: rgba(52,211,153,.13); color: var(--pw-green); font-size: 12px; font-weight: 900; }

.pw-scan-card {
  max-width: 650px;
  padding: 18px;
  border: 1px solid var(--pw-line-strong);
  border-radius: 15px;
  background: rgba(9,24,42,.86);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.pw-scan-label { display: block; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 800; }
.pw-scan-row { display: flex; gap: 10px; }
.pw-domain-input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #334b66;
  border-radius: 9px;
  outline: 0;
  background: #060e1a;
  color: #fff;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.pw-domain-input:focus { border-color: var(--pw-blue); box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
.pw-primary-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 12px 26px rgba(14,165,233,.22);
  color: #04111d;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.pw-primary-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(14,165,233,.32); filter: brightness(1.05); }
.pw-scan-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 11px; color: #91a4ba; font-size: 12px; }
.pw-scan-note span::before { content: "✓"; margin-right: 5px; color: var(--pw-green); font-weight: 900; }
.pw-secondary-link { display: inline-flex; margin-top: 16px; color: #7dd3fc; font-size: 13px; font-weight: 750; text-decoration: none; }
.pw-secondary-link:hover { color: #fff; }

.pw-product-frame {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(125,211,252,.28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(56,189,248,.16), rgba(15,23,42,.35));
  box-shadow: var(--pw-shadow);
}
.pw-product-frame::after {
  content: "";
  position: absolute;
  inset: auto 8% -34px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14,165,233,.18);
  filter: blur(30px);
  z-index: -1;
}
.pw-window { overflow: hidden; border: 1px solid rgba(148,163,184,.16); border-radius: 13px; background: #050d18; }
.pw-window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--pw-line); background: #0c192a; }
.pw-window-dot { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.pw-window-title { margin-left: 7px; color: #9fb0c4; font-size: 11px; font-weight: 700; }
.pw-window img { display: block; width: 100%; height: auto; }
.pw-proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--pw-line); background: var(--pw-line); }
.pw-proof-item { padding: 16px 11px; background: #091525; text-align: center; }
.pw-proof-item strong { display: block; color: #fff; font-size: 15px; }
.pw-proof-item span { display: block; margin-top: 3px; color: #8193aa; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* Value cards */
.pw-outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pw-outcome {
  position: relative;
  min-height: 184px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(16,31,51,.94), rgba(9,21,37,.96));
  transition: transform .2s, border-color .2s;
}
.pw-outcome:hover { transform: translateY(-5px); border-color: rgba(56,189,248,.42); }
.pw-outcome-number { margin-bottom: 26px; color: rgba(125,211,252,.65); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.pw-outcome h3 { margin: 0 0 9px; color: #fff; font-size: 18px; }
.pw-outcome p { margin: 0; color: var(--pw-muted); font-size: 14px; line-height: 1.65; }

/* Sales contrast */
.pw-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pw-contrast-card { padding: 31px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: #0a1525; }
.pw-contrast-card--old { border-color: rgba(251,113,133,.25); }
.pw-contrast-card--new { border-color: rgba(56,189,248,.38); background: linear-gradient(145deg, rgba(11,31,53,.98), rgba(8,21,37,.98)); }
.pw-contrast-label { display: inline-flex; margin-bottom: 20px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.pw-contrast-card--old .pw-contrast-label { background: rgba(251,113,133,.10); color: #fda4af; }
.pw-contrast-card--new .pw-contrast-label { background: rgba(56,189,248,.12); color: #7dd3fc; }
.pw-contrast-card h3 { margin: 0 0 18px; color: #fff; font-size: 23px; }
.pw-contrast-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pw-contrast-list li { display: flex; gap: 11px; color: #bdc9d8; font-size: 14px; line-height: 1.6; }
.pw-contrast-list b { color: inherit; }
.pw-x, .pw-ok { flex: 0 0 20px; font-weight: 900; }
.pw-x { color: var(--pw-red); }
.pw-ok { color: var(--pw-green); }

/* Gallery */
.pw-tour-shell { padding: 22px; border: 1px solid var(--pw-line); border-radius: 20px; background: rgba(10,22,38,.96); box-shadow: var(--pw-shadow); }
.pw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.pw-tab-btn { padding: 9px 14px; border: 1px solid #2a4361; border-radius: 999px; background: #0e1e33; color: #cbd5e1; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.pw-tab-btn:hover { border-color: #4a739e; color: #fff; }
.pw-tab-btn.is-active { border-color: var(--pw-blue) !important; background: var(--pw-blue) !important; color: #05111f !important; }
#perimeterGallery { position: relative; display: block; width: 100%; height: 590px; overflow: hidden; border: 1px solid #1e3a5f; border-radius: 14px; background: #050d18; isolation: isolate; }
#perimeterGallery .pw-gallery-track { position: relative; width: 100%; height: 100%; overflow: hidden; }
#perimeterGallery .pw-gallery-slide { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s ease, visibility .32s ease; }
#perimeterGallery .pw-gallery-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
#perimeterGallery .pw-gallery-slide img { display: block; width: 100%; height: 100%; padding: 15px 15px 62px; object-fit: contain; object-position: center; background: #050d18; }
#perimeterGallery .pw-gallery-caption { position: absolute; z-index: 4; left: 18px; bottom: 15px; max-width: calc(100% - 170px); padding: 8px 14px; border: 1px solid #2b5885; border-radius: 999px; background: rgba(8,21,38,.94); color: #eef6ff; font-size: 12px; font-weight: 750; }
#perimeterGallery .pw-gallery-button { position: absolute; z-index: 6; top: 50%; display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0 0 3px; border: 1px solid #48627e; border-radius: 50%; background: rgba(8,21,38,.92); color: #fff; font: 800 25px/1 Arial,sans-serif; cursor: pointer; transform: translateY(-50%); }
#perimeterGallery .pw-gallery-button:hover { border-color: var(--pw-blue); background: #0f2947; }
#perimeterGallery .pw-gallery-prev { left: 14px; }
#perimeterGallery .pw-gallery-next { right: 14px; }
#perimeterGallery .pw-gallery-dots { position: absolute; z-index: 6; right: 18px; bottom: 21px; display: flex; gap: 8px; }
#perimeterGallery .pw-gallery-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #94a3b8; border-radius: 50%; background: #081526; cursor: pointer; }
#perimeterGallery .pw-gallery-dot.is-active { border-color: var(--pw-blue); background: var(--pw-blue); }
#perimeterGallery .pw-gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Workflow and personas */
.pw-workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pw-workflow-card { padding: 28px; border: 1px solid var(--pw-line); border-radius: 16px; background: linear-gradient(160deg, #0e1d30, #091525); }
.pw-step { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pw-step span:first-child { color: #7dd3fc; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pw-step span:last-child { color: rgba(125,211,252,.25); font-size: 28px; font-weight: 850; }
.pw-workflow-card h3 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.pw-workflow-card p { margin: 0 0 17px; color: #b6c4d5; font-size: 14px; line-height: 1.65; }
.pw-mini-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #8fa2b8; font-size: 13px; }
.pw-mini-list li::before { content: "•"; margin-right: 8px; color: var(--pw-blue); }

.pw-personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pw-persona { padding: 26px; border: 1px solid var(--pw-line); border-radius: 15px; background: #0a1728; }
.pw-persona-tag { display: inline-flex; margin-bottom: 17px; padding: 5px 9px; border-radius: 6px; background: rgba(56,189,248,.10); color: #7dd3fc; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pw-persona h3 { margin: 0 0 9px; color: #fff; font-size: 19px; }
.pw-persona p { margin: 0; color: var(--pw-muted); font-size: 14px; line-height: 1.65; }

/* CTA */
.pw-cta { position: relative; overflow: hidden; padding: 60px 42px; border: 1px solid rgba(56,189,248,.38); border-radius: 24px; background: linear-gradient(135deg, #0c2340, #0a1729 60%, #0c1d32); text-align: center; box-shadow: var(--pw-shadow); }
.pw-cta::before { content: ""; position: absolute; width: 360px; height: 360px; top: -220px; left: 50%; border-radius: 50%; background: rgba(56,189,248,.17); filter: blur(55px); transform: translateX(-50%); }
.pw-cta > * { position: relative; }
.pw-cta h2 { max-width: 760px; margin: 0 auto 13px; color: #fff; font-size: clamp(31px, 4vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.pw-cta p { max-width: 650px; margin: 0 auto 25px; color: #bdcada; font-size: 16px; line-height: 1.65; }
.pw-cta-form { max-width: 610px; margin: 0 auto; }
.pw-cta-links { display: flex; justify-content: center; gap: 24px; margin-top: 17px; }
.pw-cta-links a { color: #7dd3fc; font-size: 13px; font-weight: 750; text-decoration: none; }

@media (max-width: 1040px) {
  .pw-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .pw-hero-copy, .pw-scan-card { max-width: 760px; }
  .pw-outcomes { grid-template-columns: repeat(2, 1fr); }
  #perimeterGallery { height: 520px; }
}
@media (max-width: 760px) {
  .pw-container { width: min(100% - 28px, 1180px); }
  .pw-section { padding: 62px 0; }
  .pw-hero { padding: 58px 0 42px; }
  .pw-hero h1 { font-size: clamp(39px, 12vw, 55px); }
  .pw-hero-copy { font-size: 16px; }
  .pw-scan-row { flex-direction: column; }
  .pw-primary-btn { width: 100%; }
  .pw-outcomes, .pw-contrast, .pw-workflow, .pw-personas { grid-template-columns: 1fr; }
  .pw-outcome { min-height: auto; }
  .pw-outcome-number { margin-bottom: 16px; }
  .pw-tour-shell { padding: 12px; }
  #perimeterGallery { height: 400px; }
  #perimeterGallery .pw-gallery-caption { right: 14px; left: 14px; max-width: none; padding-right: 90px; border-radius: 9px; white-space: normal; }
  .pw-cta { padding: 44px 20px; }
}
@media (max-width: 480px) {
  .pw-proof-strip { grid-template-columns: 1fr; }
  .pw-proof-item { padding: 10px; }
  #perimeterGallery { height: 330px; }
  #perimeterGallery .pw-gallery-slide img { padding: 8px 8px 82px; }
  #perimeterGallery .pw-gallery-caption { min-height: 58px; padding: 8px 80px 8px 10px; font-size: 11px; }
  #perimeterGallery .pw-gallery-dots { right: 25px; bottom: 25px; }
  .pw-cta-links { flex-direction: column; gap: 10px; }
}
