@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --hub-bg: #090e1b;
  --hub-panel: #111a2b;
  --hub-text: #f4f7ff;
  --hub-muted: #9ba9c1;
  --hub-line: rgba(190,210,255,.12);
  --hub-accent: #8c9cff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 4%, rgba(64,89,170,.16), transparent 34rem),
    radial-gradient(ellipse at 8% 42%, rgba(42,110,128,.09), transparent 30rem),
    var(--hub-bg);
  color: var(--hub-text);
  font-family: 'DM Sans','Manrope',system-ui,sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.cq-hub { max-width: 1440px; margin: 0 auto; padding: 0 5.2%; overflow: hidden; }
.cq-hub-header {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hub-line); gap: 16px;
}
.cq-hub-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; }
.cq-hub-brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: #fff; font: 700 14px 'DM Mono',monospace;
  background: linear-gradient(135deg,#7188ff,#8c54cf); box-shadow: 0 7px 24px #6577ff40;
}
.cq-hub-header-actions { display: flex; align-items: center; gap: 17px; }
.cq-hub-header-label,.cq-hub-kicker,.cq-hub-eyebrow,.cq-hub-art-label,.cq-hub-studio-status {
  font: 500 10px 'DM Mono',monospace; letter-spacing: 1.6px; color: #aab8d2;
}
.cq-hub-lang {
  border: 1px solid var(--hub-line); color: #fff; background: #172238; border-radius: 10px;
  padding: 9px 13px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.cq-hub-hero {
  min-height: 510px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 35px; padding: 64px 0 70px;
}
.cq-hub-hero-copy { position: relative; z-index: 2; }
.cq-hub-eyebrow { display: flex; align-items: center; gap: 9px; color: #b7c5e2; }
.cq-hub-live-dot,.cq-hub-window-status span,.cq-hub-studio-status span {
  width: 7px; height: 7px; border-radius: 50%; background: #6de0b0; box-shadow: 0 0 12px #6de0b080;
}
.cq-hub-hero h1 {
  font: 800 clamp(39px,5.2vw,67px)/1.09 'Manrope','DM Sans',sans-serif;
  letter-spacing: -2.9px; margin: 24px 0 19px; max-width: 650px;
}
.cq-hub-hero h1 span {
  background: linear-gradient(100deg,#9fb2ff 5%,#bca3ff 53%,#72d8dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cq-hub-hero-copy > p { max-width: 520px; color: var(--hub-muted); font-size: 15px; line-height: 1.85; margin: 0 0 25px; }
.cq-hub-primary {
  display: inline-flex; align-items: center; gap: 24px; padding: 14px 19px; border-radius: 12px;
  color: #0b1020; font-size: 13px; font-weight: 800;
  background: linear-gradient(110deg,#c0caff,#a9b5ff 55%,#a6e8e2);
  box-shadow: 0 10px 35px #849bff30; transition: transform .2s,box-shadow .2s;
}
.cq-hub-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px #849bff50; }
.cq-hub-hero-note { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #8998b2; font-size: 11px; }
.cq-hub-note-icon { color: #b5a5ff; font-size: 16px; }
.cq-hub-hero-art { min-height: 350px; position: relative; display: grid; place-items: center; isolation: isolate; }
.cq-hub-art-glow { position: absolute; width: 74%; height: 68%; border-radius: 50%; background: #5367c8; filter: blur(85px); opacity: .24; z-index: -1; }
.cq-hub-orbit { position: absolute; border: 1px solid #a6b5ff20; border-radius: 50%; transform: rotate(-20deg); }
.cq-hub-orbit-one { width: 95%; height: 72%; }
.cq-hub-orbit-two { width: 78%; height: 98%; transform: rotate(55deg); }
.cq-hub-code-window {
  width: min(100%,420px); border: 1px solid #aebfff35; border-radius: 17px; overflow: hidden;
  background: linear-gradient(145deg,#17243b,#101a2d); box-shadow: 0 28px 85px #0008,0 0 45px #788aff18;
  transform: rotate(-3deg); z-index: 2;
}
.cq-hub-window-top { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid #ffffff12; }
.cq-hub-window-top > span { width: 7px; height: 7px; border-radius: 50%; background: #ff817d; }
.cq-hub-window-top > span:nth-child(2) { background: #ffce70; }
.cq-hub-window-top > span:nth-child(3) { background: #68d7a1; }
.cq-hub-window-top b { margin-left: 12px; color: #9baac5; font: 10px 'DM Mono',monospace; }
.cq-hub-code-lines { padding: 25px 20px 22px; font: 12px/2.2 'DM Mono',monospace; color: #dce5ff; }
.cq-hub-code-lines i { display: inline-block; width: 28px; color: #60708c; font-style: normal; font-size: 10px; }
.cq-code-purple { color: #c4a1ff; }.cq-code-blue { color: #85c8ff; }.cq-code-yellow { color: #ffdc8a; }.cq-code-green { color: #83dfbb; }
.cq-hub-window-status { border-top: 1px solid #ffffff12; padding: 12px 20px; display: flex; align-items: center; gap: 8px; color: #91a4c2; font: 9px 'DM Mono',monospace; letter-spacing: 1.3px; }
.cq-hub-window-status span { width: 6px; height: 6px; }
.cq-hub-float-card {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 13px; min-width: 88px; border: 1px solid #ffffff24; border-radius: 11px;
  background: #17243beF; box-shadow: 0 10px 30px #0006; backdrop-filter: blur(10px);
}
.cq-hub-float-card strong { font: 700 13px 'DM Mono',monospace; color: #dce5ff; }
.cq-hub-float-card span { font-size: 9px; color: #9baac3; }
.cq-hub-float-html { top: 8%; left: 0; }.cq-hub-float-html strong { color: #ffbd89; }
.cq-hub-float-css { top: 4%; right: 2%; }.cq-hub-float-css strong { color: #a5d4ff; }
.cq-hub-float-js { bottom: 8%; right: 1%; }.cq-hub-float-js strong { color: #ffe18c; }
.cq-hub-float-python { bottom: 4%; left: 2%; }.cq-hub-float-python strong { color: #91d5ff; }
.cq-hub-section { padding: 40px 0 75px; }
.cq-hub-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cq-hub-kicker { color: #9aaeff; margin-bottom: 11px; }
.cq-hub-section-heading h2,.cq-hub-studio-copy h2,.cq-hub-bottom h2 {
  margin: 0; font: 800 clamp(26px,3.4vw,39px)/1.2 'Manrope','DM Sans',sans-serif; letter-spacing: -1.1px;
}
.cq-hub-section-heading p { margin: 10px 0 0; color: var(--hub-muted); font-size: 13px; line-height: 1.7; }
.cq-hub-section-count { color: #71809b; font: 11px 'DM Mono',monospace; padding-bottom: 5px; }
.cq-hub-academy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.cq-hub-academy {
  overflow: hidden; border: 1px solid var(--hub-line); border-radius: 17px;
  background: linear-gradient(155deg,#131e32,#0e1727); transition: transform .22s,border-color .22s,box-shadow .22s;
}
.cq-hub-academy:hover { transform: translateY(-4px); border-color: #9eafff50; box-shadow: 0 18px 40px #0003; }
.cq-hub-academy-art { height: 205px; position: relative; overflow: hidden; display: grid; place-items: center; }
.cq-hub-academy-art svg { width: min(100%,420px); height: 100%; position: relative; z-index: 1; }
.cq-hub-art-label { position: absolute; z-index: 2; top: 16px; left: 18px; color: #ffffff9c; font-size: 9px; }
.cq-hub-art-caption { position: absolute; z-index: 2; bottom: 13px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: end; color: #ffffffb0; font: 500 9px 'DM Mono',monospace; letter-spacing: 2px; }
.cq-hub-art-caption span { opacity: .65; }
.cq-hub-python .cq-hub-academy-art { background: radial-gradient(ellipse at 50% 48%,#315d94 0,#1c365b 48%,#14253f 100%); }
.cq-hub-html .cq-hub-academy-art { background: radial-gradient(ellipse at 50% 48%,#945a42 0,#563b42 49%,#30283b 100%); }
.cq-hub-css .cq-hub-academy-art { background: radial-gradient(ellipse at 50% 48%,#3c708e 0,#25475e 48%,#172c45 100%); }
.cq-hub-js .cq-hub-academy-art { background: radial-gradient(ellipse at 50% 48%,#8a753e 0,#554d38 48%,#302c30 100%); }
.cq-hub-academy-content { padding: 19px 21px 21px; }
.cq-hub-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #71809b; font: 10px 'DM Mono',monospace; }
.cq-hub-status { border-radius: 30px; padding: 6px 9px; letter-spacing: .7px; font-size: 9px; }
.cq-hub-status-open { color: #83e1b8; background: #58d6a018; border: 1px solid #58d6a03b; }
.cq-hub-status-soon { color: #e9c78a; background: #e6b65b16; border: 1px solid #e6b65b36; }
.cq-hub-academy h3 { font: 800 21px 'Manrope','DM Sans',sans-serif; letter-spacing: -.5px; margin: 16px 0 8px; }
.cq-hub-academy-content > p { min-height: 48px; margin: 0; color: var(--hub-muted); font-size: 12px; line-height: 1.75; }
.cq-hub-card-link { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c1ceff; font-size: 12px; font-weight: 700; }
.cq-hub-card-link span:last-child { font-size: 18px; }
.cq-hub-disabled { color: #8995aa; cursor: default; }
.cq-hub-studio {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 36px;
  padding: 38px 5%; margin: 0 0 65px; border: 1px solid #91a3ff28; border-radius: 21px;
  background: radial-gradient(ellipse at 15% 40%,#5365b12b,transparent 55%),linear-gradient(115deg,#17233a,#111b2d);
  overflow: hidden;
}
.cq-hub-studio-art { min-height: 220px; display: grid; place-items: center; position: relative; }
.cq-hub-studio-screen { width: min(100%,340px); height: 190px; border: 1px solid #9aafff6b; border-radius: 13px; background: #0b1425; box-shadow: 0 18px 45px #0006; transform: perspective(700px) rotateY(8deg) rotateX(3deg); overflow: hidden; }
.cq-hub-screen-bar { height: 22px; border-bottom: 1px solid #ffffff19; display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.cq-hub-screen-bar span { width: 5px; height: 5px; border-radius: 50%; background: #ff8d82; }.cq-hub-screen-bar span:nth-child(2){background:#ffd178}.cq-hub-screen-bar span:nth-child(3){background:#70d9a4}
.cq-hub-screen-layout { display: grid; grid-template-columns: 65px 1fr; height: 168px; }
.cq-hub-screen-side { border-right: 1px solid #ffffff15; padding: 15px 8px; display: flex; flex-direction: column; gap: 11px; }
.cq-hub-screen-side i { height: 5px; border-radius: 4px; background: #7186d7; opacity: .65; }
.cq-hub-screen-main { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.cq-hub-screen-main b { width: 48%; height: 9px; border-radius: 5px; background: #b4c2ff; margin-bottom: 5px; }
.cq-hub-screen-main span { width: 80%; height: 5px; border-radius: 5px; background: #64748c; }
.cq-hub-screen-main span:nth-of-type(2) { width: 60%; }
.cq-hub-screen-main div { margin-top: 4px; width: 85%; height: 39px; border-radius: 6px; background: linear-gradient(110deg,#6579c9,#3b9b9b); opacity: .65; }
.cq-hub-studio-orb { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #263a62; border: 1px solid #a4b7ff55; color: #dce5ff; font: 12px 'DM Mono',monospace; box-shadow: 0 10px 30px #0005; }
.cq-hub-orb-a { top: 0; left: 6%; }.cq-hub-orb-b { bottom: 0; right: 5%; color: #ffdb9a; }
.cq-hub-studio-copy h2 { font-size: clamp(25px,3vw,35px); }
.cq-hub-studio-copy > p { color: var(--hub-muted); font-size: 13px; line-height: 1.85; margin: 13px 0 17px; max-width: 560px; }
.cq-hub-tech-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.cq-hub-tech-tags span { border: 1px solid #aebeff35; border-radius: 7px; padding: 6px 9px; color: #c4d0f4; font: 10px 'DM Mono',monospace; background: #ffffff08; }
.cq-hub-studio-status { display: inline-flex; align-items: center; gap: 9px; color: #e4c88e; letter-spacing: 1px; }
.cq-hub-studio-status span { background: #e8bb67; box-shadow: 0 0 12px #e8bb6770; }
.cq-hub-bottom { display: flex; align-items: center; gap: 20px; padding: 25px 0 42px; border-bottom: 1px solid var(--hub-line); }
.cq-hub-bottom-mark { flex: 0 0 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg,#647de0,#8c5dc7); font: 800 17px 'Manrope',sans-serif; }
.cq-hub-bottom h2 { font-size: 19px; letter-spacing: -.4px; }.cq-hub-bottom p { color: var(--hub-muted); font-size: 12px; margin: 7px 0 0; }
.cq-hub-bottom-link { margin-left: auto; white-space: nowrap; color: #bdcaff; font-size: 12px; font-weight: 700; }
.cq-hub-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #74829b; font-size: 10px; }
.cq-hub-footer-brand { color: #dfe6f7; font-size: 15px; }.cq-hub-footer-brand .cq-hub-brand-mark { width: 29px; height: 29px; border-radius: 9px; font-size: 11px; }

@media (min-width: 1100px) {
  .cq-hub-hero { min-height: 560px; }
  .cq-hub-academy-art { height: 225px; }
}
@media (max-width: 760px) {
  .cq-hub { padding: 0 20px; }
  .cq-hub-header { min-height: 68px; }
  .cq-hub-header-label { display: none; }
  .cq-hub-hero { grid-template-columns: 1fr; gap: 12px; padding: 49px 0 50px; }
  .cq-hub-hero h1 { font-size: clamp(39px,9vw,58px); letter-spacing: -2px; }
  .cq-hub-hero-copy > p { font-size: 13px; }
  .cq-hub-hero-art { min-height: 310px; margin: 0 5px; }
  .cq-hub-code-window { width: min(88%,390px); }
  .cq-hub-float-html { left: 0; }.cq-hub-float-css { right: 0; }
  .cq-hub-float-python { left: 0; }.cq-hub-float-js { right: 0; }
  .cq-hub-section { padding: 25px 0 50px; }
  .cq-hub-academy-grid { gap: 13px; }
  .cq-hub-academy-art { height: 165px; }
  .cq-hub-academy-content { padding: 15px; }
  .cq-hub-academy h3 { font-size: 17px; }
  .cq-hub-academy-content > p { font-size: 11px; }
  .cq-hub-studio { grid-template-columns: 1fr; gap: 12px; padding: 25px 20px; }
  .cq-hub-studio-art { min-height: 205px; }
  .cq-hub-studio-copy h2 { font-size: 27px; }
}
@media (max-width: 440px) {
  .cq-hub { padding: 0 15px; }
  .cq-hub-brand { font-size: 18px; }
  .cq-hub-header-actions { gap: 8px; }
  .cq-hub-lang { padding: 8px 10px; }
  .cq-hub-hero { padding-top: 38px; }
  .cq-hub-hero h1 { font-size: 39px; }
  .cq-hub-hero-art { min-height: 270px; }
  .cq-hub-code-lines { font-size: 10px; padding: 18px 13px; }
  .cq-hub-float-card { min-width: 75px; padding: 8px 9px; }
  .cq-hub-section-heading { align-items: start; }
  .cq-hub-section-count { display: none; }
  .cq-hub-academy-grid { grid-template-columns: 1fr; }
  .cq-hub-academy-art { height: 190px; }
  .cq-hub-academy-content > p { min-height: 0; }
  .cq-hub-bottom { align-items: flex-start; flex-wrap: wrap; gap: 13px; }
  .cq-hub-bottom-mark { flex-basis: 45px; height: 45px; }
  .cq-hub-bottom > div:nth-child(2) { flex: 1; min-width: 190px; }
  .cq-hub-bottom-link { margin-left: 58px; }
  .cq-hub-footer { flex-wrap: wrap; padding: 17px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* CODEQUEST ACADEMY CARD IMAGE ART v2 */
.cq-hub-academy-art{
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  background-color:#081323;
}
.cq-hub-python .cq-hub-academy-art{background-image:url("assets/academy-cards/python-academy.png");}
.cq-hub-html .cq-hub-academy-art{background-image:url("assets/academy-cards/html-academy.png");}
.cq-hub-css .cq-hub-academy-art{background-image:url("assets/academy-cards/css-academy.png");}
.cq-hub-js .cq-hub-academy-art{background-image:url("assets/academy-cards/javascript-academy.png");}
.cq-hub-academy-art svg,
.cq-hub-academy-art .cq-hub-art-label,
.cq-hub-academy-art .cq-hub-art-caption{display:none!important;}

/* Academy image-only cards */
.cq-hub-academy-content{display:none!important}
.cq-hub-image-link{display:block;cursor:pointer;text-decoration:none}
.cq-hub-image-link:focus-visible{outline:3px solid #b9c8ff;outline-offset:-4px}

/* Academy images: preserve complete original image */
.cq-hub-academy-art{
  background-image:none!important;
  background-color:#081323;
}
.cq-hub-academy-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}


/* CODEQUEST HOMEPAGE HERO BACKGROUND: hero.png */
.cq-hub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #10182b;
  background-image:
    linear-gradient(90deg, rgba(7,13,29,.78), rgba(9,16,35,.48) 55%, rgba(9,16,35,.25)),
    url("assets/images/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cq-hub-hero > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .cq-hub-hero {
    background-position: center;
    background-image:
      linear-gradient(180deg, rgba(7,13,29,.68), rgba(9,16,35,.30)),
      url("assets/images/hero.png");
  }
}


/* CODEQUEST TWO-IMAGE HERO LAYOUT */
.cq-hub-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 14px 0 24px;
  overflow: hidden;
  background: none;
}
.cq-hub-hero > img {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.cq-hub-hero-image { max-height: 380px; }
.cq-hub-animation { max-height: 440px; }
@media (max-width: 760px) {
  .cq-hub-hero { gap: 9px; padding: 10px 0 20px; }
  .cq-hub-hero > img { max-height: none; }
}
