@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #071016;
  --panel: #0b161d;
  --panel-2: #0f1d25;
  --line: rgba(202, 219, 227, .16);
  --line-bright: rgba(202, 219, 227, .34);
  --text: #edf3f5;
  --muted: #91a2aa;
  --accent: #dbe8ed;
  --green: #65c9a1;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Scrolling background: image 2 stays fixed while the page content moves over it. */
  background: var(--bg) url("assets/scroll-background.jpg") center center / cover fixed no-repeat;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  background: rgba(5, 13, 18, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dce7ea;
  transform: rotate(45deg);
  font-size: 12px;
}
.logo-mark::first-letter { transform: rotate(-45deg); }

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}
nav a, .lang-btn, .menu-toggle {
  color: #c6d1d5;
  font-size: 11px;
  letter-spacing: .11em;
  font-weight: 600;
}
nav a:hover, .lang-btn:hover { color: white; }

.lang-btn, .menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle { display: none; font-size: 20px; }

.hero {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Homepage background: image 1 (city skyline). */
  background:
    linear-gradient(90deg, rgba(3, 9, 13, .76) 0%, rgba(3, 9, 13, .48) 42%, rgba(3, 9, 13, .16) 100%),
    url("assets/home-background.webp") center center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 97%, rgba(255,255,255,.04) 98%),
    linear-gradient(90deg, transparent 97%, rgba(255,255,255,.025) 98%);
  background-size: 100% 46px, 46px 100%;
  opacity: .35;
}
.hero-content {
  width: min(var(--max), calc(100% - 64px));
  margin: 80px auto 0;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: #9eafb6;
  margin: 0 0 16px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 142px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 800;
}
.hero h1 span { display: block; }
.hero-subtitle {
  margin: 24px 0 8px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
}
.hero-copy {
  max-width: 590px;
  color: #a9b8bd;
  font-size: 14px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-bright);
  cursor: pointer;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 700;
}
.btn-primary { background: #dce7eb; color: #071016; border-color: #dce7eb; }
.btn-primary:hover { background: white; }
.btn-ghost { background: rgba(8, 18, 24, .55); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-status {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100% - var(--max)) / 2));
  bottom: 44px;
  display: flex;
  gap: 1px;
  background: var(--line);
}
.hero-status div {
  min-width: 130px;
  padding: 14px 18px;
  background: rgba(7,16,22,.85);
}
.hero-status small, .hero-status strong {
  display: block;
  font-family: "Roboto Mono", monospace;
}
.hero-status small { color: #75858d; font-size: 8px; letter-spacing: .15em; }
.hero-status strong { margin-top: 4px; font-size: 12px; }
.online { color: var(--green); }

.ticker {
  display: flex;
  gap: 40px;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 32px;
  background: #0b151b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #70828a;
  font: 9px "Roboto Mono", monospace;
  letter-spacing: .08em;
}
.ticker b { color: #c5d2d7; }

.section {
  max-width: var(--max);
  margin: auto;
  padding: 110px 32px;
  /* Semi-transparent panels let the fixed image 2 remain visible while scrolling. */
  background: rgba(7, 16, 22, .78);
}
.dark-section {
  max-width: none;
  padding-left: max(32px, calc((100% - var(--max)) / 2));
  padding-right: max(32px, calc((100% - var(--max)) / 2));
  background: rgba(9, 20, 27, .82);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: -.04em;
}
.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-top: 28px;
  position: relative;
}
.rule::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 1px;
  background: #dce7eb;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  margin-top: 58px;
}
.lead { font-size: 20px; color: #d6e0e3; }
.two-col p:not(.lead), .careers-box p:not(.lead) { color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 22px;
  font: 10px "Roboto Mono", monospace;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--line-bright);
  padding-bottom: 7px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.stat {
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(even) { border-right: 0; }
.stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
.stat strong { display: block; font-size: 38px; letter-spacing: -.05em; }
.stat span { color: #7e9098; font: 9px "Roboto Mono", monospace; letter-spacing: .12em; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 55px;
  background: var(--line);
}
.research-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  background: rgba(11, 23, 30, .86);
  border: 1px solid transparent;
}
.research-card:hover { border-color: var(--line-bright); }
.card-number {
  position: absolute;
  top: 22px; right: 24px;
  color: #53656e;
  font: 9px "Roboto Mono", monospace;
}
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line-bright);
  margin-bottom: 55px;
  color: #dce7eb;
  font: 11px "Roboto Mono", monospace;
}
.research-card h3 { font-size: 18px; margin: 0 0 12px; }
.research-card p { color: #80929a; font-size: 13px; }
.card-link, .text-button {
  margin-top: 22px;
  padding: 0;
  background: none;
  color: #dce7eb;
  border: 0;
  cursor: pointer;
  font: 9px "Roboto Mono", monospace;
  letter-spacing: .1em;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  margin-top: 55px;
}
.featured-news {
  min-height: 390px;
  padding: 40px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(10,25,33,.86), rgba(8,15,20,.72)),
    radial-gradient(circle at 80% 20%, rgba(64,81,91,.72), transparent 40%);
}
.tag {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  font: 8px "Roboto Mono", monospace;
}
.featured-news h3 {
  max-width: 650px;
  margin: 50px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.date { color: #778990; font: 9px "Roboto Mono", monospace; letter-spacing: .1em; }
.featured-news > p:not(.date) { max-width: 620px; color: var(--muted); }
.news-list { border-top: 1px solid var(--line); }
.news-list article {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.news-list span { color: #73858d; font: 9px "Roboto Mono", monospace; }
.news-list h4 { margin: 8px 0 0; font-size: 14px; }

.careers-box {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  margin-top: 55px;
  padding: 40px;
  border: 1px solid var(--line);
}
.jobs button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 19px 0;
  color: #dce7eb;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .04em;
}
.jobs button:hover { padding-left: 8px; }

.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 90px;
  margin-top: 55px;
}
.contact-info > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info span { display: block; color: #71838a; font: 9px "Roboto Mono", monospace; }
.contact-info strong { display: block; margin-top: 5px; font-size: 13px; }
.contact-info p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

form label {
  display: block;
  margin-bottom: 18px;
  color: #84959c;
  font: 9px "Roboto Mono", monospace;
  letter-spacing: .1em;
}
input, textarea {
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 13px 14px;
  color: white;
  background: #0a151c;
  border: 1px solid var(--line);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--line-bright); }
textarea { resize: vertical; }
.form-note { color: var(--green); font: 10px "Roboto Mono", monospace; }

.access-section {
  padding: 70px max(32px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(5, 12, 17, .84);
  border-top: 1px solid var(--line);
}
.access-section h2 { margin: 0; }
.access-section p:last-child { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 35px 32px;
  background: rgba(5, 12, 17, .86);
  border-top: 1px solid var(--line);
  color: #62737b;
  font: 8px "Roboto Mono", monospace;
  letter-spacing: .06em;
}
.footer-brand { color: #dce7eb; }

.modal, .login-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.active, .login-modal.active { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(7px);
}
.modal-panel, .login-panel {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  padding: 40px;
  background: #09151c;
  border: 1px solid var(--line-bright);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  border: 0;
  background: none;
  color: #9aacb3;
  cursor: pointer;
  font-size: 28px;
}
.modal-panel h2 { margin: 0; font-size: 34px; }
.modal-rule { height: 1px; background: var(--line); margin: 20px 0; }
.modal-panel > p:not(.eyebrow) { color: var(--muted); }
.modal-terminal {
  padding: 15px;
  margin-top: 25px;
  border: 1px solid var(--line);
  color: #79cda8;
  background: #050c10;
  font: 10px "Roboto Mono", monospace;
}
.login-panel { width: min(420px, 100%); text-align: center; }
.login-logo { margin: 5px auto 20px; font-size: 34px; }
.login-panel h2 { margin: 0; letter-spacing: .1em; }
.login-panel > p { color: #7e9098; font: 9px "Roboto Mono", monospace; }
.login-panel form { margin-top: 30px; }
.login-panel .btn { width: 100%; margin-top: 5px; }
.login-panel small { display: block; margin-top: 20px; color: #71838a; font: 8px "Roboto Mono", monospace; }

.scanlines {
  pointer-events: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.015) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: .16;
}

@media (max-width: 900px) {
  .topbar { padding: 0 18px; }
  nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #071016;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  nav a { padding: 16px 22px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; margin-left: auto; }
  .lang-btn { order: 3; }
  .hero { min-height: 720px; }
  .hero-status { left: 32px; right: auto; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .news-layout, .careers-box, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  body { background-attachment: fixed; }
  .hero-content { width: calc(100% - 36px); margin-top: 50px; }
  .hero h1 { font-size: 62px; }
  .hero-copy { font-size: 13px; }
  .hero-status { left: 18px; bottom: 20px; }
  .hero-status div { min-width: 92px; padding: 10px; }
  .hero-status div:nth-child(2) { display: none; }
  .section, .dark-section { padding: 75px 18px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 270px; }
  .featured-news { padding: 28px; min-height: 340px; }
  .careers-box { padding: 25px; }
  .access-section { padding: 50px 18px; align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; align-items: flex-start; padding: 28px 18px; }
  .ticker { padding-left: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .stat strong { font-size: 28px; }
  .modal-panel, .login-panel { padding: 28px 22px; }
}

/* Homepage hero image/logo centering adjustment */
.hero img, .banner img, .home img, .homepage img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
