:root {
  color-scheme: dark;
  --bg: #0d1020;
  --bg-2: #141832;
  --text: #f7f7fb;
  --muted: #b9bfd6;
  --line: rgba(255,255,255,.12);
  --yellow: #ffd84d;
  --yellow-2: #ffb703;
  --blue: #8bd3ff;
  --green: #48f0c2;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,216,77,.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(139,211,255,.18), transparent 30rem),
    linear-gradient(135deg, var(--bg), #090b15 70%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.hero {
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 10vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.07em;
}

h1 span {
  color: var(--yellow);
  text-shadow: 0 0 34px rgba(255,216,77,.35);
}

.intro {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,.06);
}

.button.primary {
  color: #1d1700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card, .panel, .case-study {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20,24,50,.72);
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
}

.icon { font-size: 2rem; }
h2 {
  margin: 16px 0 10px;
  font-size: 1.25rem;
}
p, li {
  color: var(--muted);
  line-height: 1.65;
}

.case-study {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(24px, 5vw, 42px);
}

.case-study::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(72,240,194,.18), transparent 65%);
  pointer-events: none;
}

.case-heading {
  position: relative;
  max-width: 820px;
}

.case-heading h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.case-heading p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.04rem;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.before-after figure {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(7,10,24,.68);
}

.before-after img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #050814;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
}

.before-after figcaption {
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.badge {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #05251d;
  background: var(--green);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge.after {
  color: #1d1700;
  background: var(--yellow);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.impact-grid article {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.impact-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.impact-grid p {
  margin: 0;
  font-size: .94rem;
}

.panel {
  margin-top: 18px;
  padding: 28px;
}

.panel h2 { margin-top: 0; }
.panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding-left: 20px;
  margin-bottom: 0;
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: #8d94ad;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { padding-top: 28px; }
  .hero { border-radius: 24px; }
  .card-grid, .panel ul, .before-after, .impact-grid { grid-template-columns: 1fr; }
}

.screenshot-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.screenshot-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 18px;
}

.zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(5,8,20,.76);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.screenshot-button:hover .zoom-hint,
.screenshot-button:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}

.lightbox.is-open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3,5,14,.86);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: 92vh;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(13,16,32,.94);
  box-shadow: var(--shadow);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  border-radius: 16px;
  background: #050814;
  border: 1px solid rgba(255,255,255,.12);
}

.lightbox-figure figcaption {
  padding: 12px 48px 2px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  background: rgba(5,8,20,.78);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: scale(1.04);
  background: rgba(255,216,77,.2);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 999px;
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }
.lightbox-nav.prev { left: 26px; }
.lightbox-nav.next { right: 26px; }

@media (max-width: 760px) {
  .zoom-hint {
    opacity: 1;
    transform: none;
  }

  .lightbox-dialog { padding: 10px; }
  .lightbox-figure figcaption { padding-inline: 8px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-nav {
    top: auto;
    bottom: 58px;
    width: 44px;
    height: 44px;
    font-size: 2.2rem;
    transform: none;
  }
  .lightbox-nav:hover { transform: scale(1.04); }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
}
