:root {
  --bg-dark: #171717;
  --card-dark: #1f1f1f;
  --text-purple: #8269C7;
  --text-dark: #171717;
  --error: #FF4C4C;
  --success: #32CD32;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
}

html.dark-mode, body.dark-mode {
  background-color: #171717;
  color: white;
}

html.light-mode, body.light-mode {
  background-color: white;
  color: #171717;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  padding: 1rem 2rem;
  margin: 1rem;
  position: relative;
  z-index: 10;
}

.logo-bg, .toggle-bg {
  padding: 0.5rem 0.75rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: inline-block;
  max-height: 30px;
  width: auto;
  object-fit: contain;
}

.site-name {
  font-size: 1.5rem;
  color: var(--text-purple);
  margin-left: 0.4rem;
  font-weight: 500;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
  margin-top: 120px;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-purple);
}

.ribyl {
  color: var(--text-purple);
}

.cta-button {
  background-color: var(--text-purple);
  color: var(--text-dark);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

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

.status {
  margin-top: 2rem;
  font-weight: bold;
  display: none;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--error);
}

html.light-mode .topbar {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

html.light-mode .logo-bg-wrapper {
  background-color: #fefefe;
}

html.dark-mode .content,
body.dark-mode .content {
  background-color: #171717;
}

html.light-mode .content,
body.light-mode .content {
  background-color: #ffffff;
}

html.light-mode .topbar {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

html.dark-mode .topbar {
  background-color: var(--card-dark);
}

html.light-mode .logo-bg,
html.light-mode .toggle-bg {
  background-color: #ffffff;
}

html.dark-mode .logo-bg,
html.dark-mode .toggle-bg {
  background-color: #171717;
}

html.light-mode .site-name {
  color: #8269C7;
}

html.light-mode .cta-button {
  color: #171717;
}

html.light-mode .logo-bg,
html.light-mode .toggle-bg {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}



html.dark-mode .logo-bg,
html.dark-mode .toggle-bg {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html.light-mode #themeToggle span {
  background: none !important;
  border: none !important;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
}

.waitlist-input,
.waitlist-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.waitlist-input:focus,
.waitlist-textarea:focus {
  outline: none;
  border-color: #8269C7;
  box-shadow: 0 0 0 2px rgba(130, 105, 199, 0.3);
}

html.dark-mode .waitlist-input,
html.dark-mode .waitlist-textarea {
  background-color: #1f1f1f;
  color: #8269C7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: none;
}

html.dark-mode .waitlist-input::placeholder,
html.dark-mode .waitlist-textarea::placeholder {
  color: #8269C7;
}

html.light-mode .waitlist-input,
html.light-mode .waitlist-textarea {
  background-color: #ffffff;
  color: #171717;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
}

html.light-mode .waitlist-input::placeholder,
html.light-mode .waitlist-textarea::placeholder {
  color: #171717;
}
