/* /style.css */
:root{
  --bg:#0b0f14;
  --text:rgba(231,238,247,.95);
  --muted:rgba(155,176,196,.85);

  --panelBg:rgba(11,15,20,.92);
  --panelBorder:rgba(255,255,255,.10);
  --shadow:0 24px 80px rgba(0,0,0,.55);

  --pillBg:rgba(255,255,255,.06);
  --pillHover:rgba(255,255,255,.10);
  --pillBorder:rgba(255,255,255,.10);

  --blue:74,160,255;
  --green:46,200,140;
  --rose:255,120,130;

  --mx: 60vw;
  --my: 18vh;
}

:root[data-theme="light"]{
  --bg:#f5f7fb;
  --text:#0b0f14;
  --muted:rgba(67,85,101,.92);

  --panelBg:rgba(255,255,255,.96);
  --panelBorder:rgba(11,15,20,.14);
  --shadow:0 18px 50px rgba(0,0,0,.18);

  --pillBg:rgba(11,15,20,.03);
  --pillHover:rgba(11,15,20,.06);
  --pillBorder:rgba(11,15,20,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

/* Animated “energy” background */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 560px at 50% 0%,
      rgba(255,255,255,.10),
      rgba(255,255,255,0) 55%),
    linear-gradient(120deg,
      rgba(var(--blue), .12),
      rgba(var(--green), .10),
      rgba(var(--rose), .12));
  opacity:.75;
  filter: saturate(120%);
  transform: translateZ(0);
}

body::after{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(420px 420px at var(--mx) var(--my),
      rgba(255,255,255,.09),
      rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
  opacity: .95;
  transform: translateZ(0);
}

/* Floating orbs */
.bgOrbs{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.orb{
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(24px);
  opacity:.22;
  transform: translateZ(0);
}
.orb.o1{
  left:-180px; top:-160px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--blue),.55), rgba(var(--blue),0) 65%);
  animation: float1 10s ease-in-out infinite;
}
.orb.o2{
  right:-220px; top:40px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--green),.52), rgba(var(--green),0) 65%);
  animation: float2 12s ease-in-out infinite;
}
.orb.o3{
  left:18%; bottom:-260px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--rose),.52), rgba(var(--rose),0) 65%);
  animation: float3 14s ease-in-out infinite;
}
@keyframes float1{ 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(30px,22px) } }
@keyframes float2{ 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-34px,18px) } }
@keyframes float3{ 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(18px,-26px) } }

a{color:inherit}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding: 12px 14px 26px;
  position:relative;
  z-index:1;
}

/* Accessibility: skip link */
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip:focus{
  left:14px;
  top:10px;
  width:auto;height:auto;
  padding:8px 10px;
  border-radius:10px;
  background: var(--panelBg);
  border:1px solid var(--panelBorder);
  z-index:999;
}

/* Top bar */
.topbar{
  max-width:1100px;
  margin: 10px auto 0;
  padding: 10px 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
  z-index:2;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brandMark{width:28px;height:28px}
.brandTitle{
  font-weight:950;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  letter-spacing:.2px;
  line-height:1.05;
}
.brandSub{
  margin-top:2px;
  font-size:12px;
  color: var(--muted);
}
.topbarRight{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  margin-left:auto;
}
@media (max-width: 380px){
  .topbarRight{ gap:8px; }
}

/* Panel */
.panel{
  background: var(--panelBg);
  border: 1px solid var(--panelBorder);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: 14px;
  position:relative;
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 20px;
  pointer-events:none;
  background: linear-gradient(135deg,
    rgba(255,255,255,.12),
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.10));
  opacity:.32;
}

/* Extra panels */
.panelLite{
  background: rgba(255,255,255,.03);
}
:root[data-theme="light"] .panelLite{
  background: rgba(255,255,255,.92);
}

/* Hero */
.hero{ text-align:center; padding: 6px 4px 12px; position:relative; z-index:1; }
.heroKicker{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: 6px;
}
.heroTitle{
  margin:0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
}
.shineWord{ position:relative; }
.shineWord::after{
  content:"";
  position:absolute;
  left:-10%;
  top:0;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.18),
    rgba(255,255,255,0));
  transform: skewX(-18deg);
  opacity:.55;
  animation: shine 3.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine{
  0%{ transform: translateX(-60%) skewX(-18deg); opacity:0; }
  20%{ opacity:.55; }
  50%{ opacity:.55; }
  100%{ transform: translateX(60%) skewX(-18deg); opacity:0; }
}
.heroP{
  margin: 8px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.35;
  text-wrap: balance;
}

