.feature-card h3 {
  margin-bottom: 0.2rem;
}

.feature-card p {
  margin-top: 0;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.feature-card:hover .tech-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.feature-card:hover .tech-tag:nth-child(2) {
  transition-delay: 0.1s;
}

@keyframes icon-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.mini-content h4 {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  color: #fff;
}

.mini-content p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 968px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .philosophy-cards {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-card .card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.card-visualizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 50%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 50%);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.feature-card:hover .card-visualizer {
  opacity: 1;
}

.code-scroll-container {
  padding: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.code-track {
  will-change: transform;
  transform: translateY(0);
}

.code-line {
  white-space: nowrap;
  display: block;
}

.keyword {
  color: #c678dd;
}

.func {
  color: #61afef;
}

.string {
  color: #98c379;
}

.prop {
  color: #d19a66;
}

.val {
  color: #d19a66;
}

.comp {
  color: #e5c07b;
}

.comment {
  color: #5c6370;
  font-style: italic;
}

.fluid-container {
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s;
}

.fluid-shape {
  position: absolute;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.3;
}

.feature-card.fluid:hover .fluid-shape {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
}

.fluid-shape.main-shape {
  z-index: 2;
}

.feature-card.fluid:hover .fluid-shape.main-shape {
  border-color: var(--accent-primary);
  background: rgba(85, 255, 99, 0.05);
}

.fluid-shape.sub-shape {
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
}

.fluid-container.state-0 .main-shape {
  width: 140px;
  height: 60px;
  top: 40px;
  right: 30px;
}

.fluid-container.state-0 .sub-shape {
  width: 50px;
  height: 50px;
  top: 110px;
  right: 60px;
}

.fluid-container.state-1 .main-shape {
  width: 120px;
  height: 70px;
  top: 30px;
  right: 40px;
}

.fluid-container.state-1 .sub-shape {
  width: 60px;
  height: 40px;
  top: 110px;
  right: 40px;
}

.fluid-container.state-2 .main-shape {
  width: 100px;
  height: 80px;
  top: 25px;
  right: 50px;
}

.fluid-container.state-2 .sub-shape {
  width: 70px;
  height: 40px;
  top: 115px;
  right: 70px;
}

.fluid-container.state-3 .main-shape {
  width: 130px;
  height: 50px;
  top: 50px;
  right: 25px;
}

.fluid-container.state-3 .sub-shape {
  width: 40px;
  height: 60px;
  top: 90px;
  right: 100px;
}

.fluid-container.state-4 .main-shape {
  width: 150px;
  height: 55px;
  top: 35px;
  right: 20px;
}

.fluid-container.state-4 .sub-shape {
  width: 80px;
  height: 35px;
  top: 100px;
  right: 50px;
}


.reactor-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translate(15%, -15%);
}

.reactor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s;
}

.ring-1 {
  width: 180px;
  height: 180px;
  border-style: dashed;
}

.ring-2 {
  width: 130px;
  height: 130px;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.ring-3 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.reactor-core {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.6;
  transition: all 0.5s ease;
}

.reactor-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.5s;
}

.reactor-dot-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.reactor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.wrap-1 .dot-1 {
  top: -90px;
}

.wrap-2 .dot-2 {
  top: 65px;
}

.wrap-3 {
  display: none;
}

.speed-lines-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.speed-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  transform-origin: 0 0;
  opacity: 0;
}

.speed-line:nth-child(1) {
  --r: 0deg;
}

.speed-line:nth-child(2) {
  --r: 60deg;
}

.speed-line:nth-child(3) {
  --r: 120deg;
}

.speed-line:nth-child(4) {
  --r: 180deg;
}

.speed-line:nth-child(5) {
  --r: 240deg;
}

.speed-line:nth-child(6) {
  --r: 300deg;
}

.feature-card.performance:hover .reactor-core {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 1;
  box-shadow: 0 0 50px var(--accent-primary);
}

.feature-card.performance:hover .reactor-glow {
  opacity: 0.2;
}

