:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #040507;
  color: #f2f3f7;
  --page-pad: clamp(20px, 5vw, 72px);
  --content-width: 1180px;
  --blue: #718dff;
  --muted: #9296a4;
  --line: rgba(196, 207, 255, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: #040507; color: #f2f3f7; }
a { color: inherit; text-decoration: none; }

.hero, .content-section, .footer-inner {
  padding-inline: max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(112px, 15vh, 170px) clamp(88px, 12vh, 128px);
  background: #07090e url("../assets/hero/hero-bg.png") center 46% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 5, 8, 0.9), rgba(5, 7, 12, 0.61) 47%, rgba(4, 5, 8, 0.28)), linear-gradient(180deg, rgba(3, 4, 7, 0.2), rgba(3, 4, 7, 0.14) 72%, #05070a);
}

.site-nav {
  position: absolute;
  z-index: 3;
  top: clamp(24px, 4vh, 42px);
  left: max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
  right: max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 2.8vw, 38px);
}

.site-nav a, .technical-link, .technical-status { font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; }
.site-nav a { color: #adb1be; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }

.hero-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow, .section-label { display: block; margin-bottom: 24px; color: #a8acb9; font-size: 0.68rem; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; }

.hero-title{
  width: auto;
  max-width: 100%;
  margin: 0;
  font-size: 110px;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
  background: linear-gradient(112deg, #cdd0d8 4%, #fff 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  max-width: 630px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.45;
  background: linear-gradient(90deg, #b6bac5, #e4e6ec);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-line { width: clamp(88px, 12vw, 156px); height: 1px; margin-top: 38px; background: linear-gradient(90deg, rgba(132, 158, 255, 0.8), transparent); }
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.hero-orb-img { display: block; width: clamp(280px, 39vw, 500px); max-width: 100%; height: auto; filter: saturate(0.9) drop-shadow(0 0 48px rgba(93, 124, 255, 0.09)); }

.content-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(900px, 100svh);
  padding-block: clamp(96px, 12vw, 154px) clamp(82px, 10vw, 126px);
}

.content-section::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("../assets/hero/hero-bg.png") center / cover; opacity: 0.11; }
.content-section::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.research { background: #06080b; }
.research::before { background-position: 78% 38%; opacity: 0.085; transform: scaleX(-1); }
.research::after { background: linear-gradient(110deg, rgba(4, 6, 9, 0.98) 8%, rgba(5, 8, 13, 0.87) 52%, rgba(6, 9, 16, 0.9)); }
.community { background: #070b14; }
.community::before { background-position: 28% 63%; opacity: 0.18; }
.community::after { background: radial-gradient(circle at 76% 45%, rgba(30, 65, 140, 0.17), transparent 39%), linear-gradient(90deg, rgba(4, 7, 13, 0.96), rgba(6, 10, 19, 0.83)); }
.about { background: #05070a; justify-content: center; }
.about::before { background-position: 66% 82%; opacity: 0.065; transform: scale(1.08); }
.about::after { background: linear-gradient(90deg, rgba(4, 6, 9, 0.98) 15%, rgba(5, 7, 11, 0.88), rgba(4, 6, 9, 0.96)); }

.section-heading { max-width: 700px; }
.section-label { margin-bottom: 18px; color: #6575a7; }
h2 { margin: 0; color: #f2f4f9; font-size: clamp(2.5rem, 5.5vw, 4.6rem); font-weight: 620; line-height: 1; letter-spacing: -0.045em; }
.section-intro { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.75; }

.research-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 7vw, 90px); border-top: 1px solid var(--line); }
.research-item { padding: clamp(36px, 4.5vw, 58px) clamp(0px, 4vw, 52px) clamp(36px, 4.5vw, 58px) 0; border-bottom: 1px solid var(--line); }
.research-item:nth-child(even) { padding-right: 0; padding-left: clamp(28px, 4vw, 52px); border-left: 1px solid var(--line); }
.research-num { display: block; margin-bottom: 18px; color: #596072; font-size: 0.68rem; letter-spacing: 0.2em; }

.research-item h3, .community-item h3 {
  position: relative;
  margin: 0 0 17px;
  padding-left: 22px;
  color: #eef0f6;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 580;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.research-item h3::before, .community-item h3::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 11px; height: 1px; background: var(--blue); box-shadow: 0 0 8px rgba(113, 141, 255, 0.35); }
.research-item p, .community-item p, .about-content > p:first-of-type { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.78; }

.community-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(52px, 7vw, 84px); border-block: 1px solid var(--line); }
.community-item { padding: clamp(40px, 5vw, 64px) clamp(0px, 5vw, 66px) clamp(40px, 5vw, 64px) 0; }
.community-item + .community-item { padding-right: 0; padding-left: clamp(30px, 5vw, 66px); border-left: 1px solid var(--line); }
.community-item p { max-width: 530px; min-height: 8em; }
.technical-link, .technical-status { display: inline-block; margin-top: 30px; color: #8fa4ef; }
.technical-link { transition: color 180ms ease; }
.technical-link:hover, .technical-link:focus-visible { color: #fff; }
.technical-status { color: #626979; }

.about-content { max-width: 760px; }
.about-content > p:first-of-type { margin-top: 34px; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.about-divider { width: 62px; height: 1px; margin: 48px 0 28px; background: linear-gradient(90deg, var(--blue), transparent); }
.about-tagline { margin: 0; color: #e5e7ed; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.4; letter-spacing: -0.02em; }

.section-next { align-self: flex-end; display: flex; flex-direction: column; gap: 6px; margin-top: clamp(64px, 8vw, 104px); color: #666c79; font-size: 0.62rem; letter-spacing: 0.2em; text-align: right; text-transform: uppercase; transition: color 180ms ease; }
.section-next strong { color: #8c919d; font-size: 0.69rem; font-weight: 500; letter-spacing: 0.18em; transition: color 180ms ease; }
.section-next:hover, .section-next:focus-visible, .section-next:hover strong, .section-next:focus-visible strong { color: #fff; }
.section-next--hero { position: absolute; right: max(var(--page-pad), calc((100vw - var(--content-width)) / 2)); bottom: clamp(28px, 5vh, 52px); z-index: 2; margin: 0; }

.site-footer { background: #030405; border-top: 1px solid rgba(196, 207, 255, 0.09); }
.footer-inner { min-height: 154px; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 7px; }
.footer-logo { color: #d8dae1; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.15em; }
.footer-tagline, .footer-copy { color: #555b67; font-size: 0.65rem; letter-spacing: 0.1em; }
.footer-tagline { text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #7e8491; font-size: 0.76rem; transition: color 180ms ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; }
.footer-copy { margin: 0; white-space: nowrap; }

@media (max-width: 900px) {
  .hero { background-position: 58% center; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr); gap: 24px; }
  .hero-orb-img { width: clamp(230px, 37vw, 350px); }
  .research-grid, .community-grid { grid-template-columns: 1fr; }
  .research-item, .research-item:nth-child(even), .community-item, .community-item + .community-item { padding: 38px 0; border-left: 0; }
  .community-item + .community-item { border-top: 1px solid var(--line); }
  .community-item p { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 34px; }
  .footer-copy { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-end; }
  .hero-orb-img { width: min(48vw, 330px); }
}

@media (max-width: 640px) {
  .hero-title { font-size: min(110px, 20vw); }
  .site-nav { justify-content: space-between; gap: 10px; }
  .site-nav a { font-size: 0.62rem; letter-spacing: 0.11em; }
  .hero { align-items: flex-start; padding-top: clamp(118px, 18vh, 150px); background-position: 62% center; }
  .hero-layout { grid-template-columns: 1fr; gap: clamp(24px, 5vh, 42px); }
  .hero-copy p { max-width: 30rem; font-size: clamp(1rem, 5vw, 1.25rem); }
  .hero-visual { justify-content: flex-end; padding-right: 4vw; }
  .hero-orb-img { width: min(60vw, 290px); }
  .section-next--hero { bottom: 24px; }
  .content-section { min-height: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-direction: column; gap: 11px; }
  .footer-copy { grid-column: auto; white-space: normal; }
}

@media (max-height: 650px) and (min-width: 641px) {
  .hero { padding-block: 88px 64px; }
  .hero-copy p { margin-top: 18px; font-size: 1.05rem; }
  .eyebrow { margin-bottom: 18px; }
  .hero-line { margin-top: 24px; }
  .hero-orb-img { max-height: 56vh; width: auto; }
  .section-next--hero { bottom: 18px; }
}
