/* MAVE Landing Page Styles */

/* Theme Colors from mave-app theme */
:root {
  /* Brand Colors */
  --brand-40: #33C7C7;
  --brand-50: #07B3B3;
  --brand-60: #069E9E;
  
  /* Gray Colors */
  --gray-10: #F3F4F6;
  --gray-30: #D1D5DB;
  --gray-40: #9CA3AF;
  --gray-50: #6B7280;
  --gray-60: #4B5563;
  --gray-70: #373F51;
  --gray-80: #222A3D;
  --gray-90: #13192B;
  
  /* Basic Colors */
  --white: #FFFFFF;
  --black: #121212;
  
  /* Custom Colors */
  --text-shadow-light: #F3F4F6;
  --text-shadow-highlight: #33C7C7;
  
  /* Mouse tracking variables */
  --mouse-x: 50%;
  --mouse-y: 50%;
  
  /* Email input focus effect variables */
  --email-focus-radius: 0px;
  --email-focus-opacity: 0;
  --email-input-x: 50%;
  --email-input-y: 50%;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  
  /* Animation states */
  --input-expanded-width: 1.2;
  --input-focused-width: 1.4;
  --input-width-scale: 1.0;
  --input-expanded-fixed-width: 450px;
  --input-mobile-expanded-width: 90vw;
  --scroll-animation-running: false;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

/* Background Text Effect */
.background-text {
  word-break: break-all;
  position: fixed;
  top: -10px;
  left: -10px;
  width: 130vw;
  height: 110vh;
  z-index: 1;
  pointer-events: all;
  overflow: hidden;
}

/* Scroll velocity animation */
.background-text.scroll-animation .text-layer:nth-child(odd) {
  animation: scrollLeft 20s linear infinite;
}

.background-text.scroll-animation .text-layer:nth-child(even) {
  animation: scrollRight 25s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes scrollRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.text-layer {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120%;
  height: 110%;
  pointer-events: none;
  
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  word-spacing: 0.3em;
}

/* Base text layer with light shadow */
.text-base {
  z-index: 1;
  color: var(--white);
  text-shadow: 
    -1px -1px 0 var(--text-shadow-light),
    1px -1px 0 var(--text-shadow-light),
    -1px 1px 0 var(--text-shadow-light),
    1px 1px 0 var(--text-shadow-light),
    -2px 0 0 var(--text-shadow-light),
    2px 0 0 var(--text-shadow-light),
    0 -2px 0 var(--text-shadow-light),
    0 2px 0 var(--text-shadow-light);
    /* text-shadow:
    0 0 5px var(--brand-50),
    0 0 12px var(--brand-30),
    0 0 20px var(--brand-10); */
}
.text-layer span {
    padding: 0 0.2rem;
}
/* Highlight text layer with teal shadow and circular mask */
.text-highlight {
  z-index: 2;
  color: var(--white);
  text-shadow: 
    -1px -1px 0 var(--text-shadow-highlight),
    1px -1px 0 var(--text-shadow-highlight),
    -1px 1px 0 var(--text-shadow-highlight),
    1px 1px 0 var(--text-shadow-highlight),
    -2px 0 0 var(--text-shadow-highlight),
    2px 0 0 var(--text-shadow-highlight),
    0 -2px 0 var(--text-shadow-highlight),
    0 2px 0 var(--text-shadow-highlight);
  
  /* Circular mask that follows mouse */
  -webkit-mask: radial-gradient(
    circle 120px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 60%,
    transparent 100%
  );
  mask: radial-gradient(
    circle 120px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 60%,
    transparent 100%
  );
  
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* Email focus text layer with brand color and expanding mask */
.text-email-focus {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120%;
  height: 110%;
  pointer-events: none;
  z-index: 3;
  
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  word-spacing: 0.3em;
  
  /* Use full brand color styling for immediate, strong visual feedback */
  color: var(--white);
  text-shadow: 
    -1px -1px 0 var(--brand-40),
    1px -1px 0 var(--brand-40),
    -1px 1px 0 var(--brand-40),
    1px 1px 0 var(--brand-40),
    -2px 0 0 var(--brand-40),
    2px 0 0 var(--brand-40),
    0 -2px 0 var(--brand-40),
    0 2px 0 var(--brand-40);
  
  /* Expanding circular mask from email input location */
  -webkit-mask: radial-gradient(
    circle var(--email-focus-radius) at var(--email-input-x) var(--email-input-y),
    black 0%,
    black 60%,
    transparent 100%
  );
  mask: radial-gradient(
    circle var(--email-focus-radius) at var(--email-input-x) var(--email-input-y),
    black 0%,
    black 60%,
    transparent 100%
  );
  
  opacity: var(--email-focus-opacity);
  transition: opacity 0.3s ease-in-out;
}

.text-email-focus span {
  padding: 0 0.2rem;
}

/* Show highlight layer on hover */
.background-text:hover .text-highlight {
  opacity: 1;
}

/* Custom cursor */
.background-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--brand-40) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.background-text:hover::after {
  opacity: 0.8;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;
}

.logo a {
  color: var(--brand-50) !important; /* Override browser link colors */
  text-decoration: none;
  display: inline-block;
}

.logo a:visited {
  color: var(--brand-50) !important; /* Override visited link color */
}

.logo a:hover {
  color: var(--brand-40) !important; /* Lighter brand color on hover */
}

.logo svg {
  height: 32px;
  width: auto;
  transition: color 0.2s ease;
  display: block;
}

.logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(26%) sepia(8%) saturate(1347%) hue-rotate(184deg) brightness(92%) contrast(92%);
  transition: filter 0.2s ease;
}

.linkedin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer !important;
  z-index: 1001;
  position: relative;
  pointer-events: all;
}

