* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fffbf2;
  color: #1a1a1a;
  overflow-x: hidden;
  border: 8px solid rgba(203, 181, 149, 0.4);
  box-shadow: inset 0 0 0 16px rgba(203, 181, 149, 0.2),
    inset 0 0 0 24px rgba(203, 181, 149, 0.1);
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  background: #fffbf2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: #000000;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #4a4a4a;
  font-weight: 400;
  max-width: 700px;
}

/* Illustration container & cylinder image
   - Cylinder is positioned inside the hero and scrolls with the page
   - Size clamped to keep it from overlapping left content on large screens
   - Small right offset and z-index ordering so content remains readable
*/
.illustration-container {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  align-items: flex-start; /* anchor near the top of the hero */
  justify-content: flex-end;
  padding: 0 24px; /* small breathing room from the edges */
  overflow: visible;
}

.cylinder-image {
  position: absolute; /* positioned relative to .illustration-container */
  top: 20%; /* move slightly down from the top */
  left: 65px; /* small gap from the page edge */
  width: clamp(
    420px,
    42vw,
    760px
  ); /* responsive: min 420px, prefer 42vw, max 760px */
  max-height: calc(100% - 48px); /* prevent vertical overflow */
  object-fit: contain;
  transform: none;
  z-index: 2; /* behind the token/banner content */
  animation: floatBounce 3s ease-in-out infinite;
  border-radius: 20px;
  will-change: transform;
  display: block;
}

/* simple vertical bounce only (subtle, no scaling) */
@keyframes floatBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsiveness: return the cylinder to normal flow for smaller screens */
@media (max-width: 1024px) {
  .illustration-container {
    height: 520px;
  }

  .cylinder-image {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 88%;
    max-width: 1100px;
    min-width: 0;
    margin-right: -2rem;
    z-index: 1;
  }
}

@media (max-width: 768px) {
  .cylinder-image {
    width: 95%;
    margin-right: 0;
  }
}

/* Token Banner */
.token-banner {
  background: #fff5d6;
  padding: 2rem;
  border-radius: 16px;
  color: #000000;
  box-shadow: 0 10px 30px rgba(218, 202, 164, 0.3);
  margin-top: 2rem;
  position: relative;
  z-index: 10; /* sit visually above the illustration if overlap occurs */
}

.token-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.token-info-left {
  flex: 1;
  min-width: 300px;
}

.token-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  color: #000000;
}

.token-info {
  background: #fff5d6;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.token-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: center;
}

/* Token logo container (fills circle, no auto-pulse, hover zoom + border thickening) */
.token-logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff5d6;
  border-radius: 50%;
  border: 4px solid #5d4e37;
  overflow: hidden; /* ensures image fills circle perfectly */
  transition: border-width 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 11; /* make sure token sits above illustration */
}

/* Image fills the circle completely */
.token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fully covers the circle */
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: block;
}

/* Hover effect: lightly zoom & thicker border */
.token-logo:hover img {
  transform: scale(1.08);
}

.token-logo:hover {
  border-width: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* keep old zoomPulse keyframes defined but unused by default */
@keyframes zoomPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
  }
  50% {
    transform: scale(1.12);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.get-started-btn,
.explorer-link {
  display: inline-block;
  background: #f5a623;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.get-started-btn:hover,
.explorer-link:hover {
  transform: translateY(-2px);
  background: #e09612;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

/* Beige Section */
.beige-section {
  background: #f5f1e8;
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #000;
  font-weight: 700;
}

/* Employee Grid */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Employee Card */
.employee-card {
  display: block;
  position: relative;
  background: #ffffff;
  border: 3px solid #d3d3d3;
  border-radius: 20px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 550px;
}

.employee-card > div:nth-child(1),
.employee-card > div:nth-child(2),
.employee-card > div:nth-child(3),
.employee-card > div:nth-child(4),
.employee-card > div:nth-child(5) {
  padding: 0 2.5rem;
}

.employee-card > div:nth-child(1) {
  padding-top: 2.5rem;
}
.employee-card > div:nth-child(2) {
  padding-top: 1rem;
}

.employee-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  background: #cbb595;
  height: 0;
  width: 100%;
  border-radius: 20px 20px 0 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.employee-card:hover:before {
  height: 310px;
  transform: scaleY(1);
}

.employee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border: 3px solid #cbb595;
}

.employee-card:hover > div:nth-child(1),
.employee-card:hover > div:nth-child(2),
.employee-card:hover > div:nth-child(3) {
  color: #ffffff;
  transition: all 0.4s ease-out;
  z-index: 1;
}

.employee-card:hover > div:nth-child(1) h2,
.employee-card:hover > div:nth-child(1) p,
.employee-card:hover > div:nth-child(1) strong,
.employee-card:hover > div:nth-child(1) span,
.employee-card:hover > div:nth-child(2) h2,
.employee-card:hover > div:nth-child(2) strong,
.employee-card:hover > div:nth-child(2) span,
.employee-card:hover > div:nth-child(2) p,
.employee-card:hover > div:nth-child(3) h2,
.employee-card:hover > div:nth-child(3) strong,
.employee-card:hover > div:nth-child(3) span,
.employee-card:hover > div:nth-child(3) p {
  color: #ffffff !important;
}

.employee-card:hover .btn-stitch {
  background: #cbb595 !important;
  border: 1px solid #cbb595 !important;
  color: #181818 !important;
}

.employee-card:hover .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff !important;
}

/* Card Header */
.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(203, 181, 149, 0.3);
  padding-bottom: 1rem;
}

