:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #04b486;
  --accent-hover: #06d6a0;
  --shadow: rgba(4, 180, 134, 0.16);
}

body.dark {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --border: #27272a;
  --shadow: rgba(4, 180, 134, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "General Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

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

.navbar {
  width: 100%;
  padding: 26px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(4,180,134,0.08);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  z-index: 100;
}

/* .logo {
    font-family: 'Rostex', sans-serif;
    font-style: oblique;
    font-weight: 700;

    font-size: 1.8rem;
    letter-spacing: 0.04em;

    color: var(--text);
}

.logo span {
    color: #04B486;
} */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-light {
    display: block;
}

.nav-logo-dark {
    display: none;
}



body.dark .nav-logo-light { display: none; }

body.dark .nav-logo-dark { display: block; }



/* .logo img {
  height: clamp(42px, 5vw, 68px);
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
} */

.logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.03);
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-size: 1.05rem;
  color: var(--muted);
}

nav a:hover {
  color: var(--accent);
}

#theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

/* .hero {
  min-height: 88vh;
  padding: 80px 8%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
} */

.hero {
  position: relative;
  min-height: 80vh;
  padding: 120px 8% 100px;

  display: flex;
  align-items: center;

  overflow: hidden;
}


.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.hero-video-light {
  display: block;
}


.hero-video-dark {
  display: none;
}

body.dark .hero-video-light {
  display: none;
}

body.dark .hero-video-dark {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 38%,
    rgba(255, 255, 255, 0.20) 100%
  );
}

body.dark .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.68) 38%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 850px;
}

.subtitle {
  margin-top: 28px;
  max-width: 780px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
}


.eyebrow,
.section-label {
  color: #04B486;
  opacity: 0.9;
  font-weight: 600;
  font-family: "General Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  max-width: 900px;
}

h1,
h2 {
  font-family: "Geist", sans-serif;
}

.subtitle,
.section-text,
.about-card p,
.technology-card p,
.list-item p,
.team-card p {
  font-family: "General Sans", sans-serif;
}

.subtitle {
  margin-top: 28px;
  max-width: 780px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-buttons {
  margin-top: 36px;foo
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}



.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* .hero-visual {
  display: flex;
  justify-content: center;
} */

.network-card {
  width: 360px;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 20%, var(--shadow), transparent 35%),
    var(--surface);
  position: relative;
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
}

.node {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 24px var(--accent);
}

.n1 { top: 70px; left: 70px; }
.n2 { top: 100px; right: 90px; }
.n3 { top: 180px; left: 130px; }
.n4 { bottom: 80px; left: 80px; }
.n5 { bottom: 90px; right: 80px; }
.n6 { top: 210px; right: 120px; }

.line {
  height: 1px;
  background: var(--accent);
  position: absolute;
  opacity: 0.45;
  transform-origin: left;
}

.l1 { width: 190px; top: 82px; left: 82px; transform: rotate(9deg); }
.l2 { width: 130px; top: 115px; left: 205px; transform: rotate(115deg); }
.l3 { width: 110px; top: 185px; left: 140px; transform: rotate(150deg); }
.l4 { width: 180px; bottom: 95px; left: 90px; transform: rotate(2deg); }
.l5 { width: 140px; top: 190px; left: 140px; transform: rotate(20deg); }

.section {
  padding: 100px 8%;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  max-width: 900px;
}

.section-text {
  margin-top: 24px;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.three-words {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.three-words div {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  font-size: 1.4rem;
  font-weight: 700;
}

.about-section {
  padding-top: 100px;
}

.about-section h2 {
  max-width: 980px;
}

.about-text {
  max-width: 820px;
  margin-top: 24px;
}

.about-modules {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
}

.about-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 34px;
  min-height: 390px;
  padding: 48px 32px 38px;
  text-align: center;
  transition: 0.25s ease;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px var(--shadow);
}

.about-card img {
  width: 145px;
  height: 145px;
  object-fit: contain;
  margin-bottom: 34px;
}

.about-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.about-card p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 260px;
  margin: 0 auto;
}

.technologies-section {
  padding-top: 120px;
}

.technologies-text {
  max-width: 900px;
  margin-top: 24px;
}

.technologies-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.technology-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 34px;
  padding: 48px 36px;
  text-align: center;
  min-height: 520px;

  display: flex;
  flex-direction: column;
  align-items: center;

  transition: 0.25s ease;
}

