:root {
  color-scheme: dark;
  --bg: #080910;
  --surface: rgba(17, 20, 31, 0.78);
  --surface-strong: #11141f;
  --line: rgba(164, 176, 207, 0.18);
  --text: #edf2ff;
  --muted: #aeb8cf;
  --soft: #d7dded;
  --cyan: #67e8f9;
  --rose: #ff6aa9;
  --amber: #f7c66b;
  --green: #83f3c7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(103, 232, 249, 0.13), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(255, 106, 169, 0.12), transparent 24rem),
    linear-gradient(180deg, #080910 0%, #0d1018 48%, #080910 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(8, 9, 16, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.62);
  background: #030509;
  border-radius: 8px;
  box-shadow:
    0 0 18px rgba(103, 232, 249, 0.16),
    0 0 28px rgba(255, 106, 169, 0.12);
}

.brand-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.2), rgba(255, 106, 169, 0.18));
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.brand-text {
  display: grid;
  gap: 1px;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.04;
}

.brand-text span:first-child {
  color: var(--soft);
  font-size: clamp(0.68rem, 1.05vw, 0.78rem);
  font-weight: 700;
}

.brand-text span:last-child {
  color: var(--text);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 6vw, 88px);
  min-height: 82vh;
  padding: 132px clamp(20px, 6vw, 88px) 56px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.04;
}

h1 {
  max-width: 852px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hero-content > p:last-of-type,
.section-heading > p,
.collection-grid p {
  color: var(--muted);
  font-size: 1.03rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button,
.text-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  border: 1px solid rgba(103, 232, 249, 0.72);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.96), rgba(131, 243, 199, 0.86));
  color: #071018;
}

.button.secondary {
  border: 1px solid rgba(255, 106, 169, 0.42);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.hero-panel,
.toolbar,
.content-card,
.collection-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 28px;
  border-radius: 8px;
}

.hero-panel > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel > div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--rose);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-panel p {
  margin: 0;
  color: var(--soft);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-plane {
  position: absolute;
  right: -8vw;
  bottom: -16vh;
  width: 74vw;
  height: 48vh;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 169, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to top, black, transparent 88%);
  transform: perspective(560px) rotateX(62deg) rotateZ(-3deg);
  transform-origin: bottom right;
}

.signal-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.9), transparent);
  opacity: 0.62;
}

.signal-line-one {
  top: 30%;
  right: 0;
  width: 44vw;
}

.signal-line-two {
  top: 48%;
  right: 18vw;
  width: 30vw;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 169, 0.75), transparent);
}

.section {
  padding: 72px clamp(20px, 6vw, 88px);
  scroll-margin-top: 96px;
}

.library {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.8fr));
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 8, 14, 0.72);
  color: var(--text);
  font: inherit;
  outline: 0;
}

input:focus,
select:focus {
  border-color: rgba(103, 232, 249, 0.76);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-button,
.text-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.tag-button {
  min-height: 36px;
  padding: 0 12px;
}

.tag-button.is-active {
  border-color: rgba(103, 232, 249, 0.72);
  color: var(--cyan);
}

.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  color: var(--muted);
}

.library-meta p {
  margin: 0;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
}

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

.content-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
}

.content-media {
  display: grid;
  width: 100%;
  min-height: 196px;
  place-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.11), rgba(255, 106, 169, 0.08)),
    #070a12;
  color: inherit;
  font: inherit;
  text-align: center;
}

.content-media img {
  display: block;
  width: 100%;
  height: 196px;
  object-fit: cover;
}

