/* ═══════════════════════════════════════════════════════════════
   TAWFT — "There's A Widget For That"
   Global Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html, body {
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background-color: #131313;
  color: #e5e2e1;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}
::selection {
  background: rgba(137,206,255,0.2);
  color: #89ceff;
}

/* ─── Keyframe Animations ───────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; filter: blur(30px); transform: scale(1); }
  50% { opacity: 0.5; filter: blur(40px); transform: scale(1.05); }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-anim {
  0% { opacity: 1; z-index: 100; }
  80% { opacity: 1; z-index: 100; }
  100% { opacity: 0; z-index: -1; visibility: hidden; }
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -15px) rotate(2deg); }
  66% { transform: translate(-10px, 15px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ─── Animation Utilities ───────────────────────────────────── */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite; animation-delay: 2s; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 6s ease-in-out infinite; }
.animate-reveal { animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-splash { animation: splash-anim 2s cubic-bezier(0.8, 0, 0.2, 1) forwards; }
.animate-drift { animation: drift 12s linear infinite; }
.animate-spin-slow { animation: spin-slow 10s linear infinite; }
.animate-spin-slow-reverse { animation: spin-slow-reverse 15s linear infinite; }

.reveal-delay-1 { animation-delay: 1.5s; }
.reveal-delay-2 { animation-delay: 1.8s; }
.reveal-delay-3 { animation-delay: 2s; }
.reveal-delay-4 { animation-delay: 2.2s; }
.reveal-delay-5 { animation-delay: 2.4s; }

/* ─── 3D Perspective ────────────────────────────────────────── */
.perspective-area { perspective: 1200px; transform-style: preserve-3d; }
.rotate-3d { transform: rotateY(-15deg) rotateX(8deg) rotateZ(-2deg); }
.rotate-3d-reverse { transform: rotateY(15deg) rotateX(8deg) rotateZ(2deg); }

/* ─── Layout Utilities ──────────────────────────────────────── */
.container-max { max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
.ambient-bg {
  background: radial-gradient(circle at 15% 50%, rgba(137,206,255,0.05), transparent 35%),
              radial-gradient(circle at 85% 30%, rgba(220,184,255,0.05), transparent 35%),
              radial-gradient(circle at 50% 80%, rgba(0,180,255,0.03), transparent 40%);
}

/* ─── Gradient Text ─────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(to right, rgba(137,206,255,0.9), rgba(220,184,255,0.9));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Syntax Highlighting ───────────────────────────────────── */
.syn-type { color: rgba(201,230,255,0.9); font-weight: 500; }
.syn-prop { color: rgba(137,206,255,0.8); }
.syn-str  { color: rgba(255,220,188,0.8); }
.syn-val  { color: rgba(220,184,255,0.8); }
.syn-base { color: rgba(189,200,210,0.7); }

/* ─── Dot Grid ──────────────────────────────────────────────── */
.dot-grid {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=");
  opacity: 0.1; mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════════════════════
   SPLASH OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.splash-overlay { position: fixed; inset: 0; background: #131313; z-index: 100; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 1; visibility: visible; transition: opacity 0.6s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.8, 0, 0.2, 1); }
.splash-overlay--hidden { opacity: 0; visibility: hidden; }
.splash-overlay__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.splash-overlay__glow { position: absolute; inset: -80px; background: linear-gradient(to right, rgba(137,206,255,0.2), rgba(220,184,255,0.1), rgba(255,184,106,0.2)); filter: blur(60px); opacity: 0.4; }
.splash-overlay__logo { font-family: 'Geist', sans-serif; font-size: clamp(64px, 12vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; color: #fff; position: relative; z-index: 10; text-align: center; }
.splash-overlay__author { font-family: 'JetBrains Mono', monospace; font-size: clamp(11px, 2vw, 14px); font-weight: 500; color: rgba(255, 255, 255, 0.48); margin-top: 16px; letter-spacing: 0.12em; padding-left: 0.12em; text-transform: uppercase; position: relative; z-index: 10; text-align: center; }
.splash-overlay__line { height: 2px; width: 0; background: linear-gradient(to right, #89ceff, #dcb8ff); margin-top: 24px; border-radius: 9999px; overflow: hidden; position: relative; }
.splash-overlay__line-fill { position: absolute; inset: 0; background: rgba(255,255,255,0.5); width: 100%; animation: reveal 1s ease-out forwards; }

/* ═══════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.ambient-bg-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #131313; }
.ambient-mesh, .ambient-particle { display: none; }

/* ═══════════════════════════════════════════════════════════════
   TOP NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.top-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #131313; border-bottom: 1px solid rgba(255,255,255,0.03); }
.top-nav__container { display: flex; justify-content: center; align-items: center; height: 56px; padding: 0 40px; }
.top-nav__logo { font-family: 'Geist', sans-serif; font-size: clamp(14px, 4vw, 20px); font-weight: 700; letter-spacing: -0.04em; color: #fff; text-decoration: none; text-align: center; white-space: nowrap; }
.top-nav__links { display: flex; align-items: center; gap: 24px; }
.top-nav__link { font-family: 'Inter', sans-serif; font-size: 13px; color: #bdc8d2; text-decoration: none; transition: color 0.3s ease; }
.top-nav__link:hover { color: #fff; }
.top-nav__link--active { color: #fff; font-weight: 500; }
.top-nav__actions { display: flex; align-items: center; gap: 24px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 9999px; background: rgba(255,255,255,0.08); color: #fff; font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(12px); text-decoration: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.1); }
.btn-gradient { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 9999px; background: linear-gradient(135deg, #89ceff, #dcb8ff); color: #00344d; font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-gradient:hover { filter: brightness(1.15); box-shadow: 0 0 20px rgba(137,206,255,0.3); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-section { display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 50vh; padding: 32px 16px; position: relative; }
.hero-left { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; z-index: 10; padding-top: 32px; }
.hero-right { width: 100%; height: 500px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-title { font-family: 'Geist', sans-serif; font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; color: #fff; margin-bottom: 20px; }
.hero-subtitle { font-family: 'Inter', sans-serif; font-size: 15px; color: rgba(189,200,210,0.7); max-width: 448px; line-height: 1.6; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════════════ */
.search-bar-wrap { width: 100%; max-width: 448px; position: relative; }
.search-bar__glow { position: absolute; inset: -4px; background: linear-gradient(to right, rgba(137,206,255,0.1), rgba(220,184,255,0.1)); border-radius: 0.75rem; filter: blur(12px); opacity: 0.3; transition: opacity 0.5s ease; pointer-events: none; }
.search-bar-wrap:hover .search-bar__glow { opacity: 0.5; }
.search-bar { position: relative; display: flex; align-items: center; background: rgba(14,14,14,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; padding: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); transition: border-color 0.3s ease; }
.search-bar:focus-within { border-color: rgba(137,206,255,0.3); }
.search-bar__icon { font-size: 20px; color: rgba(189,200,210,0.6); margin-left: 12px; margin-right: 8px; }
.search-bar__input { background: transparent; border: none; outline: none; width: 100%; color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; padding: 10px 0; }
.search-bar__input::placeholder { color: rgba(189,200,210,0.4); }
.search-bar__input::-webkit-search-cancel-button { display: none; }
.search-bar__clear {
  width: 30px;
  height: 30px;
  margin-right: 4px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(189, 200, 210, 0.58);
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-bar__clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.07);
}
.search-bar__clear:focus-visible {
  outline: 2px solid rgba(137, 206, 255, 0.65);
  outline-offset: 2px;
}
.search-bar__clear-icon { font-size: 17px; }

/* ═══════════════════════════════════════════════════════════════
   HERO 3D AREA
   ═══════════════════════════════════════════════════════════════ */
.hero-3d { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-3d__glow { position: absolute; width: 90%; height: 90%; background: linear-gradient(to top right, rgba(137,206,255,0.1), rgba(220,184,255,0.05), rgba(255,184,106,0.1)); border-radius: 50%; filter: blur(90px); z-index: -20; }
.hero-3d__ring { position: absolute; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; z-index: 0; }
.hero-3d__ring--1 { top: 10%; right: 30%; width: 48px; height: 48px; border-top-color: rgba(137,206,255,0.3); }
.hero-3d__ring--2 { bottom: 10%; left: 20%; width: 64px; height: 64px; border-bottom-color: rgba(220,184,255,0.3); }

/* ═══════════════════════════════════════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════════════════════════════════════ */
.phone-mockup { position: relative; width: 240px; height: 480px; background: #0e0e0e; border: 1px solid rgba(255,255,255,0.1); border-radius: 32px; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.8), 0 0 40px rgba(137,206,255,0.05); overflow: hidden; display: flex; flex-direction: column; z-index: 10; }
.phone-mockup__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent); pointer-events: none; z-index: 20; }
.phone-mockup__screen { padding: 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; padding-top: 40px; }
.phone-mockup__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phone-mockup__header-bar { width: 50%; height: 16px; background: rgba(255,255,255,0.1); border-radius: 6px; }
.phone-mockup__header-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.phone-mockup__hero { width: 100%; height: 128px; border-radius: 0.75rem; background: linear-gradient(to bottom right, rgba(137,206,255,0.1), transparent); border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.phone-mockup__shimmer { position: absolute; inset: 0; background: rgba(255,255,255,0.05); animation: shimmer 2s infinite; }
.phone-mockup__list-item { width: 100%; padding: 12px; border-radius: 0.75rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.02); display: flex; align-items: center; gap: 12px; }
.phone-mockup__list-icon { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.phone-mockup__list-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.phone-mockup__list-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.phone-mockup__list-bar--dim { background: rgba(255,255,255,0.05); }
.phone-mockup__bottom-nav { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-around; align-items: center; }
.phone-mockup__nav-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.phone-mockup__nav-dot--active { background: rgba(137,206,255,0.2); }

/* ═══════════════════════════════════════════════════════════════
   FLOATING WIDGETS
   ═══════════════════════════════════════════════════════════════ */
.floating-widget { position: absolute; z-index: 20; }
.fw-pos-info { top: 25%; right: 5%; }
.fw-pos-code { bottom: 25%; left: 5%; }
.fw-pos-toggle { top: 15%; left: 15%; }
.fw-pos-slider { bottom: 20%; right: 10%; }

.fw-info { width: 192px; padding: 12px; background: rgba(14,14,14,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5); }
.fw-info__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fw-info__icon-wrap { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(to bottom right, rgba(137,206,255,0.2), rgba(137,206,255,0.05)); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(137,206,255,0.2); }
.fw-info__icon { font-size: 14px; color: #89ceff; }
.fw-info__title { font-size: 11px; font-weight: 600; color: #fff; }
.fw-info__sub { font-size: 9px; color: rgba(189,200,210,0.7); }
.fw-info__bar { height: 6px; width: 100%; background: rgba(255,255,255,0.05); border-radius: 9999px; overflow: hidden; }
.fw-info__bar-fill { height: 100%; width: 66%; background: rgba(137,206,255,0.5); }

.fw-code { width: 224px; padding: 12px; background: rgba(8,8,8,0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5); }
.fw-code__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.fw-code__filename { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #bdc8d2; }
.fw-code__dots { display: flex; gap: 4px; }
.fw-code__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.fw-code__body { font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1.5; }
.fw-code__indent { margin-left: 8px; }
.fw-code__indent-2 { margin-left: 16px; }

.fw-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(14,14,14,0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5); }
.fw-toggle__label { font-size: 9px; font-weight: 500; color: #fff; }
.fw-toggle__track { width: 28px; height: 16px; background: rgba(137,206,255,0.3); border-radius: 9999px; position: relative; }
.fw-toggle__thumb { position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; background: #89ceff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.fw-slider { display: flex; flex-direction: column; gap: 6px; padding: 10px; width: 128px; background: rgba(14,14,14,0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5); }
.fw-slider__header { display: flex; justify-content: space-between; align-items: center; }
.fw-slider__label { font-size: 9px; color: #fff; }
.fw-slider__value { font-size: 9px; color: #89ceff; }
.fw-slider__track { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 9999px; position: relative; }
.fw-slider__fill { position: absolute; left: 0; top: 0; height: 100%; width: 85%; background: linear-gradient(to right, #89ceff, #dcb8ff); border-radius: 9999px; }
.fw-slider__thumb { position: absolute; left: 85%; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ═══════════════════════════════════════════════════════════════
   SHOWCASE SECTION
   ═══════════════════════════════════════════════════════════════ */
.showcase-section { padding: 32px 16px; display: flex; flex-direction: column; gap: 20px; }
.section-heading { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-heading__title { font-family: 'Geist', sans-serif; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.04em; margin-bottom: 16px; }
.showcase-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }

.category-chip { padding: 8px 16px; border-radius: 9999px; background: transparent; color: #bdc8d2; border: 1px solid transparent; font-family: 'Geist', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; }
.category-chip:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); }
.category-chip--active { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.1); backdrop-filter: blur(12px); }

/* Load More */
.load-more-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 0 12px;
}

.load-more-btn {
  position: relative;
  isolation: isolate;
  min-width: 238px;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(137, 206, 255, 0.2);
  border-radius: 9999px;
  background:
    linear-gradient(#151719, #151719) padding-box,
    linear-gradient(120deg, rgba(137, 206, 255, 0.65), rgba(220, 184, 255, 0.5)) border-box;
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(137, 206, 255, 0.1), rgba(220, 184, 255, 0.12), transparent 80%);
  transform: translateX(-110%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(137, 206, 255, 0.42);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(137, 206, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.load-more-btn:hover::before {
  transform: translateX(110%);
}

.load-more-btn:active {
  transform: translateY(0) scale(0.98);
}

.load-more-btn:focus-visible {
  outline: 2px solid rgba(137, 206, 255, 0.75);
  outline-offset: 4px;
}

.load-more-btn__icon {
  font-size: 17px;
  font-variation-settings: 'wght' 400;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover .load-more-btn__icon {
  transform: translateY(3px);
}

.load-more-btn.loading,
.load-more-btn:disabled {
  cursor: wait;
  color: rgba(255, 255, 255, 0.7);
  transform: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.load-more-btn__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #89ceff;
  animation: load-more-spin 0.75s linear infinite;
}

@keyframes load-more-spin {
  to { transform: rotate(360deg); }
}

/* Category loading state */
.category-loader {
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(circle at center, rgba(137, 206, 255, 0.045), transparent 34%),
    rgba(14, 14, 14, 0.18);
  animation: reveal 0.3s ease-out forwards;
}

.category-loader__visual {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.category-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: #89ceff;
  border-right-color: rgba(220, 184, 255, 0.75);
  box-shadow: 0 0 24px rgba(137, 206, 255, 0.08);
  animation: category-loader-spin 0.9s linear infinite;
}

.category-loader__icon {
  font-size: 25px;
  color: rgba(255, 255, 255, 0.78);
  animation: category-loader-pulse 1.5s ease-in-out infinite;
}

.category-loader__title {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.category-loader__hint {
  margin-top: 4px;
  color: rgba(189, 200, 210, 0.48);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}

@keyframes category-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes category-loader-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}

/* ─── Showcase Item ─────────────────────────────────────────── */
.showcase-item { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.showcase-item-wrap { display: block; }

/* ─── Widget Preview ────────────────────────────────────────── */
/* ─── Widget Preview ────────────────────────────────────────── */
.widget-preview { position: relative; border-radius: 12px; overflow: hidden; background: #0b0b0b; border: 1px solid rgba(255,255,255,0.05); height: 460px; display: flex; align-items: center; justify-content: center; }
.widget-preview__content { position: relative; z-index: 10; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.widget-preview__img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; opacity: 1; }
.widget-preview__video-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.widget-preview__video-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; min-height: 96px; padding: 36px 22px 18px; background: linear-gradient(to top, rgba(5,5,6,0.94) 0%, rgba(5,5,6,0.68) 45%, transparent 100%); pointer-events: none; opacity: 0; transition: opacity 0.25s ease; }
.widget-preview--loaded .widget-preview__video-overlay { opacity: 1; }
.widget-preview__video-title { color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0,0,0,0.75); }
.widget-preview__code-toggle { display: none; }
.widget-preview__unavailable { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(189,200,210,0.55); font-family: 'Inter', sans-serif; font-size: 12px; }
.widget-preview__unavailable-icon { font-size: 28px; color: rgba(189,200,210,0.35); }

/* ─── Premium Code Editor Preview ────────────────────────────── */
.code-editor-wrapper {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #08080a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 460px;
}

.code-editor-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.code-editor-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #08080a;
  border-radius: 11px;
  overflow: hidden;
}

.mac-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  user-select: none;
}

.mac-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot-red { background-color: #ff5f56; }
.mac-dot-yellow { background-color: #ffbd2e; }
.mac-dot-green { background-color: #27c93f; }

.mac-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
  text-align: center;
}

.copy-btn {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.05);
}

.copy-btn--success {
  color: #27c93f !important;
  background: rgba(39, 201, 63, 0.05) !important;
  border-color: rgba(39, 201, 63, 0.1) !important;
}

.copy-icon {
  font-size: 14px;
}

.code-editor-body {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  background: #08080a;
}

.code-editor-pre {
  margin: 0 !important;
  padding: 16px !important;
  background: transparent !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.code-editor-pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.code-editor-pre::-webkit-scrollbar-track {
  background: transparent;
}

.code-editor-pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 2px solid #08080a;
}

.code-editor-pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.code-editor-code {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #e5e2e1 !important;
  tab-size: 2;
  display: block;
}

.code-editor-code ::selection {
  background: rgba(137, 206, 255, 0.2) !important;
  color: inherit !important;
}

/* Prism line numbers integration overrides */
.code-editor-pre.line-numbers {
  padding-left: 3.8em !important;
}

.line-numbers .line-numbers-rows {
  border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
  padding-right: 10px !important;
  left: -3em !important;
  top: 16px !important;
}

.line-numbers-rows > span::before {
  color: rgba(255, 255, 255, 0.18) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
}

/* ─── Glass Nav Preview ─────────────────────────────────────── */
.preview-glass-nav { width: 224px; height: 48px; background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-around; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.preview-glass-nav__item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.preview-glass-nav__item--dim { transition: transform 0.3s ease; }
.preview-glass-nav__item--dim:hover { transform: translateY(-2px); }
.preview-glass-nav__dot { width: 4px; height: 4px; border-radius: 50%; background: #fff; }

/* ─── Premium Card Preview ──────────────────────────────────── */
.preview-card { padding: 12px; background: rgba(14,14,14,0.8); backdrop-filter: blur(20px); border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.05); width: 224px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.preview-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-card__title-bar { height: 10px; width: 50%; background: rgba(255,255,255,0.1); border-radius: 6px; }
.preview-card__bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.preview-card__bar-wrap { height: 4px; width: 100%; background: rgba(255,255,255,0.05); border-radius: 9999px; overflow: hidden; }
.preview-card__bar-fill { height: 100%; background: linear-gradient(to right, rgba(137,206,255,0.8), rgba(220,184,255,0.8)); }
.preview-card__action { padding: 6px; width: 100%; background: rgba(255,255,255,0.03); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s ease; }
.preview-card__action:hover { background: rgba(255,255,255,0.06); }
.preview-card__action-label { color: rgba(255,255,255,0.7); font-family: 'Geist', sans-serif; font-size: 8px; font-weight: 600; letter-spacing: 0.15em; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.app-footer { background: transparent; width: 100%; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.03); position: relative; z-index: 10; margin-top: 16px; }
.app-footer__container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 40px; text-align: center; }
.app-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-footer__logo { font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.04em; color: rgba(255,255,255,0.8); }
.app-footer__copyright { font-family: 'Inter', sans-serif; font-size: 11px; color: rgba(189,200,210,0.5); }

/* ─── App Main ──────────────────────────────────────────────── */
.app-main { flex-grow: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 64px; }

/* ─── Placeholder Pages ─────────────────────────────────────── */
.placeholder-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.placeholder-page__inner { text-align: center; max-width: 600px; }
.placeholder-page__title { font-family: 'Geist', sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -0.04em; color: #fff; margin-bottom: 16px; }
.placeholder-page__desc { font-family: 'Inter', sans-serif; font-size: 16px; color: rgba(189,200,210,0.7); line-height: 1.6; }

.showcase-status {
  padding: 60px 20px;
  text-align: center;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.showcase-status.error {
  color: #ff5f56;
}

/* ─── Premium Empty State ────────────────────────────────────── */
.empty-state {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 14, 0.4);
  animation: reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.empty-state__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}
.empty-state__icon {
  font-size: 28px;
  color: rgba(189, 200, 210, 0.4);
}
.empty-state__title {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}
.empty-state__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(189, 200, 210, 0.6);
  max-width: 360px;
  line-height: 1.6;
}

/* ─── Premium Error Card ─────────────────────────────────────── */
.error-card-wrap {
  width: 100%;
  max-width: 440px;
  margin: 60px auto;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 95, 86, 0.15);
  background: rgba(14, 14, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 95, 86, 0.03);
  overflow: hidden;
  text-align: center;
  animation: reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 95, 86, 0.08);
  border: 1px solid rgba(255, 95, 86, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 95, 86, 0.03);
}

.error-card__icon {
  font-size: 24px;
  color: #ff5f56;
}

.error-card__title {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.error-card__message {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(189, 200, 210, 0.7);
  line-height: 1.6;
  max-width: 320px;
}

.error-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.error-card__btn:hover {
  background: #ff5f56;
  color: #fff;
  border-color: #ff5f56;
  box-shadow: 0 0 15px rgba(255, 95, 86, 0.25);
}

.error-card__btn-icon {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .top-nav__container { padding: 0 16px; }
  .hero-title { font-size: 36px !important; }
  .hero-subtitle { font-size: 14px !important; }
  .widget-preview, .code-editor-wrapper { height: 380px; }
  .showcase-item--mobile-code-toggle .showcase-item__preview { order: 1; }
  .showcase-item--mobile-code-toggle .showcase-item__code { order: 2; }
  .showcase-item--mobile-code-toggle .showcase-item__code { display: none; }
  .showcase-item--mobile-code-toggle.showcase-item--code-expanded .showcase-item__code { display: flex; }
  .widget-preview__video-overlay { padding-right: 92px; }
  .widget-preview__code-toggle {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 40px;
    min-width: 58px;
    padding: 0 9px;
    color: rgba(255,255,255,0.92);
    background: rgba(16,16,18,0.82);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .widget-preview__code-toggle:active { transform: scale(0.96); }
  .widget-preview__code-toggle--expanded {
    color: #89ceff;
    background: rgba(20,35,45,0.9);
    border-color: rgba(137,206,255,0.38);
  }
  .widget-preview__code-icon { font-size: 20px; }
  .widget-preview__code-chevron { font-size: 17px; }
}
@media (min-width: 768px) {
  .showcase-section { padding: 32px 40px; }
  .app-footer__brand { align-items: center; }
}
@media (min-width: 1024px) {
  .hero-section { flex-direction: row; gap: 0; padding: 0 40px; }
  .hero-left { width: 41.67%; padding-top: 0; }
  .hero-right { width: 58.33%; }
  .showcase-item { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
  .showcase-item--reversed { grid-template-columns: 5fr 7fr; }
}
