:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: #0f1c2f;
  --surface-soft: #152639;
  --surface-light: #f7f8fb;
  --text: #f5f9ff;
  --text-muted: #b8c6d6;
  --accent: #5ad4ff;
  --accent-soft: rgba(90, 212, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  --shadow: 0 28px 80px rgba(2, 8, 20, 0.22);
  --radius: 24px;
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-focus: rgba(90, 212, 255, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, rgba(74, 154, 255, 0.08), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #06101f 0%, #08151f 38%, #08191f 100%);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.8px, transparent 0.8px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
button:hover {
  opacity: 0.92;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 1.5rem 0;
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.rocket-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-link:hover .rocket-icon,
.brand-link:focus-visible .rocket-icon,
.brand-link.is-launching .rocket-icon {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(90, 212, 255, 0.7));
}

.brand-link.is-launching .rocket-icon {
  animation: saucer-launch 1.2s ease-in forwards;
}

@keyframes saucer-launch {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  20% { transform: translateY(-8px) scale(1.15) rotate(0deg); opacity: 1; }
  45% { transform: translateY(-18px) scale(1.6) rotate(0deg); opacity: 1; }
  70% { transform: translateY(-28px) scale(2.2) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-220px) scale(0.15) rotate(0deg); opacity: 0; }
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-action:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0.7) 45%, rgba(7, 16, 31, 0.82) 100%), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.03);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 4vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero-copy p {
  margin: 1.75rem 0 0;
  max-width: 54rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  justify-content: center;
}

.btn,
.btn-secondary,
.btn-ghost {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn {
  background: linear-gradient(135deg, #68d7ff 0%, #3b9dff 100%);
  color: #07101f;
  box-shadow: 0 22px 50px rgba(17, 84, 143, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-items: center;
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top right, rgba(90, 212, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.info-card {
  position: relative;
  z-index: 1;
}

.info-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.info-card p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1rem 1rem 1rem 0;
  border-left: 3px solid rgba(90, 212, 255, 0.5);
  color: var(--text-muted);
}

.info-list span {
  font-weight: 700;
  color: var(--text);
}

.status-banner {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
}

.section p,
.section li,
.section dd {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card,
.list-card,
.content-panel,
.form-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.feature-card h3,
.list-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.feature-card p,
.list-card p,
.content-panel p {
  margin: 1rem 0 0;
}

.callout {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(17, 52, 90, 0.75), rgba(8, 18, 31, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.callout h3 {
  margin: 0;
  color: #e9f8ff;
}

.callout p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.section-light {
  background: #f7f8fb;
  color: #0f1729;
}

.section-light h2,
.section-light h3,
.section-light p,
.section-light li {
  color: #0f1729;
}

.section-light .feature-card,
.section-light .list-card,
.section-light .form-panel,
.section-light .content-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f1729;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.research-page .content-panel,
.research-page .list-card,
.research-page .form-panel {
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(7, 15, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(1, 9, 22, 0.22);
  color: var(--text);
}

.research-page .content-panel h2,
.research-page .content-panel p,
.research-page .list-card h3,
.research-page .list-card p,
.research-page .form-panel label,
.research-page .form-panel p {
  color: var(--text);
}

.research-page input,
.research-page textarea,
.research-page select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.research-page input::placeholder,
.research-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.resource-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(90, 212, 255, 0.12);
  border: 1px solid rgba(90, 212, 255, 0.24);
  color: #0f1729;
}

.resource-browse {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(7, 16, 31, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.resource-field {
  display: grid;
  gap: 0.4rem;
}

.resource-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1729;
}

.resource-browse input,
.resource-browse select {
  width: 100%;
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.resource-clear {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: #fff;
  color: #0f1729;
  cursor: pointer;
}

.resource-results {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .resource-browse {
    grid-template-columns: 1fr;
  }

  .resource-clear {
    width: 100%;
  }
}

.resource-sources {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: #475569;
}

.resource-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.resource-links a {
  color: var(--accent);
  font-weight: 600;
}

.list-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.list-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.list-card li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.forum-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.forum-post {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.forum-post h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.forum-post p {
  margin: 0.4rem 0 0;
  color: #475569;
}

.forum-meta {
  font-size: 0.9rem;
  color: #64748b;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  padding: 0.95rem 1rem;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--input-focus);
  background: rgba(255, 255, 255, 0.1);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field-help {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-message {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.privacy-box {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
}

.privacy-box input {
  width: 2rem;
  height: 2rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.stats-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.35rem;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--text);
}

.stat-card span {
  color: var(--text-muted);
}

.section-narrow {
  max-width: 770px;
}

.page-intro {
  margin-top: 0.5rem;
}

.page-intro p {
  margin: 1rem 0 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 3.4rem);
}

.page-header .page-meta {
  color: var(--text-muted);
}

.block-divider {
  margin: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-subtle {
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.footer {
  padding: 3rem 0 2rem;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr;
}

.footer-nav {
  display: grid;
  gap: 0.85rem;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-muted);
}

.visit-counter {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header,
  .footer {
    padding: 1rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 9vw, 4.4rem);
  }

  .site-nav {
    gap: 0.85rem;
  }

  .feature-card,
  .list-card,
  .content-panel,
  .form-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
