/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: hidden; /* Prevent vertical scrolling on desktop */
  height: 100vh;
  margin: 0;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden; /* Prevent horizontal overflow */
  overflow-y: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  padding: 32px 60px;
  z-index: 10;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img:first-child {
  width: 48px;
  height: 48px;
}

.header__logo img:last-child {
  width: 120px;
  height: auto;
}

/* ==========================================================================
   Main Content Area (Horizontal Layout)
   ========================================================================== */
.main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 60px 0;
  gap: 80px;
  overflow: visible; /* Allow phone to extend beyond container */
  max-width: 1920px; /* Max width for ultra-wide monitors */
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Left Side: Content
   ========================================================================== */
.content {
  flex: 0 0 auto;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 0;
}

.content__headline {
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.content__subhead {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Email Form
   ========================================================================== */
.email-form {
  margin-top: 16px;
}

.email-bar {
  width: 100%;
  max-width: 520px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 4px 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(16, 23, 42, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.email-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    var(--green) 50%,
    transparent 60%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderAnimation 3s linear infinite;
  pointer-events: none;
}

.email-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(55, 212, 146, 0.18),
              0 10px 30px rgba(16, 23, 42, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.email-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--ink);
}

.email-bar__input::placeholder { 
  color: var(--text-muted); 
}

.email-bar__btn {
  height: 56px;
  padding: 0 30px;
  border-radius: 28px;
  background: var(--ink-pure);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.email-bar__btn:hover {
  opacity: 0.9;
}

.email-bar__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Messages */
.form-message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: #ef4444;
}

/* ==========================================================================
   Social Proof
   ========================================================================== */
.social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.social__avatars { 
  width: 80px; 
  height: 32px; 
}

.social__text { 
  font-size: 14px; 
  color: var(--text-muted); 
}

/* ==========================================================================
   Right Side: Hero Stage
   ========================================================================== */
.hero {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible; /* Allow cards to overflow */
  height: 100%;
  pointer-events: none;
  width: 50%;
}

.hero__glow {
  position: fixed;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75vh;
  background: linear-gradient(
    180deg,
    rgba(55, 212, 146, 0) 0%,
    rgba(55, 212, 146, 0.12) 20%,
    rgba(55, 212, 146, 0.25) 40%,
    rgba(55, 212, 146, 0.38) 60%,
    rgba(55, 212, 146, 0.52) 80%,
    rgba(55, 212, 146, 0.65) 100%
  );
  pointer-events: none;
}

.hero__gradient-line {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 45%;
  height: 120px;
  background: linear-gradient(
    90deg,
    rgba(55, 212, 146, 0) 0%,
    rgba(55, 212, 146, 0.15) 25%,
    rgba(55, 212, 146, 0.35) 50%,
    rgba(55, 212, 146, 0.15) 75%,
    rgba(55, 212, 146, 0) 100%
  );
  filter: blur(40px);
  pointer-events: none;
  transform: translateY(-50%);
}

.hero__label {
  position: absolute;
  z-index: 1;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hero__label img {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.hero__launch {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.hero__launch-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.hero__stores {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.store-badge {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.store-badge:hover {
  opacity: 1;
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: 480px;
  height: auto;
  max-width: none; /* Don't constrain the phone */
  pointer-events: auto;
}

.hero__phone { 
  display: block; 
  width: 100%; 
  height: 100%;
  animation: floatPhone 6.5s ease-in-out infinite alternate;
}

/* ==========================================================================
   Floating Cards
   ========================================================================== */
.card {
  position: absolute;
  z-index: 2;
  display: block;
}

.card--vehicle {
  top: 38%;
  left: -18%;
  width: 190px;
  border-radius: 18px;
  box-shadow: 
    -0.5px -0.5px 0px 0px rgba(0, 0, 0, 0.05),
    10px 10px 21.21px -3.75px rgba(0, 0, 0, 0.055),
    5.9px 5.9px 8.35px -3px rgba(0, 0, 0, 0.14),
    2.66px 2.66px 3.76px -2.25px rgba(0, 0, 0, 0.16),
    1.21px 1.21px 1.71px -1.5px rgba(0, 0, 0, 0.247),
    0.44px 0.44px 0.63px -1px rgba(0, 0, 0, 0.26),
    -1px -1px 1px 0px rgba(0, 0, 0, 0.15) inset,
    1px 1px 1px 0px rgba(255, 255, 255, 1) inset;
  animation: floatCardB 7.5s ease-in-out infinite;
}

.card--wallet {
  top: 28%;
  right: -12%;
  width: 173px;
  border-radius: 20px;
  box-shadow: 
    -0.5px -0.5px 0px 0px rgba(0, 0, 0, 0.05),
    10px 10px 21.21px -3.75px rgba(0, 0, 0, 0.055),
    5.9px 5.9px 8.35px -3px rgba(0, 0, 0, 0.05),
    2.66px 2.66px 3.76px -2.25px rgba(0, 0, 0, 0.05),
    1.21px 1.21px 1.71px -1.5px rgba(0, 0, 0, 0),
    0.44px 0.44px 0.63px -1px rgba(0, 0, 0, 0.19),
    -1px -1px 1px 0px rgba(0, 0, 0, 0.15) inset,
    1px 1px 1px 0px rgba(255, 255, 255, 1) inset;
  animation: floatWallet 8.8s ease-in-out infinite;
  animation-delay: -1.8s;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(
    180deg,
    rgba(247, 247, 247, 0) 0%,
    rgba(247, 247, 247, 0.3) 30%,
    rgba(247, 247, 247, 0.7) 60%,
    rgba(247, 247, 247, 1) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  z-index: 6;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes floatPhone { 
  from { transform: translateY(0); } 
  to { transform: translateY(-12px); } 
}

@keyframes floatCardB {
  0% { 
    transform: translate(0px, 0px) scale(1) rotate(0deg); 
  }
  33% { 
    transform: translate(3px, -14px) scale(1.02) rotate(0.4deg); 
  }
  68% { 
    transform: translate(-4px, -6px) scale(1.005) rotate(-0.2deg); 
  }
  100% { 
    transform: translate(0px, 0px) scale(1) rotate(0deg); 
  }
}

@keyframes floatWallet {
  0% { 
    transform: translate(0px, 0px) scale(1) rotate(0deg); 
  }
  28% { 
    transform: translate(-5px, -10px) scale(1.01) rotate(-0.4deg); 
  }
  62% { 
    transform: translate(4px, -16px) scale(1.025) rotate(0.3deg); 
  }
  100% { 
    transform: translate(0px, 0px) scale(1) rotate(0deg); 
  }
}

@keyframes borderAnimation {
  0% {
    transform: translateX(-100%) rotate(0deg);
  }
  100% {
    transform: translateX(100%) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__phone,
  .card--vehicle,
  .card--wallet { 
    animation: none; 
  }
  
  .email-bar::before {
    animation: none;
  }
}

/* ==========================================================================
   Mobile Responsive (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    overflow: hidden;
  }

  .container {
    height: 100vh;
    overflow: hidden;
  }

  .header {
    padding: 24px 24px 16px;
  }

  .header__logo img:first-child {
    width: 40px;
    height: 40px;
  }

  .header__logo img:last-child {
    width: 100px;
  }

  .main {
    flex-direction: column;
    padding: 0 24px 0px;
    gap: 0px;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scroll on mobile if needed */
  }

  .content {
    max-width: 100%;
    gap: 10px;
    flex-shrink: 0;
  }

  .content__headline {
    font-size: 32px;
    line-height: 1.15;
  }

  .content__subhead {
    font-size: 15px;
    line-height: 1.4;
  }

  .email-form {
    margin-top: 8px;
  }

  .email-bar {
    max-width: 100%;
    height: 54px;
    padding: 4px 4px 4px 18px;
  }

  .email-bar__input {
    font-size: 15px;
  }

  .email-bar__btn {
    height: 46px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 23px;
  }

  .social {
    gap: 8px;
    margin-top: 4px;
  }

  .social__avatars {
    width: 70px;
    height: 28px;
  }

  .social__text {
    font-size: 12px;
  }

  /* Hero - Scaled down to fit */
  .hero {
    position: relative;
    right: auto;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin-top: 0;
    margin-bottom: -20px;
    padding-right: 0;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
  }

  .hero__glow {
    width: 100%;
    height: 350px;
    bottom: 0;
  }

  .hero__gradient-line {
    top: 42%;
  }

  .hero__label {
    top: 28%;
  }

  .hero__launch {
    top: 1%;
  }

  .hero__launch-text {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .hero__stores {
    gap: 8px;
  }

  .store-badge {
    height: 32px;
  }

  .hero__label img {
    width: 90px;
  }

  .hero__stage {
    width: 280px;
    height: auto;
  }

  .card--vehicle {
    top: 32%;
    left: -8%;
    width: 100px;
    border-radius: 11px;
  }

  .card--wallet {
    top: 22%;
    right: -8%;
    width: 100px;
    border-radius: 12px;
  }

  .footer-fade {
    height: 250px;
    background: linear-gradient(
      180deg,
      rgba(247, 247, 247, 0) 0%,
      rgba(247, 247, 247, 0.4) 40%,
      rgba(247, 247, 247, 0.8) 70%,
      rgba(247, 247, 247, 1) 100%
    );
  }

  .footer {
    padding: 16px 24px;
    font-size: 12px;
  }

  .form-message {
    font-size: 13px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .content__headline {
    font-size: 28px;
  }

  .hero__launch {
    top: 0.5%;
  }

  .hero__launch-text {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .store-badge {
    height: 26px;
  }

  .hero__label {
    top: 26%;
  }

  .hero__stage {
    width: 220px;
  }

  .card--vehicle {
    top: 30%;
    left: -6%;
    width: 85px;
  }

  .card--wallet {
    top: 20%;
    right: -6%;
    width: 85px;
  }
}

/* ==========================================================================
   Large Desktop & Ultra-wide Monitors (1920px+)
   ========================================================================== */
@media (min-width: 1920px) {
  .main {
    max-width: 2400px;
    gap: 120px;
    padding: 0 120px 0;
  }

  .hero {
    right: 0;
    width: 50%;
  }

  .content {
    max-width: 680px;
  }

  .content__headline {
    font-size: 64px;
  }

  .content__subhead {
    font-size: 20px;
  }

  .email-bar {
    max-width: 600px;
    height: 72px;
  }

  .email-bar__input {
    font-size: 18px;
  }

  .email-bar__btn {
    height: 64px;
    padding: 0 36px;
    font-size: 16px;
  }

  .hero {
    margin-bottom: 0;
  }

  .hero__gradient-line {
    top: 46%;
  }

  .hero__label {
    top: 36%;
  }

  .hero__launch {
    top: 4%;
  }

  .hero__launch-text {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .hero__stores {
    gap: 16px;
  }

  .store-badge {
    height: 48px;
  }

  .hero__label img {
    width: 140px;
  }

  .hero__stage {
    width: 550px;
  }

  .card--vehicle {
    width: 230px;
  }

  .card--wallet {
    width: 210px;
  }
}

/* Ultra-wide monitors (2560px+) */
@media (min-width: 2560px) {
  .main {
    max-width: 2800px;
    gap: 160px;
    padding: 0 160px 0;
  }

  .hero {
    right: 0;
    width: 50%;
  }

  .content {
    max-width: 800px;
  }

  .content__headline {
    font-size: 72px;
  }

  .hero {
    margin-bottom: 0;
  }

  .hero__gradient-line {
    top: 47%;
  }

  .hero__label {
    top: 37%;
  }

  .hero__launch {
    top: 5%;
  }

  .hero__launch-text {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .hero__stores {
    gap: 18px;
  }

  .store-badge {
    height: 52px;
  }

  .hero__label img {
    width: 160px;
  }

  .hero__stage {
    width: 650px;
  }

  .card--vehicle {
    width: 270px;
  }

  .card--wallet {
    width: 250px;
  }
}
