/* Smart Contract Page Styles cloned for Dedicated Lab */
/* Based on Figma design: Smart Contract Development page */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', sans-serif;
  background-color: #121212;
  color: #FFFFFF;
  line-height: 1.6;
}

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }

/* Hero Banner Section Styles */
/* Thiết kế theo Figma: Hero banner với background image, overlay gradient và content */

/* Container chính của hero banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: visible; /* Thay đổi từ hidden thành visible để text không bị cắt */
}

/* Background section với image và overlay */
.hero-banner__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Background image */
/* Lật ảnh background 180 độ bằng transform: rotate(180deg) */
/* Sử dụng pseudo-element để không ảnh hưởng đến layout của .hero-banner__image */
.hero-banner__image {
  position: absolute;
  width: 100%;
  height: 100%;
    background-image: url('../../assets/images/hero-bg-s.webp');
  background-size: cover;
  background-position:  center; 
  background-repeat: no-repeat;
}

.hero-banner__overlay {
  position: absolute;
  width: 100%; /* Thay đổi từ 1096px cố định thành 100% */
  height: 100%;
  left: 0px;
  bottom: 0px;
  background-image:
      url('../../assets/images/sandtexture.svg'),
      linear-gradient(
          90deg,
          #252525 0%, /* Bắt đầu từ 0% thay vì 77.33% */
          #252525 40%, /* Tạo vùng tối rõ ràng */
          rgba(37, 37, 37, 0.9) 60%,
          rgba(37, 37, 37, 0.7) 70%,
          rgba(37, 37, 37, 0.5) 80%,
          rgba(37, 37, 37, 0.3) 90%,
          rgba(37, 37, 37, 0.1) 95%,
          rgba(37, 37, 37, 0) 100% /* Kết thúc hoàn toàn trong suốt */
      );
  background-size: cover, 100% 100%;
  background-position: center, left center;
  background-repeat: no-repeat, no-repeat;
}

/* Decorative ellipse */
.hero-banner__background::before {
  content: '';
  position: absolute;
  top: -303px;
  left: 71px;
  width: 746px;
  height: 746px;
  background: radial-gradient(
      circle,
      rgba(217, 217, 217, 1) 0%,
      rgba(115, 115, 115, 0) 100%
  );
  opacity: 0.5;
  border-radius: 50%;
}

/* Decorative overlay element */
.hero-banner__decor {
  position: absolute;
  left: 71px;
  z-index: 1;
  opacity: 1;
}

.hero-banner__decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content section chính */
.hero-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.hero-banner__title {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.2em;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 772px;
  margin-bottom: 32px;
}

.hero-banner__description {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5em;
  color: #A5A5A5;
  max-width: 772px;
  margin-bottom: 48px;
}

.hero-banner__description span {
  color: #FFFFFF;
  font-weight: 400;
}



/* Bottom section với status và binary text */
.hero-banner__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 69.52px;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Status section bên trái */
.hero-banner__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left:64px ;
}

.hero-banner__status-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner__status-icon svg {
  width: 20px;
  height: 20px;
}

.hero-banner__status-icon path {
  stroke: #A5A5A5;
}

.hero-banner__status-text {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.26em;
  color: #3D3D3D;
}

/* Hiển thị cả khoảng trắng (white space) trong binary text section */
/* Sử dụng white-space: pre để giữ nguyên khoảng trắng và xuống dòng nếu có */
.code-patterns {
  display: flex;
  flex-direction: row;
  gap: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.26em;
  color: #727272;
  text-align: center;
  flex: 1;
  justify-content: center;
  min-width: 0; /* allow flex child to shrink */
  overflow: hidden; /* prevent long lines from expanding container */
}

.code-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* Đảm bảo hiển thị khoảng trắng trong nội dung */
  white-space: pre;
  max-width: 100%;
  overflow: hidden;
}

/* Vector element bên phải */
.hero-banner__vector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 64px;
}

/* Right Sidebar Section */
.right-sidebar {
  padding: 100px 64px;
  background-color: #121212;
  display: flex;
  justify-content: center;
}

.right-sidebar__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-sidebar__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.right-sidebar__header {
    background-image: url('../../assets/images/card-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px;
  width: 100%;
  max-width: 1312px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.right-sidebar__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.6em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
}

.right-sidebar__subtitle {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6em;
  text-align: center;
  color: #A5A5A5;
}

.right-sidebar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  width: 100%;
}

.right-sidebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 64px 32px;
  width: 328px;
  height: 400px;
  border: 1px solid #232325;
  justify-content: center;
}

.right-sidebar__item-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-sidebar__item-text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6em;
  text-align: center;
  color: #FFFFFF;
  max-width: 373px;
}

/* Details Section */
.details-section {
  padding: 100px 64px;
  background-color: #121212;
  display: flex;
  justify-content: center;
}

.details-section__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-section__card {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  align-self: stretch;
  justify-content: center;
}

