:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #111111;
  --surface-strong: #1a1a1a;
  --surface-muted: #222222;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #9e9e9e;
  --highlight: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --radius: 28px;
  --max-width: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #000000 0%, #070707 100%);
  color: var(--text);
  font-family: "Times New Roman", Georgia, serif;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

body.loading {
  overflow: hidden;
}

body.loading .page-shell {
  opacity: 0;
  pointer-events: none;
}

body.loaded .page-shell {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  opacity: 0;
}

section {
  scroll-margin-top: calc(88px + 1.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(28px);
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.25);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand,
.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px) scale(1.01);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before {
  content: '';
  top: -6px;
}

.nav-toggle span::after {
  content: '';
  top: 6px;
}

.nav-toggle.open span {
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.open span::before {
  top: 0;
  transform: translateX(-50%) rotate(-90deg);
}

.nav-toggle.open span::after {
  opacity: 0;
}

.hero-section,
.page-hero,
.section,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.hero-section {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-copy .eyebrow,
.section-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-copy h1,
.page-hero-copy h1,
.centered-copy h2,
.section-intro h2 {
  font-size: clamp(3.4rem, 4vw, 5.6rem);
  line-height: 0.95;
  margin: 18px 0 22px;
  letter-spacing: -0.04em;
}

.hero-copy p,
.section-intro p,
.centered-copy p,
.page-hero-copy p,
.about-panel p,
.contact-details p,
.feature-card p,
.vision-card p {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  transition: transform 0.25s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn:hover,
.card-btn:hover,
.filter-btn:hover,
.nav-cta:hover,
.nav-links a:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn:hover,
.card-btn:hover,
.filter-btn:hover,
.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:focus-visible,
.card-btn:focus-visible,
.filter-btn:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.hero-panel {
  position: relative;
  min-height: 540px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0), transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  overflow: hidden;
}

.hero-panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  z-index: 1;
}

.hero-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
  z-index: 2;
  border-radius: 36px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 45%);
  z-index: 3;
}

.hero-panel-shape {
  position: absolute;
  inset: -10% 4% auto -10%;
  width: 130%;
  height: 120%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 58% 42% 48% 52%;
  filter: blur(18px);
  transform: rotate(12deg);
  z-index: 4;
}

.hero-panel-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.26;
  z-index: 5;
}

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

.section-intro,
.page-hero-copy,
.centered-copy {
  max-width: 780px;
}

.ecosystem-preview .section-intro,
.future-vision .section-intro {
  margin-bottom: 48px;
}

.app-grid,
.feature-highlights,
.vision-grid,
.about-grid {
  display: grid;
  gap: 28px;
}

.app-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.app-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 90px rgba(255, 255, 255, 0.08);
}

.app-card h3,
.feature-card h3,
.vision-card h4,
.about-panel h2,
.contact-panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.status {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-live {
  color: #d7ffdb;
  border-color: rgba(215, 255, 219, 0.18);
}

.status-dev {
  color: #b0d5ff;
  border-color: rgba(176, 213, 255, 0.18);
}

.card-btn {
  font-size: 0.82rem;
  color: #fff;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.system-philosophy {
  text-align: center;
}

.feature-highlights {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.feature-card,
.vision-card,
.about-panel,
.contact-panel,
.app-sidebar,
.search-bar,
.cta-copy {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 38px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.vision-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.vision-card {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.vision-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(255, 255, 255, 0.06);
}

.cta-panel {
  padding: 80px 0;
}

.cta-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 3.2rem);
}

.site-footer {
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand,
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p,
.footer-section a {
  color: var(--muted);
}

.footer-section h4 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-section a {
  display: inline-block;
  line-height: 1.9;
}

.footer-section a:hover {
  color: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 120px;
}

.app-sidebar {
  position: sticky;
  top: calc(88px + 24px);
  align-self: start;
}

.app-sidebar h2,
.filter-group {
  margin-bottom: 24px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-btn {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-size: 0.95rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.search-bar input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar span {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.page-hero-copy {
  max-width: 780px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1080px) {
  .hero-section,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-copy {
    flex-direction: column;
    text-align: left;
  }

  .about-grid,
  .feature-highlights,
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-bar {
    padding: 18px 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 24px;
    width: min(320px, calc(100vw - 48px));
    background: rgba(5, 5, 5, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .page-shell {
    padding-bottom: 24px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: relative;
    top: auto;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    right: 16px;
    width: min(280px, calc(100vw - 32px));
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: clamp(2.6rem, 8vw, 3.8rem);
  }

  .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .app-grid,
  .vision-grid,
  .about-grid,
  .feature-highlights {
    gap: 22px;
  }

  .cta-copy {
    padding: 28px;
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
