/* Apihubzone — minimalist premium theme */
:root {
  --ink: #14212b;
  --ink-soft: #3d4d5a;
  --muted: #6b7c89;
  --line: #d7e0e6;
  --paper: #f5f8fa;
  --paper-deep: #e8eef2;
  --surface: #ffffff;
  --teal: #0b3d4a;
  --teal-mid: #1a6b6e;
  --accent: #2f9e8f;
  --accent-soft: #d9f0ec;
  --danger: #a63d3d;
  --ok: #1f7a4c;
  --shadow: 0 18px 40px rgba(20, 33, 43, 0.08);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "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(47, 158, 143, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(11, 61, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, var(--paper) 40%, #f2f6f8 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

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

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

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

.site-main {
  padding-top: var(--header-h);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 250, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

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

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

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  box-shadow: 0 0 0 3px rgba(47, 158, 143, 0.15);
}

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

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

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

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
}

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

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

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

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

.btn-primary:hover {
  background: #0f4d5c;
  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-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — asymmetric brand-led */
.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;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 61, 74, 0.88) 0%, rgba(11, 61, 74, 0.55) 42%, rgba(11, 61, 74, 0.2) 100%),
    linear-gradient(180deg, transparent 40%, rgba(11, 30, 36, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 4rem;
  color: #f4faf9;
  max-width: 640px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 0.8rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 28ch;
  margin-bottom: 0.4rem;
}

.hero-note {
  color: rgba(232, 244, 242, 0.78);
  max-width: 38ch;
  font-size: 1rem;
}

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

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

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

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

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--teal);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.35rem;
}

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

.feature-list {
  display: grid;
  gap: 1.75rem;
}

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

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.feature-row h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

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

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.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);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tile-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.tile-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

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

.tile-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.quote-block {
  background: linear-gradient(160deg, #fff, #f0f7f6);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--font-body);
}

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

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--teal);
  margin: 0.6rem 0 0.2rem;
}

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

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

.price-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

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

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

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

.page-hero p {
  max-width: 42rem;
  font-size: 1.08rem;
}

.prose {
  max-width: 44rem;
}

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

.prose h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

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

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

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

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

.prose th {
  background: var(--paper-deep);
  color: var(--ink);
}

.modules {
  display: grid;
  gap: 1rem;
}

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

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

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

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

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

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 158, 143, 0.18);
}

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

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid #b7dfc6;
}

.form-status.is-error {
  display: block;
  background: #fceeee;
  color: var(--danger);
  border: 1px solid #e8bcbc;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

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

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

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

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

.rating {
  color: var(--teal-mid);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cta-band {
  margin: 2rem 0 5rem;
  padding: 3rem 0;
  background:
    linear-gradient(120deg, rgba(11, 61, 74, 0.95), rgba(26, 107, 110, 0.92)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  border-radius: 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 16ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
}

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

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0d2a33;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.footer-tag {
  color: rgba(255, 255, 255, 0.65);
  max-width: 28rem;
}

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

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.footer-contact a {
  display: inline;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  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 1rem 1rem 1rem;
  z-index: 60;
  max-width: 420px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
  animation: fadeUp 0.45s ease both;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.cookie-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.inline-error {
  margin: 1rem auto;
  width: min(var(--max), calc(100% - 2.5rem));
  padding: 0.85rem 1rem;
  background: #fceeee;
  color: var(--danger);
  border: 1px solid #e8bcbc;
  border-radius: 10px;
}

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

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

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

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

@media (max-width: 960px) {
  .course-grid,
  .blog-grid,
  .price-grid,
  .review-grid,
  .footer-cols,
  .trust-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

  .site-nav a {
    padding: 0.7rem 0.4rem;
  }

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

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

  .hero-content {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row {
    grid-template-columns: 3rem 1fr;
  }
}