.linkedin-icon svg {
  width: 32px;
  height: 32px;
  fill: #07B3B3;
  transition: fill 0.2s ease;
  pointer-events: none;
}

.linkedin-icon:hover svg {
  fill: #66D5D5;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 100;
  margin: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem;
}

.cta-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  min-height: 60px; /* Ensure container has height for absolute positioning */
}

/* Button that looks like an input */
.curious-button {
  width: 250px;
  max-width: 500px;
  padding: 1rem 1.25rem;
  border: 1px solid #efefef;
  background: var(--brand-50);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease-in-out;
  cursor: pointer !important;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform-origin: center;
  text-align: center;
  font-family: 'Figtree', sans-serif;
  position: relative;
  overflow: hidden;
}

.curious-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle shimmer overlay */
.curious-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
  animation: shimmerLoop 2.5s ease-in-out infinite;
}

/* Shimmer animation keyframes */
@keyframes shimmerLoop {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.curious-button:hover {
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.curious-button:hover::before {
  background: rgba(255, 255, 255, 0.15);
}

.curious-button:active {
  transform: translateY(0);
}

.curious-button:active::before {
  background: rgba(255, 255, 255, 0.2);
}

/* Clicked state - immediate color change */
.curious-button.clicked {
  color: var(--gray-50);
  font-weight: 500;
  text-align: left;
  border-color: var(--brand-50);
  box-shadow: 
    0 8px 32px rgba(7, 179, 179, 0.2),
    0 0 0 1px rgba(7, 179, 179, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.curious-button.clicked::after {
  opacity: 0;
}

.curious-button.clicked::before {
  background: rgba(255, 255, 255, 0.95);
}

/* Input container wrapper */
.input-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  max-width: 500px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.input-container.fade-in {
  opacity: 1;
}

/* Actual email input */
.email-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.25rem;
  border: 2px solid var(--brand-50);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease-in-out;
  cursor: text;
  pointer-events: all;
  box-shadow: 
    0 8px 32px rgba(7, 179, 179, 0.2),
    0 0 0 1px rgba(7, 179, 179, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform-origin: center;
  text-align: left;
}

.email-input::placeholder {
  color: var(--gray-50);
  font-weight: 500;
}

.email-input:focus,
.email-input.permanent-focus {
  border-color: var(--brand-50) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    0 8px 32px rgba(7, 179, 179, 0.2),
    0 0 0 1px rgba(7, 179, 179, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.input-container:has(.email-input:focus),
.input-container:has(.email-input.permanent-focus) {
  width: var(--input-expanded-fixed-width);
  max-width: var(--input-expanded-fixed-width);
  transition: width 0.3s ease-in-out, max-width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Ensure permanent focus state overrides everything */
.email-input.permanent-focus {
  border-color: var(--brand-50) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 
    0 12px 40px rgba(7, 179, 179, 0.3),
    0 0 0 2px rgba(7, 179, 179, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Force permanent focus state even when not focused */
.email-input.permanent-focus:not(:focus) {
  border-color: var(--brand-50) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 
    0 12px 40px rgba(7, 179, 179, 0.3),
    0 0 0 2px rgba(7, 179, 179, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Error state */
.email-input.error {
  border-color: #F43F5E !important;
  background: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 
    0 8px 32px rgba(239, 68, 68, 0.2),
    0 0 0 1px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #F43F5E !important;
  animation: shake 0.5s ease-in-out;
}

/* Success state */
.email-input.success {
  border-color: var(--brand-50) !important;
  background: rgba(5, 150, 105, 0.1) !important;
  box-shadow: 
    0 8px 32px rgba(5, 150, 105, 0.2),
    0 0 0 1px rgba(5, 150, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: var(--brand-50) !important;
}

/* Success hide animation - applied to entire input container */
.input-container.success-hide {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.8, 1);
}

/* Hide entire CTA section after success */
.cta-section.success-complete {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.8, 1);
  pointer-events: none;
}

@keyframes shake {
  0%, 100% { transform: translateY(-2px) translateX(0); }
  25% { transform: translateY(-2px) translateX(-5px); }
  75% { transform: translateY(-2px) translateX(5px); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.curious-button.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

.input-container.fade-in {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.send-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 22px;
  height: 22px;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  color: var(--brand-50);
  pointer-events: none;
  z-index: 10;
}

.send-icon.visible {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.send-icon:hover {
  color: var(--brand-60);
  transform: translateY(-50%) scale(1.1);
}

.send-icon:active {
  transform: translateY(-50%) scale(0.95);
}

/* Remove old send button styles */
.send-button {
  display: none;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 100;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left p {
  color: var(--gray-60);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  margin-bottom: 0.25rem;
}

.footer-right {
  display: flex;
  align-items: center;
}

.compliance-icons {
  display: flex;
  gap: 1rem;
}

.compliance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-50);
  cursor: default;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.compliance-icon:hover {
  opacity: 1;
}

.compliance-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-50);
}

.compliance-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Override cursor for any clickable elements */
button, 
input, 
select, 
textarea, 
a, 
[role="button"], 
[tabindex]:not([tabindex="-1"]) {
  cursor: revert !important;
}

/* Ensure curious button always has pointer cursor */
.curious-button {
  cursor: pointer !important;
}

.curious-button * {
  cursor: pointer !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .main-content {
    margin: 2rem 1rem;
    padding: 4rem 1rem 2rem;
  }

  .text-layer {
    font-size: 48px;
    padding: 1rem;
  }

  .cta-section {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }

  .cta-form {
    max-width: 100%;
    margin: 0 1rem;
  }

  .curious-button {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  .input-container {
    width: 70vw;
    max-width: 70vw;
  }

  .email-input {
    font-size: 1rem;
    padding: 0.875rem 3rem 0.875rem 1rem;
    width: 60%;
  }

  .send-icon {
    right: 6.5rem;
    width: 18px;
    height: 18px;
  }

  .footer {
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
  }

  .footer-left {
    align-items: flex-start;
    text-align: left;
  }

  .footer-left .privacy-link {
    align-self: flex-start;
  }

  .compliance-icons {
    justify-content: flex-start;
  }

  .text-highlight {
    -webkit-mask: radial-gradient(
      circle 80px at var(--mouse-x) var(--mouse-y),
      black 0%,
      black 60%,
      transparent 100%
    );
    mask: radial-gradient(
      circle 80px at var(--mouse-x) var(--mouse-y),
      black 0%,
      black 60%,
      transparent 100%
    );
  }
}

/* High performance mode for older devices */
@media (prefers-reduced-motion: reduce) {
  .text-highlight {
    transition: none;
  }
  
  .send-button:hover {
    transform: none;
  }
}

/* Privacy Policy Page Styles */
.privacy-page {
  background-color: var(--white);
  cursor: auto;
}

/* Header positioning for privacy/terms pages */
.header-privacy {
  position: relative !important;
}

/* Ensure cursor is visible and elements are clickable on privacy/terms pages */
.privacy-container {
  cursor: auto !important;
  pointer-events: all !important;
}

.privacy-container * {
  cursor: auto !important;
  pointer-events: all !important;
}

/* Override body cursor for privacy pages */
body.privacy-page {
  cursor: auto !important;
}

.privacy-page .background-text {
  display: none;
}

.privacy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.privacy-content {
  flex: 1;
  margin: 2rem 0 4rem;
  padding: 2rem 0;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-10);
}

.privacy-header h1 {
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-90);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.privacy-header .last-updated {
  color: var(--gray-50);
  font-size: 1rem;
  font-weight: 500;
}

.privacy-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  font-family: var(--font-family);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-80);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-20);
}

.privacy-section h3 {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-70);
  margin: 1.75rem 0 1rem;
}

.privacy-section p {
  font-size: 1rem;
  color: var(--gray-60);
  margin-bottom: 1rem;
  font-weight: 400;
}

.privacy-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.privacy-section li {
  font-size: 1rem;
  color: var(--gray-60);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-section strong {
  color: var(--gray-80);
  font-weight: 600;
}

.contact-info {
  background-color: var(--gray-10);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--gray-70);
}

.contact-info a {
  color: var(--brand-50);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--brand-60);
  text-decoration: underline;
}

/* Privacy page footer link styling */
.footer-left .privacy-link {
  color: var(--gray-40);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  cursor: pointer !important;
  pointer-events: all !important;
  align-self: flex-start;
}

.footer-left .privacy-link:hover {
  color: var(--gray-50);
}

/* Privacy page logo link */
.privacy-page .logo a {
  cursor: pointer !important;
  pointer-events: all !important;
  display: inline-block;
}

.privacy-page .logo a:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* Responsive design for privacy page */
@media (max-width: 768px) {
  .privacy-container {
    padding: 0 1.5rem;
  }
  
  .privacy-header h1 {
    font-size: 2.25rem;
  }
  
  .privacy-content {
    margin: 1rem 0 2rem;
    padding: 1rem 0;
  }
  
  .privacy-section h2 {
    font-size: 1.5rem;
  }
  
  .privacy-section h3 {
    font-size: 1.125rem;
  }
  
  .privacy-section ul {
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  .privacy-header h1 {
    font-size: 1.75rem;
  }
  
  .privacy-section h2 {
    font-size: 1.25rem;
  }
  
  .contact-info {
    padding: 1rem;
  }
} 