@font-face {
  font-family: "SpaceGrotesk";
  src: url("./fonts/SpaceGrotesk/SpaceGrotesk-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SpaceGrotesk";
  src: url("./fonts/SpaceGrotesk/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SpaceGrotesk";
  src: url("./fonts/SpaceGrotesk/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SpaceGrotesk";
  src: url("./fonts/SpaceGrotesk/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SpaceGrotesk";
  src: url("./fonts/SpaceGrotesk/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: #141414;
  color: #ebebdf;
  font-family: "SpaceGrotesk", system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
}

.left-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow: hidden;
}
@media (max-width: 900px) {
  .left-panel {
    order: 2;
    padding: 2rem 2rem 5rem;
    min-height: 55vh;
  }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}
.glow--amber {
  width: 480px;
  height: 480px;
  background: #c68e17;
  top: -80px;
  left: -120px;
  animation: drift 8s ease-in-out infinite alternate;
}
.glow--bone {
  width: 320px;
  height: 320px;
  background: #ebebdf;
  bottom: -60px;
  right: -60px;
  animation: drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, 20px) scale(1.06);
  }
}
.phone-frame {
  position: relative;
  width: 260px;
  height: 530px;
  background: #1c1c1c;
  border-radius: 44px;
  border: 1.5px solid rgba(235, 235, 223, 0.12);
  box-shadow:
    0 0 0 1px rgba(235, 235, 223, 0.05),
    0 40px 80px rgba(10, 10, 10, 0.8),
    inset 0 1px 0 rgba(235, 235, 223, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: float 5s ease-in-out infinite;
}
@media (max-width: 600px) {
  .phone-frame {
    width: 200px;
    height: 410px;
    border-radius: 36px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.phone-notch {
  flex-shrink: 0;
  width: 90px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 20px 20px;
  align-self: center;
  margin-top: 0;
}

.phone-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  margin: 6px 6px 0;
  border-radius: 30px 30px 0 0;
}

.phone-home-indicator {
  flex-shrink: 0;
  height: 24px;
  background: #0a0a0a;
  margin: 0 6px;
  border-radius: 0 0 38px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-home-indicator::after {
  content: "";
  width: 60px;
  height: 4px;
  background: rgba(235, 235, 223, 0.2);
  border-radius: 2px;
}

.app-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 2.5rem;
  border-left: 1px solid #2a2a2a;
  position: relative;
}
@media (max-width: 900px) {
  .right-panel {
    order: 1;
    border-left: none;
    border-bottom: 1px solid #2a2a2a;
    padding: 3rem 1.5rem 2.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.brand__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #ebebdf;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(235, 235, 223, 0.06);
  border: 1px solid rgba(235, 235, 223, 0.12);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a3a398;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ebebdf;
  margin-bottom: 1.25rem;
}
.headline--accent {
  color: #d1d1cb;
  display: block;
}

.subtext {
  font-size: 0.95rem;
  font-weight: 400;
  color: #a3a398;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2rem;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}

.feature-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #a3a398;
  line-height: 1.5;
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ebebdf;
  flex-shrink: 0;
  opacity: 0.45;
  margin-top: 0.4em;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #1c1c1c;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.input-group:focus-within {
  border-color: rgba(235, 235, 223, 0.3);
  box-shadow: 0 0 0 3px rgba(235, 235, 223, 0.05);
}

.email-input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-family: "SpaceGrotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ebebdf;
  min-width: 0;
}
.email-input::placeholder {
  color: #555555;
}
.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1c1c1c inset;
  -webkit-text-fill-color: #ebebdf;
  caret-color: #ebebdf;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: #ebebdf;
  color: #141414;
  border: none;
  border-left: 1px solid rgba(235, 235, 223, 0.15);
  font-family: "SpaceGrotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.submit-btn:hover:not(:disabled) {
  background: #d1d1cb;
}
.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-text,
.btn-icon {
  transition: opacity 0.15s ease;
}

.btn-loader {
  display: none;
}

.submit-btn.is-loading .btn-text,
.submit-btn.is-loading .btn-icon {
  display: none;
}
.submit-btn.is-loading .btn-loader {
  display: flex;
  align-items: center;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-error {
  font-size: 0.78rem;
  color: #ff4d4d;
  font-weight: 500;
  min-height: 1em;
  padding-left: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.form-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.success-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(75, 181, 67, 0.06);
  border: 1px solid rgba(75, 181, 67, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-state[hidden] {
  display: none;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(75, 181, 67, 0.12);
  flex-shrink: 0;
}

.success-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ebebdf;
  margin-bottom: 2px;
}

.success-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: #a3a398;
}

.privacy-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: #555555;
  letter-spacing: 0.02em;
}

.counter {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #a3a398;
}
@media (max-width: 900px) {
  .counter {
    position: static;
    margin-top: 2rem;
  }
}

.counter__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bb543;
  position: relative;
  flex-shrink: 0;
}
.counter__pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #4bb543;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.6s ease forwards;
}
.content > *:nth-child(1) {
  animation-delay: 0.05s;
}
.content > *:nth-child(2) {
  animation-delay: 0.12s;
}
.content > *:nth-child(3) {
  animation-delay: 0.19s;
}
.content > *:nth-child(4) {
  animation-delay: 0.26s;
}
.content > *:nth-child(5) {
  animation-delay: 0.33s;
}
.content > *:nth-child(6) {
  animation-delay: 0.4s;
}
.content > *:nth-child(7) {
  animation-delay: 0.47s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.watch-video-btn {
  display: none;
}
@media (max-width: 900px) {
  .watch-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #ebebdf;
    border-radius: 100px;
    color: #ebebdf;
    font-family: "SpaceGrotesk", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.15s ease;
    white-space: nowrap;
  }
  .watch-video-btn:hover {
    background: rgba(235, 235, 223, 0.06);
    border-color: rgba(235, 235, 223, 0.3);
  }
  .watch-video-btn:active {
    transform: scale(0.97);
  }
}

.watch-video-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(235, 235, 223, 0.1);
  flex-shrink: 0;
}
