/* Tech Infra — premium dark + gold theme */
:root {
  --bg: #0c0b09;
  --bg-elevated: #151310;
  --bg-soft: #1c1914;
  --ink: #f3efe6;
  --ink-muted: #b7aea0;
  --ink-dim: #8a8174;
  --gold: #c9a962;
  --gold-bright: #e8d5a3;
  --gold-deep: #8f7340;
  --line: rgba(201, 169, 98, 0.22);
  --line-strong: rgba(201, 169, 98, 0.45);
  --danger: #c97a6a;
  --success: #7d9b78;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1180px;
  --radius: 2px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(143, 115, 64, 0.1), transparent 50%),
    linear-gradient(180deg, #100e0b 0%, var(--bg) 40%, #0a0908 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

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

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

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  background: rgba(201, 122, 106, 0.15);
  border: 1px solid rgba(201, 122, 106, 0.45);
  color: #f0c9c1;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 9, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 1px;
  background: var(--gold);
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 11, 9, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #14110c;
  border-color: var(--gold);
}

.btn-gold:hover {
  color: #000;
}

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

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

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

[data-reveal="fade"] {
  transform: none;
}

/* Hero variants */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-editorial h1 {
  max-width: 11ch;
  color: var(--ink);
  margin-bottom: 0.4em;
}

.hero-editorial .lede {
  font-size: 1.15rem;
  max-width: 36ch;
  color: var(--ink-muted);
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 11, 9, 0.55));
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(232, 213, 163, 0.35);
  pointer-events: none;
  z-index: 1;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 52ch;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.section-head p {
  max-width: 34ch;
  margin: 0;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
}

.proof-item {
  background: var(--bg-elevated);
  padding: 1.6rem 1.25rem;
  text-align: left;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.proof-item span {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-strong);
}

.feature h3 {
  color: var(--ink);
}

/* Course cards — interaction containers */
.course-grid,
.blog-grid,
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.media-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  color: inherit;
}

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.media-card .card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card h3 {
  color: var(--ink);
  margin-bottom: 0.45em;
}

.media-card p {
  flex: 1;
  font-size: 0.98rem;
}

.meta {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

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

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
}

.quote cite {
  font-style: normal;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.quote.short blockquote {
  font-size: 1.2rem;
  font-family: var(--font-body);
  color: var(--ink-muted);
}

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

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(135deg, rgba(201, 169, 98, 0.12), transparent 55%),
    var(--bg-soft);
  border: 1px solid var(--line-strong);
}

.cta-band h2 {
  max-width: 14ch;
}

/* Pricing */
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08), var(--bg-elevated));
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-bright);
}

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

.tier ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  flex: 1;
}

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

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.field-error {
  color: #f0c9c1;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

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

.form-status.success {
  border-color: var(--success);
  color: #c8e0c4;
  background: rgba(125, 155, 120, 0.12);
}

.form-status.error {
  border-color: var(--danger);
  color: #f0c9c1;
  background: rgba(201, 122, 106, 0.12);
}

.form-status.pending {
  color: var(--gold-bright);
}

.contact-aside {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  height: fit-content;
}

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

.contact-aside p,
.contact-aside address {
  font-style: normal;
  color: var(--ink-muted);
}

/* Content prose */
.prose {
  max-width: 72ch;
}

.prose h2,
.prose h3 {
  margin-top: 1.75em;
  color: var(--ink);
}

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

.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.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--gold-bright);
  font-weight: 500;
}

/* Course detail */
.course-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.course-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

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

.module-list .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.5rem;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

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

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}

.faq details p {
  margin: 0.75rem 0 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #090807;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.footer-tag {
  max-width: 28ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

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

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-address {
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: slideUp 0.45s var(--ease);
}

.cookie-banner-inner {
  padding: 1.25rem 1.35rem;
}

.cookie-banner p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Split panels */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

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

.stat-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.stat-inline div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.stat-inline span {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* 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(5rem, 16vw, 9rem);
  color: var(--gold);
  line-height: 0.9;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-editorial,
  .course-hero,
  .contact-layout,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 280px;
  }

  .proof-strip,
  .feature-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

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

@media (max-width: 640px) {
  .proof-strip,
  .feature-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero-editorial h1 {
    max-width: none;
  }
}
