:root {
  --rally-bg: rgb(9, 2, 18);
  --rally-card-bg: rgb(15, 10, 34);
  --rally-card-border: rgb(55, 48, 88);
  --rally-input-bg: rgb(29, 25, 49);
  --rally-text: rgb(255, 255, 255);
  --rally-text-muted: rgba(255, 255, 255, 0.7);
  --rally-placeholder: rgba(197, 198, 208, 0.4);
  --rally-accent-1: rgb(169, 127, 255);
  --rally-accent-2: rgb(134, 100, 255);
  --rally-accent-glow: rgba(202, 205, 255, 0.55);
  --rally-error: rgb(255, 118, 118);
}

.rally-page {
  margin: 0;
  background: var(--rally-bg);
  color: var(--rally-text);
  font-family: 'Inter', sans-serif;
}

.rally-page * {
  box-sizing: border-box;
}

.rally-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.rally-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rally-text);
}

.rally-nav__logo img {
  border-radius: 8px;
}

.rally-nav__wordmark {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rally-nav__links {
  display: flex;
  gap: 28px;
}

.rally-nav__links a {
  color: var(--rally-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.rally-nav__links a:hover {
  color: var(--rally-text);
}

.rally-nav__cta {
  padding: 12px 24px;
  border-radius: 60px;
  background: linear-gradient(251deg, var(--rally-accent-1) 0%, var(--rally-accent-2) 100%);
  box-shadow: inset 0px -4.8px 24px 1px var(--rally-accent-glow);
  color: var(--rally-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.rally-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.rally-hero__heading {
  font-family: 'Geist', sans-serif;
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 16px;
}

.rally-hero__subheading {
  font-size: 18px;
  color: var(--rally-text-muted);
  margin: 0;
}

.rally-contact-section {
  padding: 0 24px 80px;
}

.rally-card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 30px;
  background: var(--rally-card-bg);
  border: 1px solid var(--rally-card-border);
  border-radius: 22px;
}

.rally-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rally-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rally-field--full {
  grid-column: 1 / -1;
}

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

.rally-input {
  width: 100%;
  padding: 16px;
  background: var(--rally-input-bg);
  border: none;
  border-radius: 16px;
  color: var(--rally-text);
  font-size: 16px;
  font-family: inherit;
}

.rally-input::placeholder {
  color: var(--rally-placeholder);
}

.rally-input:focus-visible {
  outline: 2px solid var(--rally-accent-1);
  outline-offset: 2px;
}

.rally-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23C5C6D0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.rally-textarea {
  min-height: 140px;
  resize: vertical;
}

.rally-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rally-error {
  grid-column: 1 / -1;
  color: var(--rally-error);
  font-size: 14px;
}

.rally-submit-button {
  cursor: pointer;
  padding: 18px 32px;
  border: none;
  border-radius: 60px;
  background: linear-gradient(251deg, var(--rally-accent-1) 0%, var(--rally-accent-2) 100%);
  box-shadow: inset 0px -4.8px 24px 1px var(--rally-accent-glow);
  color: var(--rally-text);
  font-size: 18px;
  font-weight: 600;
}

.rally-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rally-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rally-city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--rally-input-bg);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
}

.rally-city-card:focus-visible {
  outline: 2px solid var(--rally-accent-1);
  outline-offset: 2px;
}

.rally-city-card--selected {
  border-color: var(--rally-accent-1);
  box-shadow: 0 0 0 4px rgba(169, 127, 255, 0.2);
}

.rally-city-card__label {
  font-size: 14px;
}

.rally-other-city-input {
  margin-top: 12px;
}

.rally-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 0;
}

.rally-success__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.rally-success__tagline {
  font-size: 20px;
  max-width: 420px;
}

.rally-success__city {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rally-success__city-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.rally-success__city-icon {
  width: 100%;
  height: 100%;
}

.rally-success__badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
}

.rally-success__city-name {
  font-weight: 600;
  margin: 8px 0 0;
}

.rally-share-button {
  cursor: pointer;
  padding: 14px 28px;
  border: none;
  border-radius: 60px;
  background: linear-gradient(251deg, var(--rally-accent-1) 0%, var(--rally-accent-2) 100%);
  box-shadow: inset 0px -4.8px 24px 1px var(--rally-accent-glow);
  color: var(--rally-text);
  font-size: 16px;
  font-weight: 600;
}

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

.rally-success__invite-tagline {
  font-size: 14px;
  color: var(--rally-text-muted);
  margin: 0;
}

.rally-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  flex-wrap: wrap;
}

.rally-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rally-text);
  font-weight: 700;
}

.rally-footer__logo img {
  border-radius: 8px;
}

.rally-footer__socials {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.rally-footer__socials-heading {
  color: var(--rally-text-muted);
}

.rally-footer__socials a {
  color: var(--rally-text);
  text-decoration: none;
}

.rally-footer__socials a:hover {
  color: var(--rally-accent-1);
}

@media (max-width: 900px) {
  .rally-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rally-nav {
    flex-wrap: wrap;
    padding: 20px;
  }

  .rally-nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .rally-hero__heading {
    font-size: 32px;
  }

  .rally-form {
    grid-template-columns: 1fr;
  }

  .rally-card {
    padding: 32px 20px;
  }

  .rally-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rally-footer {
    flex-direction: column;
    text-align: center;
  }
}
