/* App home: build blocks (app-home-build.js, founder 2026-10-09: "Build and add all here https://app.tanimawoai.com/app.html
   Add great 3 D animations, effects and features wherever needed"). Scoped under .ahb. The app is dark and square;
   only round things carry !important (square.css sets border-radius: 0 !important everywhere). */
.ahb { margin: 26px 0 0; }
.ahb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.ahb-head h2 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.ahb-head p { margin: 4px 0 0; color: #94a3c4; font-size: .9rem; flex-basis: 100%; }
.ahb-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; font: 600 .9rem/1 inherit; color: #fff; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.ahb-btn svg { width: 17px; height: 17px; flex: none; }
.ahb-btn:hover, .ahb-btn:focus-visible { transform: translateY(-2px); border-color: rgba(56,182,255,.6); background: rgba(56,182,255,.12); outline: none; }
.ahb-btn.is-main { border-color: transparent; background: linear-gradient(135deg, #1d7bff, #8b5cf6); box-shadow: 0 10px 28px -12px rgba(56,130,255,.9); }
.ahb-btn.is-main:hover, .ahb-btn.is-main:focus-visible { box-shadow: 0 16px 34px -12px rgba(139,92,246,.95); }
.ahb-btn.is-tg { background: rgba(42,171,238,.14); border-color: rgba(42,171,238,.5); }
.ahb-btn.is-done { border-color: rgba(52,211,153,.7); background: rgba(52,211,153,.14); }

/* ---------- 1. Your website is live (spotlight) ---------- */
.ahb-live { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 30px 34px; overflow: hidden;
  border: 1px solid rgba(52,211,153,.28); background: radial-gradient(70% 120% at 0% 100%, rgba(52,211,153,.14), transparent 60%), radial-gradient(60% 100% at 100% 0%, rgba(56,182,255,.14), transparent 60%), linear-gradient(135deg, #04162b, #071226 60%, #0b0f28); }
.ahb-stage { perspective: 1100px; perspective-origin: 50% 40%; }
.ahb-frame { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg)) translateZ(0); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(255,255,255,.14); background: #0b1630; box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(52,211,153,.12), -30px 30px 80px -40px rgba(52,211,153,.5); }
/* ahbFloat (the frame bobbing up and down) removed 2026-10-12: the founder asked for no wiggling. */
.ahb-frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.ahb-frame-bar i { width: 9px; height: 9px; border-radius: 50% !important; background: #ff5f57; flex: none; }
.ahb-frame-bar i:nth-child(2) { background: #febc2e; } .ahb-frame-bar i:nth-child(3) { background: #28c840; }
.ahb-frame-bar span { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 10px; border-radius: 999px !important; background: rgba(0,0,0,.35); color: #9fb0d4; font-size: .72rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahb-frame-pic { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(135deg, #047857, #1e40af); display: grid; place-items: center; }
.ahb-frame-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ahb-frame-pic b { font: 800 clamp(1.2rem, 2.4vw, 1.8rem)/1.2 var(--font-head, inherit); color: #fff; padding: 0 20px; text-align: center; }
.ahb-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%); background-size: 250% 100%; animation: ahbGlare 5.5s ease-in-out infinite; }
@keyframes ahbGlare { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.ahb-frame-shadow { height: 26px; margin: 16px 8% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(52,211,153,.35), transparent 70%); filter: blur(6px); animation: ahbShadow 6s ease-in-out infinite; }
@keyframes ahbShadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.86); opacity: .55; } }
.ahb-live-tx { position: relative; min-width: 0; }
.ahb-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; border: 1px solid rgba(52,211,153,.45); background: rgba(52,211,153,.1); }
.ahb-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50% !important; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ahbPing 1.8s infinite; }
@keyframes ahbPing { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.ahb-live-tx h2 { margin: 14px 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.ahb-live-tx .ahb-addr { display: inline-block; max-width: 100%; color: #7dd3fc; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahb-live-tx .ahb-addr:hover { text-decoration: underline; }
.ahb-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 18px; color: #94a3c4; font-size: .86rem; }
.ahb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ahb-meta svg { width: 15px; height: 15px; color: #6ee7b7; }
.ahb-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ahb-share-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .82rem; color: #6ee7b7; }
.ahb-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* ---------- 1b. Build your website in 3 steps (no live website yet) ---------- */
.ahb-guide { position: relative; padding: 28px 30px 30px; border: 1px solid rgba(56,182,255,.25); overflow: hidden;
  background: radial-gradient(60% 120% at 100% 0%, rgba(139,92,246,.16), transparent 60%), linear-gradient(135deg, #061430, #0a0f2a); }
.ahb-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 6px 0 22px; perspective: 1200px; list-style: none; padding: 0; }
.ahb-path { position: absolute; left: 8%; right: 8%; top: 38px; height: 2px; z-index: 0; background: repeating-linear-gradient(90deg, rgba(56,182,255,.55) 0 10px, transparent 10px 18px); background-size: 36px 2px; animation: ahbMarch 1.2s linear infinite; }
@keyframes ahbMarch { to { background-position: 36px 0; } }
.ahb-step { position: relative; z-index: 1; padding: 22px 18px 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(8,16,40,.92); transform-style: preserve-3d;
  transform: rotateX(14deg) translateZ(calc(var(--i, 0) * -24px)); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.ahb-step:hover, .ahb-step.is-now { transform: rotateX(0) translateZ(30px); border-color: rgba(56,182,255,.6); box-shadow: 0 26px 40px -24px rgba(56,182,255,.7); }
.ahb-step-n { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 0 12px; border-radius: 50% !important; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1d7bff, #8b5cf6); transform: translateZ(40px); box-shadow: 0 0 0 6px rgba(29,123,255,.15); }
.ahb-step.is-now .ahb-step-n { animation: ahbPulse 1.6s ease-in-out infinite; }
@keyframes ahbPulse { 50% { box-shadow: 0 0 0 12px rgba(29,123,255,.05); } }
.ahb-step.is-done .ahb-step-n { background: #10b981; }
.ahb-step strong { display: block; font-size: 1rem; margin: 0 0 6px; }
.ahb-step p { margin: 0; color: #94a3c4; font-size: .85rem; line-height: 1.5; }

/* ---------- 2. Website ideas: 3D flip cards ---------- */
.ahb-ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.ahb-idea { perspective: 900px; height: 150px; }
.ahb-idea button { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; height: 100%; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ahb-idea button:focus-visible { outline: 2px solid #38b6ff; outline-offset: 3px; }
.ahb-idea:hover button, .ahb-idea button:focus-visible, .ahb-idea.is-flip button { transform: rotateY(180deg); }
.ahb-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.ahb-front { align-items: center; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, #0a1330), #08102a 75%); }
.ahb-front::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50% !important; background: var(--c); filter: blur(46px); opacity: .35; top: -30px; right: -30px; }
.ahb-front .ahb-ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 12px 26px -10px var(--c); transform: translateZ(30px); animation: ahbBob 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.5s); }
.ahb-front .ahb-ic svg { width: 26px; height: 26px; }
@keyframes ahbBob { 50% { translate: 0 -5px; } }
.ahb-front strong { position: relative; font-size: .98rem; }
.ahb-back { transform: rotateY(180deg); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 40%, #0a1330), #0a1330); }
.ahb-back p { margin: 0; font-size: .8rem; line-height: 1.45; color: #dbe4ff; }
.ahb-back span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: #fff; }
.ahb-back span svg { width: 15px; height: 15px; }

/* ---------- 3. Certificate ---------- */
.ahb-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding: 26px 30px; border: 1px solid rgba(245,197,66,.3);
  background: radial-gradient(60% 120% at 0% 0%, rgba(245,197,66,.13), transparent 60%), linear-gradient(135deg, #0d1226, #0a0f24); }
.ahb-cert-stage { perspective: 1000px; }
.ahb-cert-card { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, 12deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); border: 1px solid rgba(245,197,66,.45); background: #fffdf5; box-shadow: 0 34px 60px -30px rgba(0,0,0,.9), 0 0 40px -14px rgba(245,197,66,.45); }
.ahb-cert-card img { display: block; width: 100%; height: auto; }
.ahb-cert-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: conic-gradient(from var(--h, 0deg) at var(--mx, 50%) var(--my, 50%), rgba(255,0,128,.25), rgba(0,200,255,.25), rgba(120,255,120,.2), rgba(255,220,0,.25), rgba(255,0,128,.25)); }
.ahb-medal { position: absolute; right: -16px; bottom: -16px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50% !important; color: #3b2a00; background: radial-gradient(circle at 35% 30%, #fff4c2, #f5c542 45%, #b8860b); transform: translateZ(50px); box-shadow: 0 10px 22px -8px rgba(0,0,0,.8); animation: ahbSpinY 6s linear infinite; }
.ahb-medal svg { width: 28px; height: 28px; }
@keyframes ahbSpinY { to { transform: translateZ(50px) rotateY(360deg); } }
.ahb-cert-lock { position: relative; aspect-ratio: 1.414; display: grid; place-items: center; text-align: center; padding: 20px; border: 1px dashed rgba(245,197,66,.45); background: repeating-linear-gradient(45deg, rgba(245,197,66,.05) 0 12px, transparent 12px 24px), #0f1530; color: #f5d08a; transform: rotateX(8deg) rotateY(12deg); }
.ahb-cert-lock svg { width: 40px; height: 40px; margin: 0 auto 8px; display: block; }
.ahb-cert-tx h2 { margin: 0 0 8px; font-size: 1.35rem; }
.ahb-cert-tx p { margin: 0 0 16px; color: #94a3c4; font-size: .92rem; line-height: 1.55; }

/* ---------- 4. Built by students today: 3D ring ---------- */
.ahb-ring-wrap { position: relative; height: 330px; perspective: 1400px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: radial-gradient(60% 80% at 50% 100%, rgba(56,182,255,.14), transparent 70%), #060c20; }
.ahb-ring { position: absolute; left: 50%; top: 50%; width: 250px; height: 175px; margin: -122px 0 0 -125px; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--a, 0deg)); transition: transform .9s cubic-bezier(.2,.8,.2,1); list-style: none; padding: 0; }
.ahb-ring li { position: absolute; inset: 0; transform: rotateY(calc(var(--k) * var(--step))) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ahb-ring a { display: block; height: 100%; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.14); background: #0b1630; box-shadow: 0 26px 40px -24px rgba(0,0,0,.9); transition: border-color .2s, transform .3s; }
.ahb-ring a:hover, .ahb-ring a:focus-visible { border-color: rgba(56,182,255,.8); transform: translateZ(20px); outline: none; }
.ahb-ring .ahb-rpic { position: relative; display: block; height: 128px; overflow: hidden; background: linear-gradient(135deg, #1d4ed8, #7c3aed); }
.ahb-ring .ahb-rpic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ahb-ring .ahb-rtx { display: flex; flex-direction: column; padding: 7px 10px; font-size: .78rem; line-height: 1.3; }
.ahb-ring .ahb-rtx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahb-ring .ahb-rtx small { color: #94a3c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahb-ring-floor { position: absolute; left: 10%; right: 10%; bottom: 18px; height: 40px; background: radial-gradient(50% 50% at 50% 50%, rgba(56,182,255,.3), transparent 70%); filter: blur(8px); pointer-events: none; }
.ahb-ring-nav { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.ahb-ring-nav button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% !important; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.18); background: rgba(6,12,32,.8); }
.ahb-ring-nav button:hover, .ahb-ring-nav button:focus-visible { border-color: #38b6ff; outline: none; }
.ahb-ring-nav svg { width: 18px; height: 18px; }

/* ---------- Rise when scrolled into view ---------- */
.ahb-in { opacity: 0; transform: translateY(26px) rotateX(8deg); transform-origin: 50% 100%; transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.ahb-in.is-in { opacity: 1; transform: none; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 980px) {
  .ahb-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ahb-live, .ahb-cert { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; }
  .ahb-steps { grid-template-columns: 1fr; gap: 14px; }
  .ahb-path { left: 33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(56,182,255,.55) 0 10px, transparent 10px 18px); animation: none; }
  .ahb-step { transform: none; }
  .ahb-step:hover, .ahb-step.is-now { transform: translateZ(0) scale(1.01); }
  .ahb-guide { padding: 22px 16px; }
}
@media (max-width: 640px) {
  .ahb-idea { height: 176px; }
  .ahb-face { padding: 12px; gap: 8px; }
  .ahb-back p { font-size: .74rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
  .ahb-acts .ahb-btn { flex: 1 1 calc(50% - 10px); justify-content: center; white-space: nowrap; }
  .ahb-acts .ahb-btn.is-main, .ahb-acts .ahb-btn.is-wide { flex-basis: 100%; }
  .ahb-ring-wrap { height: 300px; }
  .ahb-ring { width: 200px; height: 150px; margin: -112px 0 0 -100px; }
  .ahb-ring .ahb-rpic { height: 104px; }
  .ahb-frame { --ry: -8deg; }
}
@media (prefers-reduced-motion: reduce) {
  .ahb-frame, .ahb-frame::after, .ahb-frame-shadow, .ahb-pill::before, .ahb-path, .ahb-step-n, .ahb-front .ahb-ic, .ahb-medal { animation: none !important; }
  .ahb-in { opacity: 1; transform: none; transition: none; }
  .ahb-idea button, .ahb-ring { transition: none; }
}
