@font-face {
  font-family: 'MilkyBrush';
  src: url('/fonts/milky-brush.woff2') format('woff2'),
       url('/fonts/milky-brush.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Advercase';
  src: url('/fonts/advercase-regular.woff2') format('woff2'),
       url('/fonts/advercase-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

::selection {
  background: var(--color-orange);
  color: var(--color-purple);
}

:root {
  --color-purple: #4a3cc8;
  --color-purple-dark: #3d2fa8;
  --color-purple-light: #6c5ce7;
  --color-orange: #f47b2a;
  --color-orange-hover: #e06a1a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --font-body: 'Advercase', 'Georgia', serif;
  --font-display: 'MilkyBrush', 'Brush Script MT', cursive;
  --font-heading: 'Advercase', 'Georgia', serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-purple);
  position: relative;
  overflow-x: hidden;
}

/* Diagonal background: light purple top-left, dark purple bottom-right. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      var(--color-purple-light) 0%,
      var(--color-purple-light) 50%,
      var(--color-purple) 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Grain texture overlay via inline SVG noise filter. */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-text);
}

/* ==========================================
   Splash page
   ========================================== */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: normal;
  line-height: 1.1;
  color: var(--color-text);
  text-shadow:
    -3px 3px 0 var(--color-orange),
    -4px 4px 0 var(--color-orange);
  margin-bottom: 2rem;
  -webkit-text-stroke: 0;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-text);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

/* Waitlist form */
.waitlist-form {
  width: 100%;
  max-width: 390px;
}

.waitlist-form input {
  display: block;
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 100px;
  color: var(--color-purple);
  -webkit-text-fill-color: var(--color-purple);
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  outline: none;
  font-family: var(--font-body);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.waitlist-form input:focus {
  background: #ffffff;
}

.waitlist-form input::placeholder {
  color: #999999;
}

.waitlist-form button {
  display: block;
  width: 100%;
  background: var(--color-orange);
  color: var(--color-text);
  border: none;
  border-radius: 100px;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: var(--font-body);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}


.waitlist-form button:active {
  transform: scale(0.98);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.5;
  text-align: center;
  height: 3em;
  visibility: hidden;
}

.form-message.visible {
  visibility: visible;
}

.form-message.success,
.form-message.error {
  color: var(--color-text);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  font-size: 1.25rem;
}

.footer-email {
  color: var(--color-text);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: var(--color-text);
}

.wave-wrap {
  display: inline-block;
  width: 0;
  overflow: visible;
  transform: scale(0);
  transition: width 0.3s ease, transform 0.3s ease;
}

.footer-email:hover .wave-wrap {
  width: 2em;
  transform: scale(1.75);
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
}

.footer-email:hover .wave {
  animation: wave-loop 0.6s ease-in-out infinite alternate;
}

@keyframes wave-loop {
  from { transform: rotate(-18deg); }
  to { transform: rotate(18deg); }
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--color-text-dim);
  font-size: 1.25rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ==========================================
   Legal pages (TOS / Privacy Policy)
   ========================================== */

.legal-page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  font-size: 1.25rem;
}

.legal-logo,
.legal-logo:visited,
.legal-logo:hover,
.legal-logo:active {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: normal;
  line-height: 1.1;
  color: #ffffff;
  text-shadow:
    -3px 3px 0 var(--color-orange),
    -4px 4px 0 var(--color-orange);
  -webkit-text-stroke: 0;
  text-decoration: none;
  margin-bottom: 2rem;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: normal;
  margin-bottom: 0.25rem;
}

.legal-page .last-updated {
  font-family: var(--font-heading);
  color: var(--color-text-dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page ul {
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.175rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.375rem;
}

.legal-page a:not(.legal-logo) {
  color: var(--color-orange);
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page .legal-logo:hover {
  text-decoration: none;
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 1.5rem 1rem;
  }

  .logo {
    font-size: clamp(4.5rem, 8vw, 6rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .waitlist-form input,
  .waitlist-form button {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .waitlist-form input {
    margin-bottom: 0.6rem;
  }

  .form-message {
    margin-top: 1rem;
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    height: 2.5em;
  }

  .footer {
    padding: 1rem 1.5rem 5rem;
    font-size: 0.875rem;
  }

  .footer-email {
    font-size: 0.875rem;
    margin-bottom: 0;
  }

  .footer-links a {
    font-size: 0.875rem;
  }
}

