/* ==========================================================================
   HERO COMPONENT STYLES — NEXT-GEN IMMERSIVE TECH BANNER (GEN-Z TECH THEME)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  background-color: #F8FAFC;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 122, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  background-size: cover;
  background-position: center;
  color: #0F172A;
  padding: clamp(3.5rem, 6vw, 4.75rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}

/* Radiant Ambient Aurora Orbs */
.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-orb-indigo {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
  animation: ambientOrb1 16s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-orb-cyan {
  bottom: 0;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  animation: ambientOrb2 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambientOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -20px) scale(1.08);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes ambientOrb2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 20px) scale(1.06);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Ambient Circuit Grid & Tech Orbit Nodes Backdrop */
.hero-tech-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-grid-matrix {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(56, 189, 248, 0.10) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: -1px -1px, 0 0, 0 0;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.9) 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.9) 15%, transparent 75%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-atmospheric-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 750px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 122, 0, 0.07) 0%, rgba(14, 165, 233, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ambientGlowDrift 18s ease-in-out infinite alternate;
}

/* Two-Column Responsive Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* Live Availability Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  background: rgba(255, 122, 0, 0.08);
  color: #C2410C;
  border: 1px solid rgba(255, 122, 0, 0.28);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  width: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 14px rgba(255, 122, 0, 0.12);
}

.hero-tag-text {
  letter-spacing: 0.01em;
}

/* Approved Headline with Elevated Visual Hierarchy */
.hero-title {
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #0F172A;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-title-lead {
  color: #333740;
  text-shadow: none;
  display: block;
}

.hero-title-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #FF6B00 0%, #EA580C 45%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 14px rgba(255, 107, 0, 0.22));
}

.title-laser-glow {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF7A00 0%, #0284C7 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4), 0 0 18px rgba(2, 132, 199, 0.3);
  animation: laserPulse 4s ease-in-out infinite;
}

@keyframes laserPulse {

  0%,
  100% {
    opacity: 0.75;
    transform: scaleX(0.96);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.02);
  }
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.65rem;
  max-width: 580px;
}

.hero-subtitle .sub-pill {
  color: #0F172A;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

/* CTA Group & Shimmer */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.hero-main-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px -2px rgba(255, 122, 0, 0.45);
}

.hero-dir-btn {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-dir-btn:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

.hero-main-btn .btn-shimmer {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  animation: btnShimmer 3.5s infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0% {
    left: -100%;
  }

  35%,
  100% {
    left: 200%;
  }
}

/* Trust Badges Under Hero */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid #E2E8F0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.35);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.trust-check {
  width: 1.05rem;
  height: 1.05rem;
  color: #10B981;
  flex-shrink: 0;
}

/* ==========================================================================
   DEVELOPER TERMINAL & CODE SANDBOX WIDGET (RIGHT COLUMN)
   ========================================================================== */

.hero-visual {
  position: relative;
  width: 100%;
  perspective: 1200px;
}

/* ==========================================================================
   INTERACTIVE STACKED CODE CARDS SHUFFLE ENGINE
   ========================================================================== */

/* Interactive Tabs Switcher Above Cards */
.code-stack-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
  box-sizing: border-box;
}

.stack-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 220ms ease;
  outline: none;
}

.stack-tab:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.05);
}

.stack-tab.is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF7A00 0%, #EA580C 100%);
  border-color: #EA580C;
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.35);
}

.stack-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  user-select: none;
}

.chip-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGreen 1.8s ease-in-out infinite;
}

