:root {
  --header-height: 64px;
  text-rendering: geometricprecision;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light mode slate */
:root {
  --slate-1: 252, 252, 253;
  --slate-2: 249, 249, 251;
  --slate-3: 240, 240, 243;
  --slate-4: 232, 232, 236;
  --slate-5: 224, 225, 230;
  --slate-6: 217, 217, 224;
  --slate-7: 205, 206, 214;
  --slate-8: 185, 187, 198;
  --slate-9: 139, 141, 152;
  --slate-10: 128, 131, 141;
  --slate-11: 96, 100, 108;
  --slate-12: 28, 32, 36;

  /* Light mode gray */
  --gray-1: 252, 252, 252;
  --gray-2: 249, 249, 249;
  --gray-3: 240, 240, 240;
  --gray-4: 232, 232, 232;
  --gray-5: 224, 224, 224;
  --gray-6: 217, 217, 217;
  --gray-7: 206, 206, 206;
  --gray-8: 187, 187, 187;
  --gray-9: 141, 141, 141;
  --gray-10: 131, 131, 131;
  --gray-11: 100, 100, 100;
  --gray-12: 32, 32, 32;
}

html.dark {
  /* Dark mode slate */
  --slate-1: 17, 17, 19;
  --slate-2: 24, 25, 27;
  --slate-3: 33, 34, 37;
  --slate-4: 39, 42, 45;
  --slate-5: 46, 49, 53;
  --slate-6: 54, 58, 63;
  --slate-7: 67, 72, 78;
  --slate-8: 90, 97, 105;
  --slate-9: 105, 110, 119;
  --slate-10: 119, 123, 132;
  --slate-11: 176, 180, 186;
  --slate-12: 237, 238, 240;

  /* Dark mode gray */
  --gray-1: 17, 17, 17;
  --gray-2: 25, 25, 25;
  --gray-3: 34, 34, 34;
  --gray-4: 42, 42, 42;
  --gray-5: 49, 49, 49;
  --gray-6: 58, 58, 58;
  --gray-7: 72, 72, 72;
  --gray-8: 96, 96, 96;
  --gray-9: 110, 110, 110;
  --gray-10: 123, 123, 123;
  --gray-11: 180, 180, 180;
  --gray-12: 238, 238, 238;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: rgb(var(--slate-1));
  color: rgb(var(--slate-12));
  max-width: 100vw;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: -0.48px;
}

html.dark body {
  background-color: rgb(var(--slate-12));
  color: rgb(var(--slate-1));
}

#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 100vw;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 12vh 1.25rem;
  gap: 2rem;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.navbar {
  background-color: rgb(var(--slate-1));
  border-radius: 9999px;
}

.nav-container {
  background-color: rgb(var(--slate-1));
  border-radius: 9999px;
  padding: 0.25rem;
  display: flex;
  position: relative;
  align-items: center;
  box-shadow: 0px -1px 3px 0px rgba(0, 0, 0, 0.05),
              0px 7px 2px 0px rgba(0, 0, 0, 0.02),
              0px 4px 2px 0px rgba(0, 0, 0, 0.05),
              0px 2px 1px 0px rgba(0, 0, 0, 0.05),
              0px 1px 1px 0px rgba(0, 0, 0, 0.03),
              0px 0px 1px 0px rgba(0, 0, 0, 0.04);
}

html.dark .nav-container {
  box-shadow: 0px -1px 3px 0px rgba(0, 0, 0, 0.03),
              0px 7px 2px 0px rgba(0, 0, 0, 0.03),
              0px 4px 2px 0px rgba(0, 0, 0, 0.05),
              0px 2px 1px 0px rgba(0, 0, 0, 0.1),
              0px 1px 1px 0px rgba(0, 0, 0, 0.1),
              0px 0px 1px 0px rgba(0, 0, 0, 0.1);
}

.nav-background {
  position: absolute;
  transition: all 0.2s ease-in-out;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: rgb(var(--slate-3));
  width: 90px;
  left: 4px;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s;
  color: rgb(var(--slate-12));
  text-decoration: none;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

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

.nav-link.active {
  opacity: 1;
}

.main-content {
  display: flex;
  justify-content: center;
  flex: 1;
}

.waitlist-box {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(var(--gray-1), 0.85);
  padding-bottom: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0px 170px 48px 0px rgba(18, 18, 19, 0.00),
              0px 109px 44px 0px rgba(18, 18, 19, 0.01),
              0px 61px 37px 0px rgba(18, 18, 19, 0.05),
              0px 27px 27px 0px rgba(18, 18, 19, 0.09),
              0px 7px 15px 0px rgba(18, 18, 19, 0.10);
}

.box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  text-align: center;
  width: 100%;
  padding: 2rem 2rem 1rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  width: 8rem;
  height: auto;
  align-items: center;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--slate-12));
  letter-spacing: -0.02em;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.heading-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: rgb(var(--slate-12));
  white-space: pre-wrap;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .main-title {
    font-size: 2.25rem;
  }
}

