:root {
  color-scheme: dark;
  --ink: #edf4fb;
  --muted: #9cadbd;
  --paper: #0b0f15;
  --paper-strong: #111821;
  --panel: #141b25;
  --panel-soft: #101720;
  --line: #314054;
  --line-strong: #52677f;
  --moss: #64c47a;
  --water: #79b8f2;
  --road: #c9976d;
  --accent: #2389d7;
  --accent-dark: #1766a6;
  --accent-soft: rgba(35, 137, 215, 0.18);
  --success: #54b978;
  --success-dark: #2d7b4b;
  --warning: #f0a24d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 137, 215, 0.16), transparent 34%),
    linear-gradient(180deg, #0b0f15 0%, #101720 46%, #0b0f15 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.is-lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px 48px;
  border-bottom: 1px solid rgba(121, 184, 242, 0.16);
  background: rgba(14, 19, 27, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(121, 184, 242, 0.28);
  border-radius: 10px;
  background: #14202b;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #bdcde0;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(86svh - 72px);
  overflow: hidden;
  padding: 88px 48px 72px;
  color: #fff;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: 56% top;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.96) 0%, rgba(10, 16, 23, 0.82) 43%, rgba(10, 16, 23, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 12, 17, 0.22), rgba(8, 12, 17, 0.84));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--warning);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 82px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  border-color: rgba(121, 184, 242, 0.7);
  background: linear-gradient(180deg, #2389d7 0%, #1766a6 100%);
  box-shadow: 0 10px 24px rgba(35, 137, 215, 0.26);
}

.button.primary:hover {
  border-color: rgba(121, 184, 242, 0.95);
  background: linear-gradient(180deg, #2d9ae8 0%, #1b71b6 100%);
}

.button.secondary {
  color: #fff;
  border-color: rgba(121, 184, 242, 0.44);
  background: rgba(18, 27, 38, 0.72);
}

.download-panel .button.primary,
.notify-form .button.primary {
  border-color: rgba(100, 196, 122, 0.78);
  background: linear-gradient(180deg, #3fae68 0%, #2d7b4b 100%);
  box-shadow: 0 10px 24px rgba(84, 185, 120, 0.22);
}

.download-panel .button.primary:hover,
.notify-form .button.primary:hover {
  border-color: rgba(139, 226, 159, 0.94);
  background: linear-gradient(180deg, #50c77a 0%, #348d57 100%);
}

.button.full {
  width: 100%;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #111821;
  color: var(--ink);
}

.signal-strip div {
  padding: 22px 48px;
  border-right: 1px solid rgba(121, 184, 242, 0.14);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: 18px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 48px;
}

.intro,
.download,
.notify {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
}

.intro-copy {
  color: var(--muted);
  font-size: 19px;
}

.intro-copy p:last-child,
.download-copy p:last-child,
.notify-copy p:last-child {
  margin-bottom: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.feature-band article,
.project-list article,
.download-panel,
.notify-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.96) 0%, rgba(15, 22, 31, 0.96) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.feature-band article {
  padding: 26px;
}

.feature-band article:nth-child(1) {
  border-top: 5px solid var(--moss);
}

.feature-band article:nth-child(2) {
  border-top: 5px solid var(--water);
}

.feature-band article:nth-child(3) {
  border-top: 5px solid var(--road);
}

.feature-band article:nth-child(4) {
  border-top: 5px solid var(--warning);
}

.feature-band article:nth-child(5) {
  border-top: 5px solid var(--water);
}

.feature-band article:nth-child(6) {
  border-top: 5px solid var(--moss);
}

.feature-band p,
.overview-grid p,
.project-list p,
.download p,
.download-panel p,
.notify p {
  color: var(--muted);
}

.feature-overview {
  padding-top: 18px;
}

.use-cases {
  padding-top: 18px;
}

.use-case-list,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-list article,
.faq-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 27, 37, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.use-case-list article {
  border-left: 4px solid var(--moss);
}

.use-case-list article:nth-child(2n) {
  border-left-color: var(--water);
}

.use-case-list article:nth-child(3n) {
  border-left-color: var(--road);
}

.use-case-list article:nth-child(4n) {
  border-left-color: var(--warning);
}

.use-case-list h3,
.faq-list h3 {
  font-size: 18px;
}

.use-case-list p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq {
  padding-top: 70px;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list article {
  background: rgba(13, 20, 29, 0.72);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.overview-grid article {
  min-height: 100%;
  padding: 22px;
  border-left: 4px solid var(--accent);
  background: rgba(20, 27, 37, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.overview-grid article:nth-child(2) {
  border-left-color: var(--moss);
}

.overview-grid article:nth-child(3) {
  border-left-color: var(--water);
}

.overview-grid article:nth-child(4) {
  border-left-color: var(--road);
}

.overview-grid article:nth-child(5) {
  border-left-color: var(--warning);
}

.overview-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.overview-grid p {
  margin-bottom: 0;
  font-size: 15px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.gallery {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.gallery .section-heading {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 48px;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.gallery-stage img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% top;
}

.gallery-open:hover img {
  filter: brightness(1.08);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 54px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(121, 184, 242, 0.46);
  border-radius: 6px;
  color: #fff;
  background: rgba(14, 22, 31, 0.76);
  cursor: pointer;
  font: inherit;
}

.gallery-arrow:hover {
  background: rgba(35, 137, 215, 0.82);
}

.gallery-arrow span {
  margin-top: -4px;
  font-size: 42px;
  line-height: 1;
}

.gallery-arrow.previous {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

.gallery-rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.gallery-thumb {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(20, 27, 37, 0.82);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--accent);
  background: rgba(23, 37, 52, 0.96);
}

.gallery-thumb.is-active {
  box-shadow: inset 4px 0 0 var(--accent);
}

.gallery-thumb img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
  object-position: 50% top;
}

.gallery-thumb span {
  font-size: 14px;
  font-weight: 900;
}

figcaption {
  padding: 13px 16px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.88);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1540px, 96vw);
  max-height: 92vh;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(121, 184, 242, 0.28);
  border-radius: 8px;
  background: #0b0f15;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.gallery-lightbox-panel img {
  width: 100%;
  max-height: calc(92vh - 50px);
  object-fit: contain;
  background: #05080c;
}

.gallery-lightbox-panel figcaption {
  border-top: 1px solid rgba(121, 184, 242, 0.16);
  background: #101720;
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(121, 184, 242, 0.45);
  border-radius: 6px;
  color: #fff;
  background: rgba(14, 22, 31, 0.82);
  cursor: pointer;
  font: inherit;
}

.gallery-lightbox-close:hover {
  background: rgba(35, 137, 215, 0.86);
}

.gallery-lightbox-close span {
  margin-top: -2px;
  font-size: 30px;
  line-height: 1;
}

.download {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 20, 0.36);
}

.download-panel,
.notify-form {
  padding: 26px;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--water);
  font-weight: 900;
  text-decoration: none;
}

.notify {
  padding-top: 70px;
}

.notify-form {
  display: grid;
  gap: 14px;
}

.notify-form label:not(.consent) {
  font-size: 14px;
  font-weight: 900;
}

.notify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.notify-form input[type="email"],
.notify-form input[type="text"],
.notify-form input[type="number"],
.notify-form select,
.notify-form textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #0f1620;
  font: inherit;
}

.notify-form input[type="email"],
.notify-form input[type="text"],
.notify-form input[type="number"],
.notify-form select {
  min-height: 48px;
}

.notify-form textarea {
  min-height: 220px;
  padding-top: 12px;
  resize: vertical;
}

.notify-form input[type="email"]:focus,
.notify-form input[type="text"]:focus,
.notify-form input[type="number"]:focus,
.notify-form select:focus,
.notify-form textarea:focus {
  outline: 3px solid rgba(35, 137, 215, 0.24);
  border-color: var(--water);
}

.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--success);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.projects {
  padding-top: 70px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-list article {
  padding: 24px;
}

.project-list a {
  color: inherit;
  text-decoration-color: rgba(121, 184, 242, 0.52);
  text-underline-offset: 4px;
}

.project-list a:hover {
  color: var(--accent);
}

.project-list span {
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 48px;
  color: #fff;
  background: #080c12;
  border-top: 1px solid rgba(121, 184, 242, 0.16);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer a {
  color: #fff;
}

.notify-result {
  max-width: 820px;
}

.notify-result h1 {
  color: var(--ink);
  font-size: 52px;
}

.notify-result .lead {
  color: var(--muted);
}

.admin-page {
  max-width: 1280px;
}

.admin-page h1 {
  color: var(--ink);
  font-size: 52px;
}

.admin-page h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.admin-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 27, 37, 0.9);
  box-shadow: var(--shadow);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-summary div {
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: rgba(12, 18, 26, 0.74);
}

.admin-summary div:nth-child(2n) {
  border-left-color: var(--moss);
}

.admin-summary div:nth-child(3n) {
  border-left-color: var(--warning);
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.admin-filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  margin-top: 20px;
}

.admin-send-form {
  max-width: 820px;
  margin-top: 22px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.admin-table-heading,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-table-heading p,
.admin-pagination span {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(121, 184, 242, 0.16);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(121, 184, 242, 0.14);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #cfe0f3;
  background: rgba(9, 14, 20, 0.86);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--muted);
}

.admin-table a {
  color: var(--water);
  font-weight: 900;
  text-decoration: none;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.status-confirmed {
  border-color: rgba(100, 196, 122, 0.72);
  background: rgba(84, 185, 120, 0.15);
}

.status-pending {
  border-color: rgba(240, 162, 77, 0.7);
  background: rgba(240, 162, 77, 0.14);
}

.status-unsubscribed {
  border-color: rgba(156, 173, 189, 0.5);
  background: rgba(156, 173, 189, 0.1);
}

.admin-pagination {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 16px 24px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 92px 24px 66px;
  }

  .hero-shade {
    background: rgba(13, 20, 24, 0.68);
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 20px;
  }

  .signal-strip,
  .intro,
  .download,
  .notify,
  .feature-band,
  .use-case-list,
  .faq-list,
  .overview-grid,
  .gallery-viewer,
  .project-list,
  .admin-summary,
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section {
    padding: 66px 24px;
    scroll-margin-top: 20px;
  }

  .gallery .section-heading,
  .gallery-viewer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .gallery-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gallery-thumb {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .gallery-stage img {
    min-height: 290px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 8px 14px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .notify-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }
}
