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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --muted: rgba(240, 240, 245, 0.45);
  --accent: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.18);
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

/* Subtle background mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 50%,
      rgba(74, 222, 128, 0.04) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 80% 30%,
      rgba(120, 100, 255, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  padding: 60px 24px 40px;
  flex: 1;
}

/* LEFT SIDE */
.left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.app-name {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.headline {
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.headline em {
  font-style: normal;
  color: var(--accent);
}

.subline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  max-width: 380px;
}

/* FORM */
.form-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 8px;
}

input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input[type="email"]::placeholder {
  color: rgba(240, 240, 245, 0.25);
}

input[type="email"]:focus {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

button[type="submit"] {
  background: var(--accent);
  color: #050f08;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

button[type="submit"]:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.form-note {
  font-size: 12px;
  color: rgba(240, 240, 245, 0.3);
  letter-spacing: 0.01em;
}

/* SUCCESS STATE */
.success-msg {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--accent);
}

.success-msg.show {
  display: flex;
}

/* RIGHT SIDE — iPhone mockup */
.right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone {
  position: relative;
  width: 320px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

.iphone-frame {
  width: 100%;
  border-radius: 48px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  position: relative;
}

.iphone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 9/19.5;
  width: 100%;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Glow under phone */
.iphone::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: radial-gradient(
    ellipse,
    rgba(74, 222, 128, 0.15),
    transparent 70%
  );
  filter: blur(8px);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  body {
    padding: 24px 20px 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .app-identity {
    justify-content: center;
  }
  .subline {
    max-width: none;
    margin: 0 auto;
  }
  .right {
    order: -1;
  }
  .iphone {
    width: 220px;
  }
  .form-row {
    flex-direction: column;
  }
  button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }
  input[type="email"] {
    font-size: 16px; /* prevents iOS zoom */
  }
  .headline {
    font-size: 32px;
  }
  .left {
    gap: 24px;
  }
  footer {
    padding: 20px 16px;
    margin-top: 32px;
  }
}

@media (max-width: 400px) {
  .iphone {
    width: 190px;
  }
  .headline {
    font-size: 26px;
  }
}

footer {
  position: static;
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: rgba(240, 240, 245, 0.25);
  letter-spacing: 0.03em;
  width: 100%;
}

/* Improve Email Field Visibility */

input[type="email"] {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #161621;
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

input[type="email"]:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* ===== ALTCHA FIX ===== */

.altcha-container,
.altcha-widget,
.altcha {
  background: #12121a !important;
  border-radius: 10px;
  padding: 10px !important;
  margin-top: 10px;
}

.altcha * {
  color: #f0f0f5 !important;
}

.altcha button {
  background: #4ade80 !important;
  color: #050f08 !important;
  border-radius: 8px !important;
}

/* vertical spacing */
.left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-identity {
  margin-bottom: 10px;
}

.headline {
  margin-bottom: 15px;
}

.subline {
  margin-bottom: 22px;
}
