/* AI Data Analytics — premium dark theme */
:root {
  --bg-deep: #070a0e;
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --bg-soft: #18202b;
  --line: rgba(201, 168, 106, 0.18);
  --line-strong: rgba(201, 168, 106, 0.35);
  --text: #e8eef5;
  --text-muted: #9aa8b8;
  --gold: #c9a86a;
  --gold-bright: #e0c48a;
  --teal: #5eead4;
  --teal-dim: rgba(94, 234, 212, 0.15);
  --danger: #f07178;
  --success: #7dcea0;
  --radius: 4px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --shadow-glow: 0 0 60px rgba(94, 234, 212, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(94, 234, 212, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(201, 168, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #0a1018 100%);
  background-attachment: fixed;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1rem; color: var(--text-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: -100px;
  z-index: 1000;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

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

.inline-error {
  background: rgba(240, 113, 120, 0.15);
  border: 1px solid var(--danger);
  color: #ffc9cc;
  padding: 0.85rem 1.1rem;
  margin: 0.75rem;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 14, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  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(--text);
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: linear-gradient(135deg, var(--teal), transparent 70%);
  border-radius: 3px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-bright) !important;
}

.nav-cta:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
}

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

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

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

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

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

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

  body.nav-open { overflow: hidden; }
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.1rem;
  max-width: 38rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--bg-deep);
  border-color: transparent;
}

.btn-primary:hover {
  color: var(--bg-deep);
  filter: brightness(1.06);
}

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

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

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.45);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.35) 0%, rgba(7, 10, 14, 0.55) 40%, rgba(7, 10, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 10, 14, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold-bright);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 1.1rem;
}

.hero .lede {
  color: rgba(232, 238, 245, 0.82);
  max-width: 32rem;
}

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

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

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

[data-reveal="left"] {
  transform: translateX(-24px);
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(18, 24, 32, 0.65);
  padding: 1.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-bright);
  font-weight: 400;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Featured course band */
.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 480px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
}

.feature-band-media {
  position: relative;
  min-height: 280px;
}

.feature-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-band-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .feature-band { grid-template-columns: 1fr; }
  .feature-band-media { min-height: 240px; position: relative; }
  .feature-band-media img { position: relative; height: 240px; }
}

/* Benefits — editorial list, not cards in hero sense but interactive-ish rows */
.benefit-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.benefit-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

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

/* Course grid */
.course-grid,
.blog-grid,
.pricing-grid {
  display: grid;
  gap: 1.75rem;
}

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

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .course-grid,
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

.course-item,
.blog-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  transition: border-color 0.25s;
}

.course-item:hover,
.blog-item:hover {
  border-bottom-color: var(--gold);
}

.course-item img,
.blog-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: saturate(0.9) brightness(0.88);
  transition: filter 0.35s var(--ease), transform 0.5s var(--ease);
}

.course-item:hover img,
.blog-item:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.01);
}

.course-item h3,
.blog-item h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.quote {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.quote p {
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.45;
}

.quote footer {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.quote--compact p {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-muted);
}

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

/* Pricing panels — interaction containers */
.price-panel {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.price-panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.price-panel.is-featured {
  border-color: var(--gold);
  background:
    linear-gradient(160deg, rgba(201, 168, 106, 0.08), transparent 50%),
    var(--bg-elevated);
}

.price-panel h3 {
  margin: 0 0 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-bright);
  margin: 1rem 0;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.price-panel ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
}

.price-panel li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

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

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--danger);
}

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

.form-status--success {
  background: rgba(125, 206, 160, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-status--error {
  background: rgba(240, 113, 120, 0.12);
  border: 1px solid var(--danger);
  color: #ffc9cc;
}

.address-block p {
  margin-bottom: 0.4rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.page-hero--visual {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.page-hero--visual .page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero--visual .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
}

.page-hero--visual .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, var(--bg-deep) 95%);
}

.page-hero--visual .container {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  padding-top: 6rem;
}

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

.prose h2 {
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  margin: 1.75rem 0 0.75rem;
}

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

.prose li { margin-bottom: 0.45rem; }

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

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

.prose th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

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

.modules li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.modules strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

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

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

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

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  margin-top: 0.75rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 168, 106, 0.12), transparent 70%);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  color: var(--gold);
}

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

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

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

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

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner-text {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--gold);
  margin: 0;
}

/* Case study blocks */
.case-study {
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 2rem;
  background: var(--bg-elevated);
}

.case-study h3 {
  margin-top: 0;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 760px) {
  .split-2 { grid-template-columns: 1fr; }
}

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

.stat-inline div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--teal);
  font-weight: 400;
}

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