@keyframes pulseGreen {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ==========================================================================
   3D FOLDER CARD & STACKED CODE CARDS ENGINE (MIRACLE IT GEN-Z TECH THEME)
   ========================================================================== */

/* 3D Perspective Folder Stage */
.folder-card {
  position: relative;
  width: 100%;
  max-width: 530px;
  height: 450px;
  perspective: 1400px;
  cursor: pointer;
  display: block;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0 auto;
}

/* Hidden Accessible Toggle Checkbox */
.folder-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Floating Hint: "Click to open" with Animated Arrow */
.hint-wrapper {
  position: absolute;
  top: -36px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 120;
  animation: floatHint 2.4s ease-in-out infinite;
}

.hint-text {
  font-family: var(--font-sans, "Inter", sans-serif);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
  transform: rotate(8deg);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.hint-arrow {
  height: 34px;
  width: 34px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

@keyframes floatHint {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.folder-toggle:checked~.hint-wrapper {
  opacity: 0;
  transform: translateY(-12px);
}

/* 3D Folder Container */
.folder-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.folder-toggle:checked~.folder-container {
  transform: rotateX(10deg) rotateY(-4deg);
}

/* Folder Back Flap */
.folder-back-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.9));
}

.folder-back {
  width: 100%;
  height: 100%;
  display: block;
}

/* Terminal CLI Search & Path Bar */
.folder-search {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 38px;
  background: rgba(11, 19, 36, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 80;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.9;
  cursor: text;
}

.folder-search .search-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.search-cli-path {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.search-cli-path .cli-user {
  color: #38BDF8;
  font-weight: 600;
}

.search-cli-path .cli-dir {
  color: #F59E0B;
}

.search-cli-path .cli-cmd {
  color: #A7F3D0;
  font-weight: 500;
}

.search-cli-path .cli-blink {
  animation: blinkCursor 1s step-end infinite;
  color: #38BDF8;
  font-weight: 700;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.folder-toggle:checked~.folder-container .folder-search {
  top: -46px;
  opacity: 1;
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* 3D Stack Viewport (Holds the 3 Terminal Cards) */
.code-cards-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transform-style: preserve-3d;
}

/* Stacked Code Card Chassis */
.code-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center bottom;
  will-change: transform, opacity, box-shadow;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 480ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease;
  user-select: text;
}

/* Shimmering Shine Sweep */
.shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 25;
}

.folder-toggle:checked~.folder-container .shine {
  left: 160%;
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.25s;
}

/* ==========================================================================
   CARDS IN CLOSED STATE (Tucked Inside Folder, Top Header Visible)
   ========================================================================== */
.code-stack-card.is-top {
  z-index: 20;
  opacity: 0.98;
  transform: translate3d(0, 42px, 16px) scale(0.95) rotate(0deg);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.85);
}

.code-stack-card.is-middle {
  z-index: 15;
  opacity: 0.78;
  transform: translate3d(12px, 28px, 10px) scale(0.92) rotate(1.2deg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.75);
}

.code-stack-card.is-back {
  z-index: 10;
  opacity: 0.58;
  transform: translate3d(20px, 14px, 4px) scale(0.89) rotate(2.4deg);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   CARDS IN OPEN STATE (Cards ELEVATE and Pop Up Out of Folder)
   ========================================================================== */
.folder-toggle:checked~.folder-container .code-stack-card.is-top {
  z-index: 50;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -82px, 50px) scale(1) rotate(0deg);
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow:
    0 32px 75px -10px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(255, 122, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.folder-toggle:checked~.folder-container .code-stack-card.is-middle {
  z-index: 38;
  opacity: 0.86;
  pointer-events: auto;
  cursor: pointer;
  transform: translate3d(18px, -58px, 32px) scale(0.96) rotate(1.8deg);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow:
    0 22px 50px -10px rgba(0, 0, 0, 0.82),
    0 0 20px rgba(0, 0, 0, 0.5);
}

.folder-toggle:checked~.folder-container .code-stack-card.is-middle:hover {
  opacity: 0.96;
  transform: translate3d(18px, -64px, 36px) scale(0.97) rotate(1.2deg);
  border-color: rgba(255, 122, 0, 0.4);
}

.folder-toggle:checked~.folder-container .code-stack-card.is-back {
  z-index: 28;
  opacity: 0.68;
  pointer-events: auto;
  cursor: pointer;
  transform: translate3d(-14px, -38px, 18px) scale(0.92) rotate(-1.8deg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.75);
}

.folder-toggle:checked~.folder-container .code-stack-card.is-back:hover {
  opacity: 0.84;
  transform: translate3d(-14px, -44px, 22px) scale(0.94) rotate(-1.2deg);
  border-color: rgba(255, 122, 0, 0.35);
}

/* ==========================================================================
   CARD SWAPPING ANIMATION (When Top Card Shuffles Out to Back)
   ========================================================================== */
.code-stack-card.is-shuffling-out {
  z-index: 60 !important;
  opacity: 0.85 !important;
  pointer-events: none;
  transform: translate3d(70px, -145px, 65px) rotate(8deg) scale(0.95) !important;
  box-shadow: 0 35px 80px -10px rgba(0, 0, 0, 0.98), 0 0 45px rgba(255, 122, 0, 0.5) !important;
  transition:
    transform 260ms cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 260ms ease,
    box-shadow 260ms ease !important;
}

/* ==========================================================================
   FOLDER FRONT FLAP (Swings Open in 3D Forward)
   ========================================================================== */
.folder-front-wrapper {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 310px;
  z-index: 45;
  transform-origin: bottom center;
  transform: translate3d(0, 0, 28px);
  transition: transform 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  pointer-events: auto;
}

.folder-toggle:checked~.folder-container .folder-front-wrapper {
  transform: rotateX(-54deg) translate3d(0, 15px, 28px);
}

.folder-front {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -5px 25px rgba(0, 0, 0, 0.65));
}

/* Subtle Cyber Grid Texture on Front Flap */
.folder-front-grid {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
}

/* Folder Front Tab Label & Branding */
.folder-front-brand {
  position: absolute;
  top: 14px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-tab-notch {
  width: 24px;
  height: 5px;
  background: linear-gradient(90deg, #FF7A00 0%, #38BDF8 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.6);
}

.folder-brand-text {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #E2E8F0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Counter Badge (3 Practical Tracks) with Status Dot */
.counter {
  position: absolute;
  top: 10px;
  right: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 70;
  cursor: pointer;
}

.counter:hover {
  background: rgba(30, 58, 102, 0.95);
  border-color: #38BDF8;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #10B981;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: pulseDot 2s infinite ease-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.counter-label {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.counter-number {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.80rem;
  font-weight: 800;
  color: #38BDF8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Responsive Scaling for Small Devices */
@media (max-width: 991px) {
  .hero-visual {
    margin-top: 2.25rem;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    margin-top: 2rem;
  }

  .folder-card {
    max-width: 100%;
    height: 420px;
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-top {
    transform: translate3d(0, -60px, 35px) scale(0.98);
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-middle {
    transform: translate3d(12px, -42px, 15px) scale(0.94) rotate(1.2deg);
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-back {
    transform: translate3d(-10px, -28px, 0) scale(0.90) rotate(-1.2deg);
  }

  .hint-wrapper {
    top: -26px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .folder-card {
    height: 390px;
  }

  .folder-search {
    display: none;
    /* Hide on very small screens to give maximum room to code */
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-top {
    transform: translate3d(0, -45px, 25px) scale(0.96);
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-middle {
    transform: translate3d(8px, -30px, 10px) scale(0.92);
  }

  .folder-toggle:checked~.folder-container .code-stack-card.is-back {
    transform: translate3d(-6px, -18px, 0) scale(0.88);
  }
}

/* Header File Labels & Domain Tags */
.card-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #F1F5F9;
}

.card-lang-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.tag-fullstack {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-ai {
  color: #F472B6;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.tag-data {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* macOS Terminal Titlebar */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.dot-red {
  background-color: #EF4444;
}

.dot-yellow {
  background-color: #F59E0B;
}

.dot-green {
  background-color: #10B981;
}

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.term-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-dim);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.term-tab.is-active {
  color: #38BDF8;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
}

.term-tab-icon {
  font-size: 0.85rem;
}

/* Code Snippets Area */
.terminal-body {
  padding: 1.05rem 1.35rem;
  font-size: 0.81rem;
  line-height: 1.55;
  color: #E2E8F0;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Live Simulated CLI Execution Bar (Vengeance UI Terminal) */
.terminal-cli-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  overflow: hidden;
}

.cli-prompt {
  color: #10B981;
  font-weight: 700;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.cli-typing {
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cli-cursor {
  color: #38BDF8;
  animation: cliBlink 1s step-end infinite;
  font-weight: 700;
}

@keyframes cliBlink {
  50% {
    opacity: 0;
  }
}

.code-snippet {
  display: block;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Syntax Highlighting Colors */
.c-comment {
  color: #64748B;
  font-style: italic;
}

.c-keyword {
  color: #A78BFA;
  font-weight: 600;
}

.c-string {
  color: #38BDF8;
}

.c-number {
  color: #FBBF24;
}

.c-fn {
  color: #F43F5E;
}

/* Terminal Footer Status */
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.term-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34D399;
  font-weight: 600;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.term-branch-badge {
  color: #94A3B8;
}

/* Mobile Responsiveness & Stack Tuning */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0 3rem;
    min-height: auto;
  }

  .code-cards-stack {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .code-stack-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .stack-tab {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  .stack-status-chip {
    display: none;
  }

  .code-cards-stack {
    min-height: 440px;
  }

  .code-stack-card.is-middle {
    transform: translate3d(0, 12px, -20px) scale(0.96);
  }

  .code-stack-card.is-back {
    transform: translate3d(0, 24px, -40px) scale(0.92);
  }

  .hero-visual {
    overflow: hidden;
    max-width: 100%;
  }

  .code-stack-card.is-shuffling-out {
    transform: translate3d(0, -28px, 15px) scale(0.98);
  }
}

@media (max-width: 560px) {
  .hero-tag {
    font-size: 0.74rem;
    padding: 0.32rem 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-secondary-light {
    width: 100%;
  }

  .hero-trust-bar {
    gap: 0.5rem;
  }

  .trust-item {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  .card-lang-tag {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE: SMALL & ULTRA-NARROW PHONES (<= 380px & 320px)
   ========================================================================== */

@media (max-width: 380px) {
  .hero-section {
    padding: 2.25rem 0 2.5rem;
  }

  .hero-tag {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero-trust-bar {
    gap: 0.4rem;
    padding-top: 1.25rem;
  }

  .trust-item {
    font-size: 0.74rem;
    padding: 0.28rem 0.6rem;
  }

  .hero-visual {
    overflow: hidden;
    max-width: 100%;
  }

  .code-stack-switcher {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
    border-radius: var(--radius-md);
  }

  .stack-tab {
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
  }

  .code-cards-stack {
    min-height: 390px;
  }

  .code-stack-card.is-shuffling-out {
    transform: translate3d(0, -28px, 15px) scale(0.98);
  }

  .code-stack-card.is-middle {
    transform: translate3d(0, 8px, -15px) scale(0.96);
  }

  .code-stack-card.is-back {
    transform: translate3d(0, 16px, -30px) scale(0.92);
  }

  .terminal-header {
    padding: 0.55rem 0.75rem;
  }

  .card-file-label {
    font-size: 0.75rem;
  }

  .terminal-body {
    padding: 0.75rem 0.85rem;
    font-size: 0.74rem;
    min-height: 240px;
  }

  .terminal-cli-bar {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  .terminal-footer {
    padding: 0.45rem 0.75rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .stack-tab {
    font-size: 0.64rem;
    padding: 0.2rem 0.4rem;
  }

  .code-cards-stack {
    min-height: 370px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-stack-card {
    transition: none !important;
  }

  .code-stack-card.is-shuffling-out {
    transform: none !important;
  }
}