.employee-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-family: "Montserrat Alternates", sans-serif;
}

.employee-designation {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
}

/* Card Info */
.card-info {
  background: linear-gradient(
    135deg,
    rgba(203, 181, 149, 0.1),
    rgba(203, 181, 149, 0.05)
  );
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(203, 181, 149, 0.2);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.info-value {
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
}

.balance-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Status Badges */
.status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-streaming {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.status-offline {
  background: rgba(203, 181, 149, 0.2);
  color: #6b7280;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #d4c5a9 0%, #a4957a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Card Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Buttons */
.btn-stitch {
  position: relative;
  padding: 18px 45px;
  background: #cbb595;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
  cursor: pointer;
  border: 2px solid #cbb595;
  border-radius: 12px;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
  width: 100%;
  margin: 0.75rem 0;
  transition: all 0.3s ease;
}

.btn-stitch:hover {
  border: 2px solid #b8a582;
  background: linear-gradient(
    85deg,
    #cbb595,
    #c4b59a,
    #b8a582,
    #c4b59a,
    #cbb595
  );
  background-size: 200% 200%;
  animation: wind 2s ease-in-out infinite;
  transform: translateY(-2px);
  filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.2));
}

@keyframes wind {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-secondary-disabled {
  width: 100%;
  padding: 0.875rem;
  background: rgba(203, 181, 149, 0.12);
  color: #9ca3af;
  border: 2px dashed rgba(203, 181, 149, 0.3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: not-allowed;
  opacity: 0.65;
  transition: none;
  position: relative;
}

.btn-secondary-disabled:hover {
  background: rgba(203, 181, 149, 0.12);
  transform: none;
}

.btn-secondary-disabled::after {
  content: "Login first";
  position: absolute;
  top: -28px;
  right: 10px;
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.btn-secondary-disabled:hover::after {
  opacity: 1;
}

/* Icon Animations */
.icon-1,
.icon-2,
.icon-3 {
  position: absolute;
  top: 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.5s ease-in-out;
}

.icon-1 {
  right: 0;
  width: 28px;
  transform: rotate(10deg);
}

.icon-2 {
  left: 25px;
  width: 14px;
  transform: rotate(10deg);
}

.icon-3 {
  left: 0;
  width: 20px;
  transform: rotate(-5deg);
}

.btn-stitch:hover .icon-1 {
  animation: slay-1 3s cubic-bezier(0.52, 0, 0.58, 1) infinite;
}
.btn-stitch:hover .icon-2 {
  animation: slay-2 3s cubic-bezier(0.52, 0, 0.58, 1) 1s infinite;
}
.btn-stitch:hover .icon-3 {
  animation: slay-3 2s cubic-bezier(0.52, 0, 0.58, 1) 1s infinite;
}

@keyframes slay-1 {
  0%,
  100% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

@keyframes slay-2 {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes slay-3 {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(450px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(450px) scale(0.8);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    padding: 3rem 1.5rem;
  }
  .illustration-container {
    height: 520px; /* scaled down for tablet */
    margin-top: 3rem;
  }
  .employee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .token-banner-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .token-info-left {
    width: 100%;
  }

  .token-buttons {
    justify-content: center;
    width: 100%;
  }

  .token-logo {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }
}