.details-section__header {
    background-image: url('../../assets/images/card-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px;
  width: 100%;
  max-width: 352px;
  height: 824px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.details-section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
}

.details-section__content {
  display: grid;
  width: 100%;
  max-width: 960px; /* Aligns with 1312px total when combined with 352px header */
  /* height: 824px;  Let content define height */
  grid-template-rows: repeat(4, 1fr);
}

.details-section__item {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border: 1px solid #232325;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  
  padding: 48px;
}

/* Ensure all items follow the grid row sizing */
.details-section__item:first-child { height: 100%; }

.details-section__item-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.26em;
  color: #FFFFFF;
}

.item-detail-title {
font-family: Sora;
font-weight: 600;
font-size: 24px;
line-height: 100%;
}

.details-section__item-text {
  font-family: Sora;
  font-weight: 300;
  font-style: Light;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: 0%;
  color: #BABABA;
}


/* Process Section */
.process-section {
  padding: 120px 64px;
  background-color: #121212;
  display: flex;
  justify-content: center;
}

.process-section__container {
  max-width: 1312px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.process-section__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 150%;
  text-transform: uppercase;
  color: #FFFFFF;
  text-align: center;
}

/* Timeline grid */
.process-timeline {
  position: relative;
  width: 100%;
  overflow-x: clip; /* avoid contributing to page width */
  display: grid;
  /* Design tokens for this component */
  --timeline-line-color: #6C6C6C;
  --timeline-item-width: 460px;
  --timeline-gap: 160px;
  /* Keep current visual alignment: -5% of item width */
  --timeline-offset-percent: -5%;
  --top-connector-height: 180px; /* preserves current look */
  --top-connector-bottom-offset: 95px; /* preserves current look */
  --bottom-connector-height: 160px; /* preserves current look */
  --bottom-connector-top-offset: 65px; /* preserves current look */
  --marker-size: 19px;
  --marker-ring: 6px;

  grid-template-rows: auto var(--timeline-gap) auto;
}

/* Rows to group top and bottom items so they can wrap */
.process-timeline__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}

.process-timeline__row--top { grid-row: 1; left: 5%; }
.process-timeline__row--bottom { grid-row: 3; left: 20%; }

/* Horizontal dashed line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--timeline-line-color);
  pointer-events: none;
  z-index: 0;
}

/* Hide optional guide lines if present */
.process-timeline__vline { display: none; }

.process-timeline__item {
  position: relative;
  padding: 0 8px;
  width: var(--timeline-item-width);
  z-index: 1;
}



/* Connector to the center dashed line */
.process-timeline__item--top::after {
  content: '';
  position: absolute;
  left: var(--timeline-offset-percent);
  bottom: calc(var(--top-connector-bottom-offset) * -1);
  width: 0;
  height: var(--top-connector-height);
  border-left: 1px dashed var(--timeline-line-color);
  pointer-events: none;
}

.process-timeline__item--bottom::after {
  content: '';
  position: absolute;
  left: var(--timeline-offset-percent);
  top: calc(var(--bottom-connector-top-offset) * -1);
  width: 0;
  height: var(--bottom-connector-height);
  border-left: 1px dashed var(--timeline-line-color);
  pointer-events: none;
}

/* Circle marker at the connection point */
.process-timeline__marker {
  position: absolute;
  left: 50%;
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  background: #FFFFFF;
  transform: translateX(-50%);
  box-shadow: 0 0 0 var(--marker-ring) #212121; /* outer ring on dark bg */
  z-index: 2;
}

.process-timeline__item--top .process-timeline__marker {
  top: 5px;
  left: var(--timeline-offset-percent);
}

.process-timeline__item--bottom .process-timeline__marker {
  top: 65%;
  left: var(--timeline-offset-percent);
}

.process-step__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.26em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.process-step__description {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 160%;
  color: #BABABA;
}

/* Responsive fallback: keep desktop visuals; simplify on smaller screens */
@media (max-width: 1024px) {
  .process-timeline {
    display: block;
  }
  .process-timeline::before {
    display: none;
  }
  .process-timeline__row {
    left: 0;
    gap: 32px;
  }
  .process-timeline__item {
    width: 100%;
    padding-left: 0;
  }
  .process-timeline__item::after,
  .process-timeline__marker {
    display: none;
  }
  .process-step__title {
    font-size: 22px;
  }
  .process-step__description {
    font-size: 15px;
  }
}

/* Responsive: stack details card on smaller screens */
@media (max-width: 1024px) {
  .details-section__card {
    flex-direction: column;
    align-items: stretch;
  }
  .details-section__header,
  .details-section__content {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
}

/* Responsive: avoid fixed-width tiles overflowing on mobile */
@media (max-width: 768px) {
  .right-sidebar__item {
    width: 100%;
    height: auto;
  }
  .what-you-get__item {
    width: 100%;
    height: auto;
  }
}



/* What You Get Section */
.what-you-get {
  padding: 100px 64px;
  background-color: #121212;
  display: flex;
  justify-content: center;
}

.what-you-get__container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.what-you-get__header {
  width: 100%;
  max-width: 1312px;
  height: 180px;
    background-image: url('../../assets/images/card-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-you-get__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.6em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-align: center;
}

.what-you-get__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.what-you-get__item {
  width: 437px;
  height: 300px;
  border: 1px solid #232325;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.what-you-get__item-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.26em;
  color: #FFFFFF;
}

.what-you-get__item-text {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 160%;
  color: #BABABA;
}

