/* Code Cloudhub Digital — warm pastel theme */
:root {
  --bg: #fdf6f2;
  --bg-soft: #f8ebe3;
  --surface: #fffaf7;
  --card: #ffffff;
  --ink: #3d3835;
  --ink-soft: #6a615c;
  --muted: #8f847c;
  --line: #eadfd6;
  --peach: #e8b4a8;
  --peach-deep: #d48b7c;
  --mint: #b8d4c8;
  --mint-deep: #7fa894;
  --blush: #f3d4c8;
  --sand: #f0e0d4;
  --shadow: 0 12px 32px rgba(88, 62, 52, 0.08);
  --shadow-soft: 0 6px 18px rgba(88, 62, 52, 0.06);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #f8d9ce 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #d9ebe3 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

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

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

.visually-hidden {
  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: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253, 246, 242, 0.88);
  border-bottom: 1px solid rgba(234, 223, 214, 0.7);
}

.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.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%),
    linear-gradient(145deg, var(--peach), var(--mint));
  box-shadow: var(--shadow-soft);
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--peach), #efc4b8);
  color: var(--ink) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--peach-deep), var(--peach));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-mint {
  background: linear-gradient(135deg, var(--mint-deep), var(--mint));
  color: #fff;
}

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

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach-deep);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.08rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid rgba(234, 223, 214, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.card-media {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--sand);
}

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

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

.soft-panel {
  background: linear-gradient(160deg, rgba(255, 250, 247, 0.95), rgba(248, 235, 227, 0.9));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

/* Home hero — split composition, brand-forward */
.home-hero {
  padding: 3.5rem 0 2rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  min-height: min(78vh, 720px);
}

.hero-copy {
  padding: 1rem 0 2rem;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, var(--ink) 20%, var(--peach-deep) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  max-width: 28rem;
  margin-bottom: 0.75rem;
}

.hero-support {
  max-width: 28rem;
}

.hero-visual {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  animation: float-in 1s ease both 0.15s;
}

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

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(61, 56, 53, 0.28));
  pointer-events: none;
}

/* Benefit strip */
.benefit-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
}

.benefit-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s ease both;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.08s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.16s;
}

.benefit-item:nth-child(4) {
  animation-delay: 0.24s;
}

.benefit-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.benefit-item p {
  font-size: 0.92rem;
  margin: 0;
}

.icon-blob {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(145deg, var(--blush), var(--mint));
}

/* Featured courses */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.pill-mint {
  background: rgba(184, 212, 200, 0.45);
  color: #3f5f52;
}

.pill-peach {
  background: rgba(232, 180, 168, 0.4);
  color: #7a4a3f;
}

.card h3 a {
  text-decoration: none;
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--peach-deep);
}

/* Proof band */
.proof-band {
  background: linear-gradient(120deg, #f3d8ce, #dcebe4);
  border-radius: 2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.proof-band h2 {
  margin: 0;
  font-size: 1.55rem;
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
}

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

/* Testimonials */
.quote-card {
  padding: 1.5rem;
  height: 100%;
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: var(--ink);
}

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

.stars {
  color: var(--peach-deep);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}

.page-hero .lede {
  max-width: 40rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-panel-media {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}

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

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card.featured {
  background: linear-gradient(165deg, #fff, #f8ebe3);
  border-color: var(--peach);
  transform: translateY(-0.4rem);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
}

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

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

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

/* Forms */
.form-card {
  padding: 1.75rem;
}

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

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 650;
  font-size: 0.92rem;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212, 139, 124, 0.45);
  border-color: var(--peach);
}

.field-error {
  color: #b04545;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(184, 212, 200, 0.45);
  color: #2f5545;
}

.form-status.is-error {
  display: block;
  background: rgba(232, 180, 168, 0.45);
  color: #7a3530;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-block {
  padding: 1.25rem 1.35rem;
}

.contact-block h2 {
  font-size: 1.15rem;
}

/* Blog */
.article-prose {
  max-width: 42rem;
  margin: 0 auto;
}

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

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

.cover {
  border-radius: 1.5rem;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}

.cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Course detail */
.module-list {
  display: grid;
  gap: 0.85rem;
}

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

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

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}

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

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

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

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

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

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

.legal th {
  background: var(--bg-soft);
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 420px;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.45s ease both;
}

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

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

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

.inline-error {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(232, 180, 168, 0.4);
  color: #7a3530;
  display: none;
}

.inline-error.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(248, 235, 227, 0.85));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

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

.footer-links a,
.footer-legal a,
.footer-contact a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
  color: var(--peach-deep);
}

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

.footer-contact {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-check {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.list-check li {
  margin-bottom: 0.45rem;
}

.case-study {
  padding: 1.75rem;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--peach), var(--mint));
  font-weight: 700;
  color: var(--ink);
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .hero-stage,
  .hero-panel,
  .grid-3,
  .price-grid,
  .benefit-rail,
  .proof-band,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-band {
    grid-template-columns: 1fr 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 0.35rem);
    left: 1rem;
    right: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.85rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.55rem 0.4rem;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-stage,
  .hero-panel,
  .grid-3,
  .grid-2,
  .price-grid,
  .benefit-rail,
  .proof-band,
  .footer-grid,
  .instructor {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }

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

  .header-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
