/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 0;
  text-align: center;
}

.page-wrapper {
  width: 100%;
  max-width: 700px;
  padding: 2rem;
  margin: 0 auto;
  display: block;
  padding-bottom: 0;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 3rem 2rem;
  border-radius: 8px;
  padding-bottom: 0;
}

.headline {
  font-weight: 600;
  font-size: 4rem;
  margin-bottom: 0.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.description {
  font-weight: 500;
  font-size: 1.125rem;
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #ccc;
}

.hypetext {
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #ccc;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.email-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background-color: #111;
  color: #fff;
  outline-offset: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input::placeholder {
  color: #555;
}

.email-input:focus {
  border-color: #fff;
  box-shadow: 0 0 8px 2px #fff;
  background-color: #222;
}

.submit-button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
  padding: 0 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  user-select: none;
}

.submit-button:hover,
.submit-button:focus {
  background-color: #eee;
  color: #111;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.subtext {
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.6;
  color: #aaa;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  user-select: none;
  color: #aaa;
}

.form-status.error {
  color: #ff4d4d;
}

.form-status.success {
  color: #7fff7f;
}

/* Base dark mode (your existing styles) */
/* ...existing dark mode styles... */

/* Light mode overrides */
body.light-mode {
  background-color: #f9f9f9;
  color: #222222;
}

body.light-mode .page-wrapper {
  /* Optionally add subtle background or keep transparent */
  background: transparent;
}

body.light-mode .headline {
  color: #111111;
  font-weight: 600;
}

body.light-mode .description,
body.light-mode .hypetext {
  color: #555555;
}

body.light-mode .email-input {
  background-color: #fff;
  color: #111;
  border: 1px solid #ccc;
}

body.light-mode .email-input::placeholder {
  color: #999;
}

body.light-mode .email-input:focus {
  /* border-color: #0078d4; */
  box-shadow: none;
  background-color: #fff;
}

body.light-mode .submit-button {
  background-color: black;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}

body.light-mode .submit-button:hover,
body.light-mode .submit-button:focus {
  background-color: #da9501;
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 169, 0, 0.789);
}

body.light-mode .subtext,
body.light-mode .form-status {
  color: #555;
}

body.light-mode .form-status.error {
  color: #d93025;
}

body.light-mode .form-status.success {
  color: #34a853;
}

/* Toggle wrapper styles */
.mode-toggle-wrapper {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
}

/* Switch base styles */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 9999px;
  transition: background-color 0.4s ease;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.2);
}

/* Slider knob */
.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
}

/* Checked state background */
input:checked + .slider {
  background-color: #434444;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6);
}

/* Checked state knob position */
input:checked + .slider::before {
  transform: translateX(24px);
}

.brand-icon {
  position: relative;
  width: 55px;
  height: 55px;
  pointer-events: auto;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-footer {
  width: 100vw;
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  user-select: none;
  margin-top: 4rem;
  border-top: 1px solid #222;
  box-sizing: border-box;
  position: relative; /* ensure it flows naturally */
  z-index: 10;
}

/* Feature section styles */
.features {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.feature:nth-child(even) {
  flex-direction: row-reverse; /* alternate layout */
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 0.5rem;
  padding: 0 15px;
}

.feature-text p {
  font-size: 1rem;
  opacity: 0.85;
  padding: 0 15px;
  text-align: left;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  max-width: 70%;  /* reduced from 100% */
  height: auto;
  border-radius: 8px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background-color: rgba(0,0,0,0.85);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }
  
  .feature:nth-child(even) {
    flex-direction: column;
  }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  body {
    padding: 1rem;
    padding-bottom: 0;
  }

  .headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

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

  .submit-button,
  .email-input {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
  }

  .container {
    padding: 2rem 1rem;
    padding-bottom: 0;
  }
  .features {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-wrapper {
    padding: 1rem;
    max-width: 100%;
  }

  .feature-text h2 {
    font-size: 2.5rem;
  }
}