:root {
  --ink: #0f172a;
  --slate: #475569;
  --soft-slate: #64748b;
  --line: #dbe3ec;
  --paper: #f8fafc;
  --white: #ffffff;
  --sky: #0ea5e9;
  --sky-dark: #0369a1;
  --sky-soft: #e0f2fe;
  --coral: #f9735b;
  --gold: #f6b83f;
  --mint: #3ec6a8;
  --violet: #8b7cf6;
  --navy: #111c32;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; z-index: 1000; left: -999px; top: 1rem; padding: .75rem 1rem; border-radius: 10px; color: white; background: var(--ink); }
.skip-link:focus { left: 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(219, 227, 236, .9); background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); }
.nav-wrap { width: min(1180px, calc(100% - 3rem)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; min-height: 52px; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 105px; height: 58px; display: block; object-fit: contain; transform: scale(1.35); transform-origin: center; }
.brand-divider { width: 1px; height: 25px; margin-left: .12rem; background: #cbd5e1; }
.brand-name { color: var(--ink); font-size: .92rem; font-weight: 720; letter-spacing: -.025em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; color: var(--slate); font-size: .88rem; font-weight: 650; }
.nav-links a { text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-hackathon { color: var(--sky-dark); }
.nav-links .nav-cta { padding: .7rem 1.05rem; border-radius: 999px; color: var(--ink); background: var(--sky-soft); }

.hero { position: relative; overflow: hidden; min-height: 690px; background: linear-gradient(135deg, #fbfdff 0%, #f5f9fd 54%, #edf6fb 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .33; background-image: linear-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .18) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 60%); }
.hero-inner { position: relative; z-index: 2; width: min(1180px, calc(100% - 3rem)); min-height: 690px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding: 5.5rem 0; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--sky-dark); font-size: .72rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; }
h1 { max-width: 760px; margin-bottom: 1.45rem; font-size: clamp(3.4rem, 6.2vw, 6.2rem); line-height: .95; font-weight: 690; text-wrap: balance; }
h1 em { color: var(--sky-dark); font-style: normal; }
.hero-lede { max-width: 610px; margin-bottom: 0; color: var(--slate); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .65rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 760; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 14px 28px rgba(15, 23, 42, .18); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(15, 23, 42, .24); }
.button-secondary { border-color: #cbd5e1; color: var(--ink); background: rgba(255, 255, 255, .7); }
.button-secondary:hover { background: white; }
.audience-note { display: flex; align-items: center; gap: .9rem; margin-top: 2.3rem; }
.audience-note p { margin: 0; color: var(--soft-slate); font-size: .76rem; line-height: 1.4; }
.audience-note strong { color: var(--ink); }
.audience-avatars { display: flex; }
.audience-avatars i { width: 32px; height: 32px; display: grid; place-items: center; margin-left: -7px; border: 3px solid white; border-radius: 50%; color: white; background: var(--coral); font-size: .65rem; font-style: normal; font-weight: 900; }
.audience-avatars i:first-child { margin-left: 0; }
.audience-avatars i:nth-child(2) { background: var(--sky); }
.audience-avatars i:nth-child(3) { background: var(--violet); }

.hero-art { position: relative; min-height: 500px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-glow-one { width: 380px; height: 380px; right: -90px; top: -140px; background: rgba(14, 165, 233, .09); }
.hero-glow-two { width: 320px; height: 320px; left: -120px; bottom: -180px; background: rgba(62, 198, 168, .09); }
.learning-orb { position: absolute; z-index: 2; left: 50%; top: 50%; width: 270px; height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .34); border-radius: 50%; color: white; background: radial-gradient(circle at 32% 25%, #334a6e, #15233c 52%, #0b1425); box-shadow: 0 35px 85px rgba(15, 23, 42, .28), inset 0 1px 1px rgba(255, 255, 255, .22); }
.learning-orb::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(255, 255, 255, .13); border-radius: inherit; }
.orb-label { color: #7dd3fc; font-size: .67rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.orb-line { width: 32px; height: 1px; margin: .8rem 0; background: rgba(255, 255, 255, .35); }
.learning-orb strong { font-size: 1.45rem; line-height: 1.25; text-align: center; letter-spacing: -.02em; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(71, 85, 105, .18); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 430px; height: 300px; }
.orbit-two { width: 510px; height: 395px; transform: translate(-50%, -50%) rotate(23deg); }
.floating-card { position: absolute; z-index: 3; min-width: 142px; display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid rgba(203, 213, 225, .88); border-radius: 17px; background: rgba(255, 255, 255, .89); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); backdrop-filter: blur(12px); }
.floating-card > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--coral); font-weight: 900; }
.floating-card div { display: flex; flex-direction: column; }
.floating-card small { color: var(--soft-slate); font-size: .55rem; font-weight: 850; letter-spacing: .16em; }
.floating-card strong { font-size: .9rem; }
.card-book { left: 1%; top: 15%; transform: rotate(-4deg); }
.card-play { right: -1%; top: 18%; transform: rotate(4deg); }
.card-play > span { background: var(--gold); }
.card-game { right: 1%; bottom: 13%; transform: rotate(-3deg); }
.card-game > span { background: var(--mint); }
.card-build { left: 2%; bottom: 12%; transform: rotate(3deg); }
.card-build > span { background: var(--violet); }

.format-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.format-strip-inner { width: min(1180px, calc(100% - 3rem)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.format-strip p { margin: 0; color: var(--soft-slate); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.format-strip a { display: inline-flex; align-items: center; gap: .5rem; color: var(--slate); font-size: .85rem; font-weight: 750; text-decoration: none; }
.format-strip a:hover { color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-coral { background: var(--coral); }.dot-sky { background: var(--sky); }.dot-gold { background: var(--gold); }.dot-mint { background: var(--mint); }.dot-violet { background: var(--violet); }

.library-section { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 7.5rem 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; margin-bottom: 2rem; }
.section-heading h2, .formats-section h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.5vw, 4.3rem); line-height: 1; }
.section-heading > p { max-width: 470px; margin: 0 0 .3rem; color: var(--soft-slate); }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-button { padding: .56rem .92rem; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); background: white; cursor: pointer; font-size: .78rem; font-weight: 750; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.filter-button:hover { border-color: #94a3b8; color: var(--ink); }
.filter-button.active { border-color: var(--ink); color: white; background: var(--ink); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.resource-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 40px rgba(15, 23, 42, .055); }
.resource-card[hidden] { display: none; }
.featured-resource { grid-column: 1 / -1; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 470px; }
.resource-visual { position: relative; min-height: 470px; overflow: hidden; background: var(--navy); }
.resource-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 10, 24, .5), transparent 55%); }
.resource-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.resource-badge { position: absolute; z-index: 2; left: 1.2rem; top: 1.2rem; padding: .5rem .75rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: white; background: rgba(15, 23, 42, .7); backdrop-filter: blur(10px); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.book-spine { position: absolute; z-index: 2; right: 1.3rem; bottom: 1.3rem; width: 94px; height: 134px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border-radius: 5px 12px 12px 5px; color: var(--ink); background: var(--gold); box-shadow: -7px 7px 0 #d99822, 0 16px 35px rgba(0, 0, 0, .3); transform: rotate(4deg); }
.book-spine span { font-size: .58rem; font-weight: 900; line-height: 1.25; }
.book-spine strong { font-size: 2rem; line-height: 1; }
.resource-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 4rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.tag-row span { padding: .42rem .68rem; border-radius: 999px; color: var(--sky-dark); background: var(--sky-soft); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tag-row span:nth-child(2) { color: #5b49cf; background: #efedff; }
.tag-row span:nth-child(3) { color: #8b5211; background: #fff3d5; }
.resource-copy h3, .soon-card h3 { margin-bottom: 1rem; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1; }
.resource-copy > p, .soon-card > p { color: var(--soft-slate); }
.resource-meta { display: flex; gap: 1.4rem; margin: 1.2rem 0 1.6rem; color: var(--soft-slate); font-size: .72rem; }
.resource-meta span { display: flex; flex-direction: column; }
.resource-meta strong { color: var(--ink); font-size: 1.25rem; }
.resource-link { display: inline-flex; align-self: flex-start; align-items: center; gap: .65rem; color: var(--sky-dark); font-weight: 850; text-decoration: none; }
.resource-link:hover { color: var(--ink); }
.soon-card { min-height: 320px; padding: 1.6rem; background: linear-gradient(145deg, white, #f8fafc); }
.soon-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 2rem; border-radius: 15px; color: white; background: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 25px rgba(246, 184, 63, .2); }
.icon-game { background: var(--mint); }.icon-tools { background: var(--violet); }
.soon-label { margin-bottom: .7rem; color: var(--sky-dark) !important; font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.soon-card h3 { font-size: 1.55rem; }
.soon-card > p:not(.soon-label) { min-height: 4.7em; font-size: .88rem; }
.soon-status { color: var(--soft-slate); font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.empty-state { padding: 3rem; border: 1px dashed #cbd5e1; border-radius: var(--radius); color: var(--soft-slate); text-align: center; background: var(--paper); }

.formats-section { width: min(1180px, calc(100% - 3rem)); margin: 0 auto 7rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); padding: clamp(3rem, 6vw, 5.5rem); border-radius: 34px; background: #f1f6fa; }
.format-intro > p:last-child { margin-top: 1.5rem; color: var(--slate); }
.path-list { display: grid; }
.path-list > div { display: grid; grid-template-columns: 48px 120px 1fr; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #d5e0e9; }
.path-list > div:last-child { border-bottom: 0; }
.path-list span { color: var(--sky-dark); font-size: .7rem; font-weight: 900; }
.path-list strong { font-size: 1.05rem; }
.path-list p { margin: 0; color: var(--soft-slate); font-size: .82rem; }
.closing-cta { width: min(1180px, calc(100% - 3rem)); min-height: 310px; margin: 0 auto 7rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(2rem, 5vw, 4.5rem); overflow: hidden; border-radius: 34px; color: white; background: radial-gradient(circle at 85% -20%, rgba(14, 165, 233, .38), transparent 28rem), var(--navy); }
.closing-cta h2 { max-width: 730px; margin: 0; font-size: clamp(2.5rem, 4.4vw, 4.2rem); line-height: 1; }
.eyebrow.light { color: #7dd3fc; }
.button-light { flex: 0 0 auto; color: var(--ink); background: white; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { width: min(1180px, calc(100% - 3rem)); min-height: 220px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 1rem 3rem; }
.footer-inner > p { justify-self: end; margin: 0; color: var(--soft-slate); font-size: .8rem; }
.footer-inner nav { display: flex; gap: 1.2rem; color: var(--slate); font-size: .78rem; font-weight: 700; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--sky-dark); }
.footer-inner small { justify-self: end; color: var(--soft-slate); }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .hero-copy { max-width: 800px; }
  .hero-art { min-height: 470px; }
  .format-strip-inner { flex-wrap: wrap; justify-content: flex-start; padding: 1.3rem 0; }
  .format-strip p { flex-basis: 100%; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-resource { grid-column: 1 / -1; }
  .formats-section { grid-template-columns: 1fr; }
  .closing-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .nav-wrap, .hero-inner, .format-strip-inner, .library-section, .formats-section, .closing-cta, .footer-inner { width: min(100% - 1.5rem, 100%); }
  .nav-links:not(.hackathon-nav) > a:not(.nav-hackathon) { display: none; }
  .nav-links { gap: 0; }
  .nav-links .nav-cta { padding: .6rem .8rem; font-size: .76rem; }
  .hero-inner { padding-top: 4rem; }
  h1 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .hero-art { min-height: 400px; transform: scale(.86); margin: -1.6rem -2rem; }
  .orbit-two { width: 440px; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .featured-resource { grid-template-columns: 1fr; }
  .resource-visual { min-height: 340px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-meta { gap: .8rem; }
  .formats-section { padding: 2.2rem 1.3rem; }
  .path-list > div { grid-template-columns: 35px 1fr; gap: .7rem; }
  .path-list p { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; padding: 3rem 0; }
  .footer-inner > p, .footer-inner small { justify-self: start; }
}

@media (max-width: 450px) {
  .brand { gap: .5rem; }
  .brand-logo { width: 90px; height: 52px; }
  .brand-name { font-size: .8rem; }
  .nav-links .nav-cta { font-size: .7rem; }
  .hero-art { transform: scale(.74); margin: -3.4rem -4rem; }
  .hero-actions .button { width: 100%; }
  .format-strip-inner { gap: 1rem; }
  .library-section { padding: 5rem 0; }
  .resource-copy { padding: 1.5rem; }
  .resource-meta { flex-wrap: wrap; }
  .closing-cta { margin-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
