/* Dev Network Lab — ledger / bridge-lab theme */
:root {
  --ink: #0e2a3a;
  --ink-soft: #244556;
  --mist: #eef4f6;
  --paper: #f5fafb;
  --line: #c7d7de;
  --teal: #1f8f7a;
  --teal-deep: #14685a;
  --copper: #b56a3a;
  --copper-soft: #d9a078;
  --white: #ffffff;
  --danger: #9b2f2f;
  --ok: #1b6b4a;
  --shadow: 0 18px 50px rgba(14, 42, 58, 0.12);
  --radius: 6px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 184, 160, 0.14), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(181, 106, 58, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--mist) 48%, #e7eef1);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.inline-error {
  background: #f8e4e4;
  color: var(--danger);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(245, 250, 251, 0.88);
  border-bottom: 1px solid rgba(199, 215, 222, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(145deg, var(--teal) 40%, transparent 40%),
    linear-gradient(325deg, var(--ink) 55%, var(--copper) 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

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

.site-nav a:hover {
  color: var(--teal-deep);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink) !important;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

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

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

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 42, 58, 0.88) 0%, rgba(14, 42, 58, 0.55) 48%, rgba(14, 42, 58, 0.28) 100%),
    linear-gradient(0deg, rgba(14, 42, 58, 0.72), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 38rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-brand span {
  display: block;
  color: #9fe4d4;
  font-size: 0.42em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 500;
  max-width: 18ch;
  color: #f3f8fa;
}

.hero p {
  color: rgba(243, 248, 250, 0.9);
  font-size: 1.05rem;
  max-width: 34ch;
}

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

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--copper);
  margin: 0;
}

/* Proof / metrics */
.proof-band {
  background: var(--ink);
  color: var(--white);
  padding: 1.6rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

/* Featured / listings */
.course-list,
.blog-list,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.course-list,
.blog-list {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.review-grid {
  grid-template-columns: 1.2fr 1fr;
}

.media-tile {
  display: grid;
  gap: 0.9rem;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.45s ease;
}

.media-tile:hover img {
  transform: scale(1.02);
}

.media-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.media-tile h3 a {
  color: inherit;
  text-decoration: none;
}

.media-tile h3 a:hover {
  color: var(--teal-deep);
}

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

.meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Benefits */
.benefit-rail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.benefit-list li {
  padding-left: 1.2rem;
  border-left: 3px solid var(--teal);
}

.benefit-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

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

.benefit-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.benefit-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

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

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(135deg, rgba(31, 143, 122, 0.12), rgba(181, 106, 58, 0.1)),
    var(--white);
  border-block: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.cta-band .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Pricing tiers — interactive containers */
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tier:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.tier.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.tier h3 {
  margin: 0;
  font-size: 1.45rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0;
}

.tier .price span {
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink-soft);
}

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

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

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.form-panel,
.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(31, 143, 122, 0.35);
  border-color: var(--teal);
}

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

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

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

.form-status.is-error {
  color: var(--danger);
}

.info-panel h2 {
  font-size: 1.35rem;
}

.info-panel p {
  color: var(--ink-soft);
}

/* Article / legal */
.prose {
  max-width: 46rem;
}

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

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

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

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: rgba(14, 42, 58, 0.06);
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.module-list li {
  background: var(--white);
  border-left: 4px solid var(--copper);
  padding: 1rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.module-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

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

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

.case-study {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.5rem;
}

.case-study h3 {
  margin-bottom: 0.4rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cover-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
}

.cover-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-tag,
.footer-address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-label {
  color: #9fe4d4;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #9fe4d4;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: rgba(14, 42, 58, 0.96);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: #9fe4d4;
}

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

.cookie-banner .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-primary {
  background: var(--teal);
}

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

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2rem;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  animation: riseIn 0.8s ease both;
}

@media (max-width: 960px) {
  .proof-grid,
  .course-list,
  .blog-list,
  .tier-grid,
  .footer-grid,
  .benefit-rail,
  .contact-layout,
  .review-grid,
  .split-2 {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 250, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

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

  .site-nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: 78vh;
  }
}
