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

:root {
  /* Fluid Typography Scale - adapts to screen size */
  --text-hero: clamp(1.125rem, 1rem + 1.25vw, 1.5rem);      /* 18px -> 24px */
  --text-large: clamp(1.0625rem, 1rem + 0.625vw, 1.25rem);  /* 17px -> 20px */
  --text-body: clamp(1rem, 0.95rem + 0.5vw, 1.125rem);      /* 16px -> 18px */
  --text-small: clamp(0.9375rem, 0.9rem + 0.375vw, 1rem);   /* 15px -> 16px */
  --text-xs: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);  /* 13px -> 14px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #fdf8f3;
  min-height: 100vh;
  line-height: 1.6;
  color: #1a1a1a;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 20px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
}

/* LEFT CONTENT */
.left-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.live-indicator {
  font-size: var(--text-small);
  margin-bottom: 18px;
  line-height: 1;
  display: inline-block;
  color: #22c55e;
  animation: glow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.4));
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.desktop-only.hero-title {
  font-size: 30px;
}

.hero-subtitle {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: clamp(20px, 3vw, 28px);
  line-height: 1.45;
}

.challenge-link {
  color: #4a4a4a;
  font-weight: 600;
}

.hero-description {
  font-size: var(--text-body);
  line-height: 1.65;
  color: #5a5a5a;
  margin-bottom: clamp(18px, 2.5vw, 24px);
}


.hero-cta-text {
  font-size: var(--text-large);
  color: #0a0a0a;
  font-weight: 600;
  margin-bottom: clamp(18px, 2.5vw, 22px);
}

/* RIGHT CONTENT */
.right-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.3s both;
}

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

/* iPhone 17 Pro Max Mockup */
.iphone-mockup {
  position: relative;
  transform: translateX(30px) rotate(-2deg);
  transition: transform 0.4s ease;
}

.iphone-mockup:hover {
  transform: translateX(30px) rotate(0deg) scale(1.02);
}

.iphone-frame {
  width: 400px;
  height: 680px;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  border-radius: 55px;
  padding: 12px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #1e1e1e;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 45px;
  overflow: hidden;
  position: relative;
}

.email-iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

/* INVITE FORM */
.invite-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  position: relative;
}

.email-input {
  padding: 16px 20px;
  font-size: var(--text-body);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.email-input:focus {
  border-color: #1877f2;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.15), 0 0 0 3px rgba(24, 119, 242, 0.08);
}

.email-input::placeholder {
  color: #9ca3af;
}

.invite-button {
  display: inline-block;
  padding: 16px 40px;
  background: #0066cc;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin: 0;
}

.invite-button:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

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

.form-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  font-size: var(--text-small);
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px 20px 20px;
  color: #666666;
  font-size: var(--text-xs);
  position: relative;
  z-index: 1;
}

.footer p {
  margin: 0 0 8px 0;
  color: #9ca3af;
}

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

.footer-link {
  color: #9ca3af;
  text-decoration: underline;
}

.footer-link:hover {
  color: #6b7280;
}

/* Mobile Headlines - Hidden on desktop */
.mobile-headlines {
  display: none;
}

.desktop-only {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  body::before,
  body::after {
    display: none;
  }
  
  .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 80px 24px 40px;
  }
  
  .mobile-headlines {
    display: block;
    order: -2;
    margin-bottom: 0;
  }
  
  .desktop-only {
    display: none;
  }
  
  .left-content {
    order: 1;
  }
  
  .right-content {
    order: -1;
    margin-bottom: 40px;
  }
  
  .iphone-mockup {
    transform: translateX(0) rotate(0deg);
  }
  
  .iphone-mockup:hover {
    transform: translateX(0) rotate(0deg) scale(1.02);
  }
  
  .iphone-frame {
    width: 340px;
    height: 580px;
    border-radius: 45px;
    padding: 10px;
  }
  
  .iphone-notch {
    width: 120px;
    height: 24px;
  }
  
  .iphone-screen {
    border-radius: 35px;
  }
}