/* Hero jump links */
.heroActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 12px;
}
.chipLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--pillBorder);
  background: var(--pillBg);
  text-decoration:none;
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
  transition: transform .12s ease, background .12s ease;
}
.chipLink:hover{ background: var(--pillHover); transform: translateY(-1px); }
.chipLink:active{ transform: translateY(0px) scale(.98); }

/* Columns */
.cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  position:relative;
  z-index:1;
}
@media (max-width: 900px){
  .cols{ grid-template-columns: 1fr; }
}

.col{
  border: 1px solid var(--pillBorder);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  position:relative;
  transform: translateZ(0);
}
:root[data-theme="light"] .col{ background: rgba(255,255,255,.78); }

.col::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:18px;
  pointer-events:none;
  background: radial-gradient(320px 220px at 30% 0%,
    rgba(255,255,255,.10),
    rgba(255,255,255,0) 60%);
  opacity:.55;
}

.colHead{
  padding: 10px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:1;
}
:root[data-theme="light"] .colHead{ border-bottom-color: rgba(11,15,20,.10); }

.colHead::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--blue), .98), rgba(var(--blue), .35));
  animation: barGlow 3.4s ease-in-out infinite;
}
.colQuick .colHead::before{
  background: linear-gradient(90deg, rgba(var(--green), .96), rgba(var(--green), .32));
}
.colSkills .colHead::before{
  background: linear-gradient(90deg, rgba(var(--rose), .96), rgba(var(--rose), .32));
}
@keyframes barGlow{
  0%,100%{ filter: brightness(1); opacity:.85; }
  50%{ filter: brightness(1.25); opacity:1; }
}

.colTitle{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.colHint{
  margin-top:4px;
  font-size: 12px;
  color: var(--muted);
}

/* Pills */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px 10px;
  perspective: 900px;
  position:relative;
  z-index:1;
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr 1fr; padding: 10px 10px 10px; }
}

.pill{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--pillBorder);
  background: var(--pillBg);
  color: var(--text);
  text-decoration:none;
  min-height: 48px;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
  position:relative;
  overflow:hidden;
  will-change: transform;
}
.pill::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%,
    rgba(255,255,255,.10),
    rgba(255,255,255,0) 60%);
  opacity:0;
  transition: opacity .14s ease;
}
.pill:hover{
  background: var(--pillHover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.pill:hover::before{ opacity:1; }
.pill:active{ transform: translateY(-1px) scale(.985); }

.pillArrow{
  margin-left:auto;
  opacity:.55;
  font-weight: 950;
  transform: translateX(0);
  transition: transform .14s ease, opacity .14s ease;
}
.pill:hover .pillArrow{ transform: translateX(2px); opacity:.75; }

body[data-first-load="true"] .grid .pill{
  transform-origin: top;
  animation: flipboard .6s ease both;
}
body[data-first-load="true"] .grid .pill:nth-child(2){ animation-delay: .05s; }
body[data-first-load="true"] .grid .pill:nth-child(3){ animation-delay: .10s; }
body[data-first-load="true"] .grid .pill:nth-child(4){ animation-delay: .15s; }
@keyframes flipboard{
  0%{ transform: rotateX(82deg); opacity: 0; }
  60%{ transform: rotateX(-6deg); opacity: 1; }
  100%{ transform: rotateX(0deg); opacity: 1; }
}

.icon{ width:28px; height:28px; flex:0 0 auto; transition: transform .14s ease; }
.pill:hover .icon{ transform: translateY(-1px) scale(1.04); }

.pillText{ min-width:0; }
.pillName{
  font-weight: 950;
  font-size: 13px;
  line-height: 1.05;
}
.pillSub{
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.05;
}

/* Featured */
.featured{
  border-color: rgba(var(--blue), .38);
  background:
    radial-gradient(240px 140px at 20% 0%,
      rgba(var(--blue), .18),
      rgba(255,255,255,0) 60%),
    var(--pillBg);
}
.featured:hover{ border-color: rgba(var(--blue), .55); }

/* Coming soon pill */
.pillSoon{
  opacity: .70;
  border-style: dashed;
  cursor: default;
}
:root[data-theme="light"] .pillSoon{ opacity: .65; }

@media (max-width: 520px){
  .pill{ padding: 10px 9px; gap: 8px; min-height: 46px; }
  .icon{ width:26px; height:26px; }
  .pillName{ font-size: 12.5px; }
  .pillSub{ font-size: 11px; }

  .pillName, .pillSub{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16ch;
  }
}

/* Bottom */
.bottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  position:relative;
  z-index:1;
}
:root[data-theme="light"] .bottom{ border-top-color: rgba(11,15,20,.10); }

.bottomLeft{ font-size: 12px; color: var(--muted); }
.bottomRight{ display:flex; gap: 10px; flex-wrap:wrap; }

/* Ghost button links */
.ghostBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--pillBorder);
  background: var(--pillBg);
  color: var(--text);
  text-decoration:none;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  transition: transform .12s ease, background .12s ease;
}
.ghostBtn:hover{ background: var(--pillHover); transform: translateY(-1px); }
.ghostBtn:active{ transform: translateY(0px) scale(.98); }