.technology-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px var(--shadow);
}

.logo-container {
  width: 100%;
  height: 150px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 28px;
}

.logo-container img {
  max-width: 240px;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tech-logo-light {
  display: block;
}

.tech-logo-dark {
  display: none;
}

body.dark .tech-logo-light {
  display: none;
}

body.dark .tech-logo-dark {
  display: block;
}

.technology-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.technology-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}


.institutions-section {
    padding-top: 120px;
}

.institutions-text {
    max-width: 850px;
    margin-top: 24px;
}

.institutions-logos {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}

.institution-logo {
  width: 220px;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  transition: transform 0.25s ease;
}

.institution-logo img {
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;

  transition: opacity 0.25s ease, filter 0.25s ease;
}

.inst-logo-light {
  display: block;
  filter: grayscale(100%);
  opacity: 0.65;
}

.inst-logo-dark {
  display: none;
}

.institution-logo:hover {
  transform: scale(1.08);
}

.institution-logo:hover .inst-logo-light {
  filter: grayscale(0%);
  opacity: 1;
}

body.dark .inst-logo-light {
  display: none;
}

body.dark .inst-logo-dark {
  display: block;
  opacity: 0.85;
}

body.dark .institution-logo:hover .inst-logo-dark {
  opacity: 1;
}


.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.team-card,
.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  transition: 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px var(--shadow);
}

.card h3,
.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.card p,
.team-card p,
.list-item p {
  color: var(--muted);
  line-height: 1.7;
}

.list {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

.list-item a {

    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.list-item a:hover {
    opacity: 0.8;
}

.list-item span {
  color: var(--accent);
  font-weight: 700;
}

.team-card {
  margin-top: 40px;
  max-width: 720px;
}

.team-section {
  padding-top: 120px;
}

.team-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.member-card {
  text-align: center;
}

.member-card a {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 24px;
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;

  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.member-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.member-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.member-card p {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.member-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.muted {
  margin-top: 10px;
  color: var(--muted);
}

.footer {

  background: #04B486;

  padding: 80px 8% 40px;

  margin-top: 120px;
}

.footer-grid {

  display: grid;

  grid-template-columns:
      1.6fr
      1fr
      1.2fr
      1fr
      1fr
      1.3fr;

  gap: 50px;

  align-items: start;
}

.footer-brand img {

  width: 260px;

  height: auto;
}


.footer-brand img {

  width: 260px;

  height: auto;
}

.footer h4 {
  color: #013220;
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 14px;
}

.footer-column p,
.footer-column a {

  display: block;

  color: white;

  text-decoration: none;

  line-height: 2;

  transition: opacity 0.2s ease;
}

.footer-column a:hover {

  opacity: 0.75;
}

.footer-funder img {

  width: 180px;

  margin-top: 10px;

  height: auto;
}

.footer-bottom {

  text-align: center;

  margin-top: 70px;

  color: white;

  opacity: 0.9;

  font-size: 0.95rem;
}



@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  nav {
    gap: 12px;
  }

  nav a {
    display: none;
  }

  .cards,
  .three-words {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .about-modules {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-card {
    min-height: auto;
  }

  .about-card img {
    width: 110px;
    height: 110px;
  }

  @media (max-width: 900px) {


    .hero {
    min-height: 80vh;
    padding: 90px 6% 70px;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .subtitle {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.82) 45%,
      rgba(255,255,255,0.45) 100%
    );
  }

  body.dark .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.76) 45%,
      rgba(0,0,0,0.48) 100%
    );
  }

  .hero-video {
    object-position: center center;
  }
    .technologies-grid {

        grid-template-columns: 1fr;
    }

    .technology-card {

        min-height: auto;
    }

    .technology-card img {

        width: 180px;
    }

    .institutions-logos {

    gap: 50px;
}

.institution-logo img {

    max-width: 170px;
}

    .team-grid {
  grid-template-columns: 1fr;
  gap: 42px;
}

.member-card img {
  max-height: 520px;
}

.footer-grid {

  grid-template-columns: 1fr;

  gap: 40px;
}

.footer-brand {

  text-align: center;
}

.footer-funder {

  text-align: center;
}

.footer-bottom {

  margin-top: 50px;
}

    

}
}
