/* App Network Hub — Ledger Teal theme */
:root {
  --ink: #14231f;
  --ink-soft: #3a4f48;
  --muted: #5c726a;
  --paper: #eef3f0;
  --paper-2: #dfe9e4;
  --surface: rgba(255, 255, 255, 0.72);
  --teal: #0f4a42;
  --teal-mid: #1a6b5f;
  --mint: #7ec9b8;
  --amber: #c4782a;
  --line: rgba(20, 35, 31, 0.12);
  --danger: #9b2c2c;
  --ok: #1f6b4a;
  --radius: 6px;
  --shadow: 0 18px 40px rgba(15, 74, 66, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    linear-gradient(165deg, #d8e8e2 0%, var(--paper) 38%, #f5f7f6 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(15, 74, 66, 0.04) 31px,
      rgba(15, 74, 66, 0.04) 32px
    );
}

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

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

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

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.inline-error {
  background: #fde8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid #f0c0c0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 240, 0.88);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: 1.35rem;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--teal-mid);
}

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

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  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(--teal);
  color: #f4faf8;
}

.btn--primary:hover {
  background: var(--teal-mid);
  color: #fff;
}

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

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

.btn--amber {
  background: var(--amber);
  color: #fffaf3;
}

.btn--amber:hover {
  background: #a8641f;
  color: #fff;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f3faf7;
  overflow: hidden;
}

.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__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 40, 36, 0.88) 12%, rgba(10, 40, 36, 0.45) 55%, rgba(10, 40, 36, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 40, 36, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  max-width: 38rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #f6fbf9;
  animation: fadeUp 0.9s ease both;
}

.hero__line {
  width: 4.5rem;
  height: 3px;
  background: var(--mint);
  margin-bottom: 1.1rem;
  animation: growLine 0.8s 0.2s ease both;
  transform-origin: left;
}

.hero__lede {
  font-size: 1.15rem;
  color: rgba(243, 250, 247, 0.9);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero__actions {
  animation: fadeUp 0.9s 0.3s ease both;
}

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

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

@keyframes growLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

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

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

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

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-block: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  font-weight: 550;
}

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split__visual {
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.split__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

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

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

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

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.review-grid {
  grid-template-columns: repeat(2, 1fr);
}

.course-tile,
.blog-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-tile:hover,
.blog-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.course-tile__img,
.blog-tile__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.course-tile__img img,
.blog-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-tile__body,
.blog-tile__body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.course-tile__meta,
.blog-tile__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.quote-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  padding: 1.4rem 1.5rem;
  border-radius: 0 10px 10px 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}

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

.quote-block--soft {
  border-left-color: var(--amber);
}

.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, #163f3a 100%);
  color: #eef8f4;
  padding: 3.5rem 0;
  margin-top: 1rem;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(238, 248, 244, 0.88);
  max-width: 34rem;
}

.cta-band .btn--primary {
  background: #eef8f4;
  color: var(--teal);
}

.cta-band .btn--primary:hover {
  background: #fff;
}

/* Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f4faf8 0%, #fff 50%);
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--teal);
}

.price-card__amount {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
}

.price-card__amount span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

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

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

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

.contact-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
}

.field {
  margin-bottom: 1.1rem;
}

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  border-color: var(--teal-mid);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

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

.form-status--pending {
  background: #e8eef2;
}

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

.form-status--error {
  background: #fde8e8;
  color: var(--danger);
}

.address-block {
  font-style: normal;
  line-height: 1.55;
}

/* Course detail */
.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.module {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: var(--surface);
}

.module h3 {
  margin-bottom: 0.35rem;
}

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

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--mint);
}

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

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

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
}

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

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

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

.prose th {
  background: rgba(15, 74, 66, 0.06);
}

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

.case-study h3 {
  color: var(--teal);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #102923;
  color: #c9ddd6;
  padding: 3rem 0 0;
}

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

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

.footer-tag {
  color: #9eb8af;
  font-size: 0.95rem;
}

.footer-label {
  color: #f2faf7;
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.site-footer a {
  color: #b7d0c7;
  text-decoration: none;
}

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

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: #9eb8af;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.25rem;
  font-size: 0.88rem;
  color: #8aa69c;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(16, 41, 35, 0.97);
  color: #e4f0eb;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(126, 201, 184, 0.35);
  animation: fadeUp 0.45s ease both;
}

.cookie-banner__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: var(--mint);
}

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

.cookie-banner .btn--ghost {
  color: #e4f0eb;
  border-color: rgba(255, 255, 255, 0.25);
}

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

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--teal);
  line-height: 1;
  margin: 0;
}

/* Legal / article meta */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.article-cover {
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 2rem;
  max-height: 420px;
}

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

.rating {
  color: var(--amber);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 960px) {
  .course-grid,
  .blog-grid,
  .price-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split--reverse,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .proof-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

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

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

  .course-grid,
  .blog-grid,
  .price-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 70vh;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
