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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #2143f6;
  color: white;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: white;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-link:hover {
  opacity: 0.9;
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.95;
}

.btn-login {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-apply {
  background: white;
  color: #2143f6;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 3rem 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

/* Backed by */
.backed-by {
  margin-top: 3rem;
}

.backed-by-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.backed-by-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-accel {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.logo-allin {
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.logo-allin .all {
  font-weight: 800;
}

.logo-allin .in {
  font-weight: 600;
}

/* Hero illustration */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
}

/* Soft gradient halo behind the globe */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: hero-halo-pulse 5s ease-in-out infinite;
}

@keyframes hero-halo-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.hero-globe {
  max-width: 100%;
  max-height: 75vh;
  min-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Soft glow so the globe pops off the background */
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.15))
    drop-shadow(0 24px 48px rgba(0, 0, 0, 0.2));
  /* Float + opacity */
  animation: hero-globe-float 6s ease-in-out infinite;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

@keyframes hero-globe-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }
  35% {
    transform: translateY(-14px);
    opacity: 1;
  }
  70% {
    transform: translateY(-6px);
    opacity: 0.96;
  }
}

.hero-globe:hover {
  transform: translateY(-8px);
  opacity: 1;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title,
  .hero-desc {
    text-align: center;
  }

  .btn-apply {
    margin-left: auto;
    margin-right: auto;
  }

  .backed-by {
    text-align: center;
  }

  .backed-by-logos {
    justify-content: center;
  }
}

/* Apply modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
}

.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: #2143f6;
  color: white;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apply-form.form-hidden {
  display: none;
}

.form-error {
  font-size: 0.875rem;
  color: #ffb3b3;
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  margin: 0 0 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: -0.25rem;
}

.form-input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 100%;
  box-sizing: border-box;
}

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

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
}

.btn-submit {
  margin-top: 0.5rem;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0;
}

.modal-success.success-visible {
  display: block;
}

.success-message {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 2rem 1.5rem 3rem;
  }

  .nav {
    gap: 1rem;
  }
}
