/* ------------------------------------------------------------------
   Fonts
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Manrope';
  src: url('../../fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../../fonts/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #000000;
  color: #FFFFFF;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* ------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 28px;
  height: 28px;
  display: block;
}

.navbar-star {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.navbar-star svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #FFFFFF;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.navbar-star:hover svg {
  transform: rotate(45deg);
  fill: #ff0000;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  text-align: center;
  padding: calc(50vh - 337px) 20px 120px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -500px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1000px;
  background: radial-gradient(ellipse at center bottom, rgba(255, 180, 80, 0.4) 0%, rgba(255, 180, 80, 0.15) 30%, rgba(255, 180, 80, 0.05) 55%, transparent 75%);
  filter: blur(150px);
  animation: fadeIn 2s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  max-width: 575px;
  margin: 16px auto 0;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.architecture {
  padding-top: 60px;
  padding-bottom: 120px;
}

.architecture-title {
  text-align: right;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.heron {
  padding-top: 100px;
  padding-bottom: 80px;
  padding-left: clamp(20px, calc((100vw - 1800px) / 2), 60px);
}

.heron-title {
  text-align: left;
  max-width: 900px;
  margin: 0 0 40px;
}

/* ------------------------------------------------------------------
   Cards Grid
   ------------------------------------------------------------------ */

.cards-grid {
  display: flex;
  flex-wrap: wrap;
}

.cards-grid--4 {
  max-width: 1800px;
  margin: 0 auto;
  justify-content: flex-end;
}

.cards-grid--2 {
  max-width: 900px;
  margin: 0;
  justify-content: flex-start;
}

/* ------------------------------------------------------------------
   Card
   ------------------------------------------------------------------ */

.card {
  position: relative;
  width: 450px;
  height: 420px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

a.card {
  display: flex;
}

/* 4-column: collapse shared edges with -1px margins */
.cards-grid--4 .card:nth-child(n+2) {
  margin-left: -1px;
}

.cards-grid--4 .card:nth-child(n+5) {
  margin-top: -1px;
}

/* 2-column: collapse shared edges with -1px margins */
.cards-grid--2 .card:nth-child(n+2) {
  margin-left: -1px;
}

.cards-grid--2 .card:nth-child(n+3) {
  margin-top: -1px;
  margin-left: 0;
}

/* Hover */
.card {
  position: relative;
}

.card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  z-index: 1;
}

.card:hover .card-title {
  color: #FFFFFF;
}

.card:hover .card-desc {
  color: rgba(255, 255, 255, 0.9);
}

.card:hover .card-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.card-content {
  width: 100%;
  max-width: 393px;
}

.card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 33px;
  color: #FFFFFF;
  margin-bottom: 3px;
  transition: color 0.25s ease;
}

.card-desc {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
}

.card-arrow {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  transition: color 0.25s ease;
}

.card-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 40px 20px;
}

.footer-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: #707070;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1200px) {
  .cards-grid--4 {
    max-width: 900px;
    margin: 0 auto;
  }

  .cards-grid--4 .card {
    width: 450px;
  }

  /* 2x2 grid: collapse shared edges */
  .cards-grid--4 .card:nth-child(2n) {
    margin-left: -1px;
  }

  .cards-grid--4 .card:nth-child(n+3) {
    margin-top: -1px;
  }

  .cards-grid--4 .card:nth-child(odd) {
    margin-left: 0;
  }

  .architecture-title {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
    line-height: 60px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  .section-title {
    font-size: 40px;
    line-height: 52px;
  }

  .architecture-title,
  .heron-title {
    padding-left: 20px;
    padding-right: 20px;
  }

  .heron-title {
    text-align: left;
  }

  .cards-grid--4,
  .cards-grid--2 {
    margin-left: 20px;
    margin-right: 20px;
    max-width: 100%;
  }

  .card {
    width: 100%;
    height: auto;
    min-height: 280px;
  }

  /* Stack: collapse shared bottom edges with -1px margin */
  .cards-grid--4 .card,
  .cards-grid--2 .card {
    margin-left: 0;
    margin-top: -1px;
  }

  .cards-grid--4 .card:first-child,
  .cards-grid--2 .card:first-child {
    margin-top: 0;
  }

  .footer {
    gap: 16px;
    flex-wrap: wrap;
  }
}