.primaryBtn{
  border-color: rgba(var(--blue), .35);
  background:
    radial-gradient(160px 80px at 20% 0%, rgba(var(--blue), .16), rgba(255,255,255,0) 60%),
    var(--pillBg);
}
.primaryBtn:hover{ border-color: rgba(var(--blue), .55); }

/* Switch */
.switch{ position:relative; display:inline-block; width:52px; height:30px; flex:0 0 auto; }
.switch input{ opacity:0; width:0; height:0; }
.slider{
  position:absolute; cursor:pointer;
  inset:0;
  background: rgba(255,255,255,.10);
  border:1px solid var(--pillBorder);
  border-radius:999px;
  transition:.18s;
}
:root[data-theme="light"] .slider{ background: rgba(11,15,20,.06); }
.slider:before{
  content:"";
  position:absolute;
  height:22px; width:22px;
  left:4px; top:3px;
  background: rgba(231,238,247,.95);
  border-radius:999px;
  transition:.18s;
}
:root[data-theme="light"] .slider:before{ background:#0b0f14; }
.switch input:checked + .slider:before{ transform: translateX(22px); }

/* Maker */
.maker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
  opacity:.85;
}
.maker:hover{ opacity:1; }
.makerImg{
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
}
:root[data-theme="light"] .makerImg{ border-color: rgba(11,15,20,.14); }

/* Section head + content blocks */
.sectionHead{
  text-align:center;
  padding: 4px 6px 10px;
  position:relative;
  z-index:1;
}
.h2{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}
.mutedP{
  margin:8px auto 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: balance;
}

/* Learn grid */
.learnGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 10px;
  position:relative;
  z-index:1;
}
@media (max-width: 900px){
  .learnGrid{ grid-template-columns: 1fr; }
}
.learnCard{
  border: 1px solid var(--pillBorder);
  border-radius: 18px;
  padding: 12px;
  background: var(--pillBg);
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}
.learnCard::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background: radial-gradient(260px 140px at 25% 0%,
    rgba(255,255,255,.10),
    rgba(255,255,255,0) 60%);
  opacity:.55;
}
.h3{
  margin:0 0 6px;
  font-size: 14px;
  font-weight: 950;
  position:relative;
  z-index:1;
}
.learnCard .mutedP{ position:relative; z-index:1; }

/* Note */
.note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--pillBorder);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  position:relative;
  z-index:1;
}
:root[data-theme="light"] .note{ background: rgba(11,15,20,.03); }

/* Tags */
.tagGrid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-top: 10px;
  position:relative;
  z-index:1;
}
.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--pillBorder);
  background: var(--pillBg);
  text-decoration:none;
  font-size: 12.5px;
  font-weight: 950;
  transition: transform .12s ease, background .12s ease;
}
.tag:hover{ background: var(--pillHover); transform: translateY(-1px); }
.tag:active{ transform: translateY(0px) scale(.98); }

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  .orb, .shineWord::after, .colHead::before{ animation: none !important; }
  body::after{ display:none; }
  .pill, .chipLink, .tag, .ghostBtn{ transition:none !important; }
  body[data-first-load="true"] .grid .pill{ animation:none !important; }
}
