/* Nextgencybersec — soft neutral, large type, generous space */
:root {
  --bg: #f3f2ee;
  --bg-deep: #e7e5df;
  --surface: #faf9f6;
  --ink: #1c2421;
  --ink-soft: #4a524e;
  --muted: #6b736e;
  --line: #d2cfc6;
  --accent: #3d6456;
  --accent-hover: #2f4f44;
  --accent-soft: #d5e3dc;
  --warn: #8a4b3a;
  --ok: #2f6b4f;
  --header-h: 4.25rem;
  --radius: 2px;
  --shadow-soft: 0 18px 40px rgba(28, 36, 33, 0.06);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --measure: 68ch;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(61, 100, 86, 0.09), transparent 55%),
    radial-gradient(900px 500px at 100% 8%, rgba(28, 36, 33, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #efeee9 48%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  background: #f3e4df;
  color: var(--warn);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e2c4ba;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 242, 238, 0.86);
  border-bottom: 1px solid rgba(210, 207, 198, 0.7);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent) 0%, #1e2a28 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--ink);
  color: var(--surface) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-muted {
  background: rgba(231, 229, 223, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42rem;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--surface);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-soft:hover {
  background: #c5d8ce;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed brand composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--surface);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 26, 0.35) 0%, rgba(20, 28, 26, 0.72) 55%, rgba(20, 28, 26, 0.9) 100%),
    linear-gradient(90deg, rgba(20, 28, 26, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) var(--space) clamp(3rem, 7vw, 5rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: riseIn 0.9s ease both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  max-width: 30rem;
  color: rgba(250, 249, 246, 0.88);
  margin: 0;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero .btn-row {
  animation: riseIn 0.9s ease 0.22s both;
}

.hero .btn-primary {
  background: var(--surface);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--accent-soft);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.stack > * + * {
  margin-top: 1rem;
}

/* Feature / course listing — interaction containers, not decorative cards */
.item-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.item-row:hover {
  background: rgba(255, 255, 255, 0.35);
}

.item-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.item-row h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.item-row p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  color: var(--ink-soft);
  margin: 0;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Quotes / reviews */
.quote-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.quote-block:last-child {
  border-bottom: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  max-width: 48rem;
  font-weight: 500;
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.rating {
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-tier {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.7);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-tier.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(213, 227, 220, 0.55), rgba(250, 249, 246, 0.85));
}

.price-tier h3 {
  font-size: 1.4rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-tier li + li {
  margin-top: 0.45rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--warn);
}

.field-error {
  min-height: 1.2em;
  color: var(--warn);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: #dfece5;
  color: var(--ok);
}

.form-status.is-error {
  background: #f3e4df;
  color: var(--warn);
}

.contact-aside {
  padding: 1.5rem 0;
}

.contact-aside h2 {
  font-size: 1.5rem;
}

.contact-aside p,
.contact-aside a {
  color: var(--ink-soft);
}

/* Blog / article */
.article-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 18ch;
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.article-cover {
  margin: 1.5rem 0 2.5rem;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.25rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.25rem;
  max-width: var(--measure);
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(231, 229, 223, 0.6);
  font-weight: 600;
}

.blog-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.blog-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-entry h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.blog-entry p {
  margin: 0;
  color: var(--ink-soft);
}

.page-intro {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  max-width: 14ch;
}

.split-media {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.module-list {
  counter-reset: module;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.module-list li {
  counter-increment: module;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.module-list li::before {
  content: counter(module, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.cta-band {
  background: var(--ink);
  color: var(--surface);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band h2 {
  color: var(--surface);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
}

.cta-band p {
  color: rgba(250, 249, 246, 0.78);
}

.cta-band .btn-primary {
  background: var(--surface);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
}

/* Footer */
.site-footer {
  background: #1a211f;
  color: rgba(250, 249, 246, 0.78);
  margin-top: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 0.75rem;
}

.footer-tag {
  color: rgba(250, 249, 246, 0.65);
  font-size: 0.95rem;
}

.footer-heading {
  color: var(--surface);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(250, 249, 246, 0.72);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--surface);
}

.footer-address {
  margin-bottom: 0.75rem;
  max-width: 22ch;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.25rem var(--space) 0;
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  font-size: 0.88rem;
  color: rgba(250, 249, 246, 0.5);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: none;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.25rem;
}

/* Page-specific accents */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.spotlight img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.case-study {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case-study h3 {
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(243, 242, 238, 0.97);
    padding: 1.5rem var(--space);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .grid-2,
  .grid-3,
  .benefit-grid,
  .stat-band,
  .price-grid,
  .form-layout,
  .split-media,
  .spotlight,
  .footer-inner,
  .item-row,
  .blog-entry {
    grid-template-columns: 1fr;
  }

  .item-meta {
    white-space: normal;
  }

  .instructor {
    grid-template-columns: 96px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    animation: none;
  }
}
