@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html, body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  --x: calc(var(--posX, 0) * 1px);
  --y: calc(var(--posY, 0) * 1px);
  background-image: 
    linear-gradient(115deg, rgb(211 255 215), rgb(0 0 0)), 
    radial-gradient( 90% 100% at calc( 50% + var(--x)) calc( 0% + var(--y)), rgb(200 200 200), rgb(022 000 045)), 
    radial-gradient(100% 100% at calc( 80% - var(--x)) calc( 0% - var(--y)), rgb(250 255 000), rgb(036 000 000)), 
    radial-gradient(150% 210% at calc(100% + var(--x)) calc( 0% + var(--y)), rgb(020 175 125), rgb(000 010 255)), 
    radial-gradient(100% 100% at calc(100% - var(--x)) calc(30% - var(--y)), rgb(255 077 000), rgb(000 200 255)), 
    linear-gradient(60deg, rgb(255 000 000), rgb(120 086 255));
  background-blend-mode: overlay, overlay, difference, difference, difference, normal;
  position: fixed;
  width: 100%;
  height: 100%;
}

.scroll-container {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  z-index: 1;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem 0;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  max-width: 55%;
  height: auto;
  transition: all 0.5s ease;
}

.hero-image-container .hero-image:first-child {
  position: absolute;
  z-index: 1;
  transform: translate(80px, 80px);
  opacity: 0.7;
}

.hero-image-container .hero-image:last-child {
  position: relative;
  z-index: 2;
  transform: translate(0, 0);
  opacity: 1;
}

.hero-image-container:hover .hero-image:first-child {
  z-index: 2;
  transform: translate(0, 0);
  opacity: 1;
}

.hero-image-container:hover .hero-image:last-child {
  z-index: 1;
  transform: translate(80px, 80px);
  opacity: 0.7;
}

.app-store-badge {
  display: inline-block;
  margin-top: 2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-image {
  height: 60px;
  width: auto;
}

.coming-soon {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  display: block;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.5rem 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 400;
}

/* App Mockups */
.app-mockups {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.mockup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
}

.mockup-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.mockup-caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Colorblindness Types */
.colorblindness-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.type-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.type-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.type-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
}

.type-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.type-card li {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.type-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1.2;
}

.type-card strong {
  color: #fff;
  font-weight: 600;
}

/* Filter Preview Section */
.filter-preview {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.filter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-controls label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.filter-controls select {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.filter-controls select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.filter-controls select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.filter-controls select option {
  background: #1a1a1a;
  color: #fff;
}

/* Image Gallery */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.image-comparison-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.image-comparison-container.active {
  display: block;
}

.image-comparison-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.image-comparison {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.image-comparison img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.comparison-before {
  position: relative;
  z-index: 1;
}

.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.comparison-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  text-transform: capitalize;
}

.before-label {
  left: 1rem;
}

.after-label {
  right: 1rem;
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  cursor: ew-resize;
  z-index: 4;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(0, 0, 0, 0.2);
}

.handle-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px;
}

.left-arrow {
  left: -20px;
  border-color: transparent rgba(0, 0, 0, 0.6) transparent transparent;
}

.right-arrow {
  right: -20px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.6);
}

.image-comparison.dragging .comparison-handle {
  background: rgba(255, 255, 255, 0.9);
}

/* Waitlist */
.waitlist-section {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  font-size: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.waitlist-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.waitlist-btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0f0f12;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.waitlist-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.waitlist-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.waitlist-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.waitlist-message {
  margin: 1rem 0 0 0;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.waitlist-message.success {
  color: rgba(180, 255, 180, 0.95);
}

.waitlist-message.error {
  color: rgba(255, 180, 180, 0.95);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  background: #000;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-creator {
  margin-top: 1rem !important;
}

.footer-contact {
  margin-top: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

p.footer-disclaimer {
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0.75;
  margin: 2rem auto 0 auto;
  max-width: 800px;
}

.footer-creator a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-creator a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .app-store-image {
    height: 50px;
  }
  
  .app-mockups {
    flex-direction: column;
    gap: 2rem;
  }
  
  .mockup-item {
    max-width: 100%;
  }
  
  .features-grid,
  .colorblindness-types {
    grid-template-columns: 1fr;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .control-group {
    width: 100%;
  }
  
  .filter-controls select {
    width: 100%;
  }
}
