.ency-v2 {
  position: relative;
  overflow: hidden;
  background-color: #060606;
  color: #fff;
  padding: 6rem 1.25rem;
}

@media (min-width: 640px) { .ency-v2 { padding: 7rem 2.5rem; } }
@media (min-width: 1024px) { .ency-v2 { padding: 9rem 4rem; } }

/* ── Background ── */
.ency-v2-bg { position: absolute; inset: 0; z-index: 0; }

.ency-v2-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060606, #0a0f1a, #060606);
}

.ency-v2-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(10,154,185,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,154,185,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ency-v2-edge-top,
.ency-v2-edge-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 7rem;
  z-index: 10;
  pointer-events: none;
}

.ency-v2-edge-top {
  top: 0;
  background: linear-gradient(to bottom, #060606, transparent);
}

.ency-v2-edge-bottom {
  bottom: 0;
  background: linear-gradient(to top, #060606, transparent);
}

/* ── Orbs ── */
.ency-v2-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-1 {
  top: 15%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: rgba(10,154,185,0.07);
  filter: blur(120px);
  animation: encyOrb1 25s ease-in-out infinite;
}

.orb-2 {
  bottom: 10%;
  right: 8%;
  width: 500px;
  height: 500px;
  background: rgba(10,154,185,0.05);
  filter: blur(150px);
  animation: encyOrb2 30s ease-in-out infinite;
}

.orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.02);
  filter: blur(100px);
}

@keyframes encyOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.97); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

@keyframes encyOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-35px, -25px) scale(1.06); }
  66% { transform: translate(25px, -35px) scale(0.96); }
}

/* ── Spotlight ── */
.ency-v2-spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  background: radial-gradient(circle, rgba(10,154,185,0.12) 0%, transparent 70%);
  transition: opacity 0.7s ease;
}

.ency-v2:hover .ency-v2-spotlight {
  opacity: 1;
}

/* ── Container ── */
.ency-v2-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) { .ency-v2-container { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .ency-v2-container { padding: 0 4rem; } }

/* ── Header ── */
.ency-v2-header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: encyHeaderRise 1s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

@media (min-width: 640px) { .ency-v2-header { margin-bottom: 4.5rem; } }
@media (min-width: 1024px) { .ency-v2-header { margin-bottom: 5.5rem; } }

.ency-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ency-v2-eyebrow-line {
  display: block;
  height: 1px;
  width: 2.5rem;
  background: rgba(10,154,185,0.6);
}

.ency-v2-eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: #0a9ab9;
}

.ency-v2-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.035em;
}

@media (min-width: 640px) { .ency-v2-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .ency-v2-heading { font-size: 4.5rem; } }

@keyframes encyHeaderRise {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Card ── */
.ency-v2-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 420px;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), box-shadow 0.7s cubic-bezier(0.22,1,0.36,1);
  animation: encyCardEnter 1s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

@media (min-width: 640px) { .ency-v2-card { min-height: 480px; } }
@media (min-width: 1024px) { .ency-v2-card { min-height: 520px; } }

.ency-v2-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px -20px rgba(10,154,185,0.15);
}

.ency-v2-card,
.ency-v2-card img {
  will-change: transform;
}

@keyframes encyCardEnter {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card glow */
.ency-v2-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10,154,185,0.3), transparent 40%, transparent 60%, rgba(10,154,185,0.15));
  transition: opacity 0.7s ease;
}

.ency-v2-card:hover .ency-v2-card-glow {
  opacity: 1;
}

/* Card image */
.ency-v2-card-image {
  position: absolute;
  inset: 0;
}

.ency-v2-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.22,1,0.36,1);
}

.ency-v2-card:hover .ency-v2-card-image img {
  transform: scale(1.08);
}

/* Card overlays */
.ency-v2-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,6,0.65);
}

.ency-v2-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #060606, rgba(6,6,6,0.5), transparent);
}

.ency-v2-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(10,154,185,0.5), transparent);
  opacity: 0.5;
  transition: opacity 0.7s ease;
}

.ency-v2-card:hover .ency-v2-card-accent {
  opacity: 1;
}

/* Live badge */
.ency-v2-live-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  z-index: 15;
}

@media (min-width: 640px) {
  .ency-v2-live-badge { top: 1.5rem; right: 1.5rem; }
}

.ency-v2-live-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ency-v2-live-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a9ab9;
  animation: encyPulse 2s ease-in-out infinite;
}

.ency-v2-live-dots span:nth-child(2) { animation-delay: 150ms; }
.ency-v2-live-dots span:nth-child(3) { animation-delay: 300ms; }

.ency-v2-live-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
}

@keyframes encyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Corner marks */
.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 15;
  pointer-events: none;
  transition: border-color 0.7s ease;
}

.corner-tl { top: 1rem; left: 1rem; border-left: 1px solid rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.06); border-radius: 0.125rem 0 0 0; }
.corner-tr { top: 1rem; right: 1rem; border-right: 1px solid rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.06); border-radius: 0 0.125rem 0 0; }
.corner-bl { bottom: 1rem; left: 1rem; border-left: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0 0 0 0.125rem; }
.corner-br { bottom: 1rem; right: 1rem; border-right: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0 0 0.125rem 0; }

.ency-v2-card:hover .corner { border-color: rgba(10,154,185,0.3); }

/* Card content */
.ency-v2-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.75rem;
}

@media (min-width: 640px) { .ency-v2-card-content { padding: 2.25rem; } }
@media (min-width: 1024px) { .ency-v2-card-content { padding: 3rem; } }

.ency-v2-version {
  font-family: 'Poppins', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 1.5rem;
  user-select: none;
  transition: color 0.7s ease;
}

@media (min-width: 640px) { .ency-v2-version { font-size: 6rem; } }
@media (min-width: 1024px) { .ency-v2-version { font-size: 7.5rem; } }

.ency-v2-card:hover .ency-v2-version { color: rgba(255,255,255,0.12); }

.ency-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.ency-v2-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a9ab9;
  box-shadow: 0 0 6px #0a9ab9;
  animation: encyPulse 2s ease-in-out infinite;
}

.ency-v2-badge-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #0a9ab9;
}

.ency-v2-card-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 48rem;
  transition: color 0.6s ease;
}

@media (min-width: 640px) { .ency-v2-card-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .ency-v2-card-heading { font-size: 3rem; } }

.ency-v2-card:hover .ency-v2-card-heading { color: #5ec4d9; }

.ency-v2-card-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 40rem;
  transition: color 0.5s ease;
}

@media (min-width: 640px) { .ency-v2-card-desc { font-size: 1.125rem; } }

.ency-v2-card:hover .ency-v2-card-desc { color: rgba(255,255,255,0.65); }

/* Buttons */
.ency-v2-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ency-v2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  background: #0a9ab9;
  color: #060606;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.5s ease;
}

.ency-v2-btn-primary:hover {
  background: #5ec4d9;
  box-shadow: 0 0 30px rgba(10,154,185,0.4);
  transform: translateY(-2px);
}

.ency-v2-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.5s ease;
}

.ency-v2-btn-secondary svg { color: #0a9ab9; }

.ency-v2-btn-secondary:hover {
  border-color: rgba(10,154,185,0.5);
  background: rgba(10,154,185,0.1);
  color: #fff;
}

/* Film grain */
.ency-v2-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .ency-v2-header,
  .ency-v2-card,
  .ency-v2-card-image img,
  .ency-v2-badge-dot,
  .ency-v2-live-dots span {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .ency-v2-header { opacity: 1; }
  .ency-v2-card { opacity: 1; transform: none; }
}