.feature-card.performance:hover .reactor-dot {
  opacity: 1;
}

.feature-card.performance:hover .ring-1 {
  animation: spin 4s linear infinite;
  border-color: rgba(85, 255, 99, 0.4);
  border-width: 2px;
}

.feature-card.performance:hover .ring-2 {
  animation: spin-rev 2.5s linear infinite;
  border-color: rgba(85, 255, 99, 0.5);
  border-width: 2px;
}

.feature-card.performance:hover .ring-3 {
  animation: pulse-ring 0.8s ease-in-out infinite;
  border-color: rgba(85, 255, 99, 0.8);
}

.feature-card.performance:hover .wrap-1 {
  animation: spin 4s linear infinite;
}

.feature-card.performance:hover .wrap-2 {
  animation: spin-rev 2.5s linear infinite;
}

.feature-card.performance:hover .speed-line {
  animation: warp-speed 0.5s linear infinite;
}

.feature-card.performance:hover .speed-line:nth-child(even) {
  animation-delay: 0.1s;
}

.feature-card.performance:hover .speed-line:nth-child(odd) {
  animation-delay: 0.25s;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-rev {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes warp-speed {
  0% {
    transform: rotate(var(--r, 0deg)) translateX(40px) scaleX(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(var(--r, 0deg)) translateX(120px) scaleX(2);
    opacity: 0;
  }
}

.detail-build-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.ui-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  opacity: 0.3;
  transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ui-header {
  width: 80%;
  height: 10px;
  top: 30px;
  left: 10%;
}

.ui-hero-text {
  width: 40%;
  height: 15px;
  top: 60px;
  left: 10%;
}

.ui-hero-sub {
  width: 30%;
  height: 8px;
  top: 85px;
  left: 10%;
}

.ui-btn {
  width: 20%;
  height: 25px;
  top: 110px;
  left: 10%;
  opacity: 0.2;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-image {
  width: 35%;
  height: 60px;
  top: 60px;
  right: 10%;
  opacity: 0.2;
}

.detail-build-container.state-1 .ui-element {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
}

.detail-build-container.state-1 .ui-btn {
  background: var(--accent-primary);
  color: #000;
  opacity: 1;
  width: 25%;
}

.detail-build-container.state-1 .ui-image {
  opacity: 1;
  transform: scale(1.05);
}

.detail-build-container.state-2 .ui-element {
  opacity: 1;
}

.detail-build-container.state-2 .ui-header {
  width: 60px;
  height: 140px;
  top: 20px;
  left: 10px;
}

.detail-build-container.state-2 .ui-hero-text {
  width: 40%;
  height: 15px;
  top: 30px;
  left: 85px;
  opacity: 1;
}

.detail-build-container.state-2 .ui-hero-sub {
  width: 30%;
  height: 8px;
  top: 60px;
  left: 85px;
  opacity: 1;
}

.detail-build-container.state-2 .ui-image {
  width: 30%;
  height: 80px;
  top: 30px;
  right: 10px;
  left: auto;
  opacity: 1;
}

.detail-build-container.state-2 .ui-btn {
  width: 80px;
  top: 100px;
  left: 85px;
  opacity: 1;
}

.detail-build-container.state-3 .ui-element {
  opacity: 1;
}

.detail-build-container.state-3 .ui-header {
  width: 90%;
  height: 20px;
  top: 20px;
  left: 5%;
}

.detail-build-container.state-3 .ui-hero-text {
  width: 50px;
  height: 50px;
  top: 60px;
  left: 5%;
  opacity: 1;
}

.detail-build-container.state-3 .ui-hero-sub {
  width: 50px;
  height: 50px;
  top: 60px;
  left: calc(5% + 60px);
  opacity: 1;
}

.detail-build-container.state-3 .ui-btn {
  width: 50px;
  height: 50px;
  top: 60px;
  left: calc(5% + 120px);
  opacity: 1;
}

.detail-build-container.state-3 .ui-image {
  width: 90%;
  height: 60px;
  top: 120px;
  right: auto;
  left: 5%;
  opacity: 1;
}