.subtitle {
  color: rgb(var(--slate-10));
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.form-container {
  padding: 0 0.25rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-self: stretch;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

textarea {
  flex: 1;
  font-size: 0.875rem;
  padding: 1rem;
  background-color: rgba(var(--gray-11), 0.05);
  cursor: text;
  border-radius: 0.75rem;
  color: rgb(var(--gray-12));
  border: 1px solid rgba(var(--gray-11), 0.1);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

textarea::placeholder {
  color: rgb(var(--gray-9));
}

textarea:focus {
  outline: none;
  border-color: rgba(var(--gray-11), 0.2);
}

textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-btn {
  height: 2.75rem;
  padding: 0 1.5rem;
  background-color: rgb(var(--gray-12));
  color: rgb(var(--gray-1));
  font-size: 0.875rem;
  border-radius: 9999px;
  font-weight: 500;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: rgb(var(--gray-3));
  border-radius: 50%;
  color: rgb(var(--slate-11));
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background-color: rgb(var(--gray-4));
  color: rgb(var(--slate-12));
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  width: 100%;
  height: 0.5rem;
  position: absolute;
  top: 100%;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.form-message.show {
  opacity: 1;
}

.form-message.error {
  color: #ff0000;
}

.form-message.success {
  color: #00aa00;
}

.box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  align-self: stretch;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  background-color: rgba(var(--gray-12), 0.07);
  overflow: hidden;
}

.copyright {
  font-size: 0.75rem;
  color: rgb(var(--slate-10));
}

.theme-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.theme-btn {
  font-size: 0.75rem;
  color: rgb(var(--slate-10));
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.theme-btn:hover {
  color: rgb(var(--slate-11));
}

.theme-btn.active {
  color: rgb(var(--slate-12)) !important;
  font-weight: 500;
}

.theme-separator {
  font-size: 0.75rem;
  color: rgb(var(--slate-8));
}

/* Manifesto specific styles */
.manifesto-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.manifesto-text {
  color: rgb(var(--slate-11));
  letter-spacing: -0.025em;
  line-height: 1.6;
  text-align: left;
}

.manifesto-text p {
  margin-bottom: 0.75rem;
}

.manifesto-text p:last-child {
  margin-bottom: 0;
}

.author-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.signature {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  align-items: flex-start;
}

.signature-name {
  font-family: 'Alex Brush', cursive;
  color: rgb(var(--slate-12));
  font-size: 2.25rem;
  font-weight: 500;
  font-style: italic;
  transform: rotate(-12deg);
  margin: 0;
}

.author-info {
  color: rgb(var(--slate-11));
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.author-role {
  color: rgb(var(--slate-10));
  font-size: 0.75rem;
  font-weight: normal;
}

/* Responsive design */
@media (max-width: 640px) {
  .content-wrapper {
    padding: 8vh 1rem;
  }
  
  .box-content {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .box-footer {
    padding: 0.75rem 1.5rem;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
}