.format-icon {
  color: var(--cyan);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.content-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.content-kicker,
.content-meta {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-body h3 {
  margin-top: 12px;
}

.content-title-link {
  color: inherit;
  text-decoration-color: rgba(34, 211, 238, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.content-title-link:hover,
.content-title-link:focus-visible {
  color: var(--cyan);
}

.content-body p {
  color: var(--muted);
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 20px;
}

.content-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.content-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.content-link,
.content-media {
  cursor: pointer;
}

.content-link.is-disabled {
  color: var(--muted);
  cursor: default;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.collections {
  background: rgba(255, 255, 255, 0.018);
}

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

.collection-card {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.collection-card:hover,
.collection-card:focus-visible {
  border-color: rgba(103, 232, 249, 0.62);
  background: rgba(103, 232, 249, 0.055);
  transform: translateY(-2px);
}

.collection-card {
  border-radius: 8px;
  padding: 26px;
}

.collection-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--rose);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 800;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 8px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 0 16px rgba(103, 232, 249, 0.08),
    0 0 22px rgba(255, 106, 169, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-tile:hover,
.footer-tile:focus-visible {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.07);
  transform: translateY(-2px);
}

.footer-tile img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.social-icon {
  display: block;
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.chamber-member {
  background: rgba(255, 255, 255, 0.92);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.resource-viewer[hidden] {
  display: none;
}

.resource-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.resource-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(14px);
}

.resource-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  max-height: min(92vh, 960px);
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 8px;
  background: rgba(12, 15, 24, 0.96);
  box-shadow: var(--shadow);
}

.viewer-header,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.viewer-header {
  border-bottom: 1px solid var(--line);
}

.viewer-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.viewer-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.viewer-body {
  display: grid;
  min-height: 280px;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 12px;
  background: #05070d;
}

.viewer-body img,
.viewer-body video {
  display: block;
  max-width: 100%;
  max-height: min(48vh, 560px);
  border-radius: 8px;
  object-fit: contain;
}

.viewer-zoomable {
  cursor: zoom-in;
}

.viewer-zoomable.is-zoomed {
  max-width: none;
  max-height: none;
  width: min(1200px, 150vw);
  cursor: zoom-out;
}

.viewer-body iframe {
  width: 100%;
  height: min(66vh, 720px);
  border: 0;
  border-radius: 8px;
  background: white;
}

.blog-viewer {
  width: min(820px, 100%);
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-viewer h2,
.blog-viewer h3,
.blog-viewer h4 {
  margin-top: 1.35em;
}

.blog-viewer h2:first-child {
  margin-top: 0;
}

.blog-viewer h2 {
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.blog-viewer h3 {
  color: var(--cyan);
  font-size: clamp(1.22rem, 2vw, 1.65rem);
}

.blog-viewer h4 {
  color: var(--amber);
  font-size: 1rem;
  text-transform: uppercase;
}

.blog-viewer p,
.blog-viewer li {
  color: var(--soft);
}

.blog-viewer ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.blog-viewer code {
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(103, 232, 249, 0.08);
  color: var(--green);
  font-size: 0.92em;
}

.phishing-quiz {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.quiz-heading p,
.quiz-poll p,
.sample-email p {
  margin: 0;
}

.sample-email,
.quiz-poll,
.quiz-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 8, 14, 0.64);
}

.sample-email {
  overflow: hidden;
}

.sample-email-header {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.sample-email-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  text-align: center;
}

.sample-logo {
  color: var(--rose);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sample-email-body h4 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-transform: none;
}

.sample-email-body code {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  text-align: left;
}

.quiz-poll,
.quiz-question {
  padding: 18px;
}

.quiz-poll h4,
.quiz-question legend {
  margin: 0 0 14px;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(103, 232, 249, 0.42);
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.quiz-questions {
  display: grid;
  gap: 14px;
}

.quiz-question {
  display: grid;
  gap: 10px;
}

.quiz-question label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--soft);
  font-weight: 600;
}

.quiz-question input {
  width: auto;
  height: auto;
  margin-top: 0.35em;
}

.quiz-feedback {
  min-height: 1.4em;
  color: var(--muted);
  font-weight: 800;
}

.quiz-feedback.is-correct {
  color: var(--green);
}

.quiz-feedback.is-incorrect {
  color: var(--amber);
}

.viewer-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
}

.viewer-footer p,
#viewer-summary {
  max-width: 840px;
}

.viewer-hint {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

#viewer-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
  white-space: pre-line;
}

.guidance-list {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.guidance-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.guidance-item span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 106, 169, 0.22);
}

.guidance-item p,
.guidance-warning {
  margin: 0;
}

.guidance-warning {
  color: var(--rose);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .content-grid,
  .collection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding-inline: 20px;
  }

  .brand {
    gap: 10px;
  }

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

  .brand-text span:first-child {
    max-width: 156px;
    font-size: 0.62rem;
    line-height: 1.12;
  }

  .brand-text span:last-child {
    font-size: 0.95rem;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(9, 11, 18, 0.96);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .library-meta,
  .viewer-header,
  .viewer-footer,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-socials {
    align-self: flex-start;
  }

  .footer-tile {
    width: 72px;
    height: 72px;
  }

  .footer-tile img {
    width: 54px;
    height: 54px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .toolbar,
  .content-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 54px;
    scroll-margin-top: 108px;
  }
}
