/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.container.dark {
  background-color: #000;
  color: #fff;
}

.container.light {
  background-color: #fff;
  color: #000;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.nav-left {
  right: auto;
  left: 1rem;
}

.nav-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.nav-link:hover {
  opacity: 0.7;
}

/* ── Pages (SPA sections) ────────────────────────────────── */
.page {
  display: none;
  text-align: center;
  padding: 1rem;
}

.page.active {
  display: block;
}

.content-text {
  max-width: 600px;
  line-height: 1.6;
}

/* ── Typed Text ──────────────────────────────────────────── */
.typed-container {
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.5rem;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 1rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  padding: 0 1rem;
}

/* ── Investor Login ──────────────────────────────────────── */
.login-wrapper {
  width: 100%;
  max-width: 28rem;
  padding: 0 1rem;
}

.login-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: normal;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
}

.form-input {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: inherit;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.login-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-button:hover {
  opacity: 0.9;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 640px) {
  .nav {
    top: 1.25rem;
    right: 1.25rem;
    gap: 1.25rem;
    font-size: 1rem;
  }

  .nav-left {
    right: auto;
    left: 1.25rem;
  }

  .typed-container {
    font-size: 1.875rem;
  }

  .footer {
    bottom: 1.25rem;
    font-size: 0.875rem;
  }

  .login-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .login-form {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .typed-container {
    font-size: 2.25rem;
  }
}
