:root {
  --uc-blue: #009ee3;
  --uc-blue-dark: #006fbe;
  --uc-indigo: #4338ca;
  --bg-start: #f3f9ff;
  --bg-end: #dceeff;
  --text-main: #0f172a;
  --text-muted: #5f6c86;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 55%, #f8fbff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  animation: fadeUp .6s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.stagger-1 {
  animation: fadeUp .6s ease-out both;
  animation-delay: .15s;
}

.stagger-2 {
  animation: fadeUp .6s ease-out both;
  animation-delay: .25s;
}

.stagger-3 {
  animation: fadeUp .6s ease-out both;
  animation-delay: .35s;
}

.stagger-4 {
  animation: fadeUp .6s ease-out both;
  animation-delay: .45s;
}

.stagger-5 {
  animation: fadeUp .6s ease-out both;
  animation-delay: .55s;
}

header {
  padding: clamp(16px, 3vw, 32px) clamp(24px, 6vw, 72px) 0;
  display: flex;
  justify-content: center;
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 12px 8px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 24px 40px -28px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  width: min(100%, 1100px);
}

.brand-link {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.brand-link img {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  object-fit: contain;
}

.brand-link span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.brand-link strong {
  font-size: 1.4rem;
}

.btn-login {
  grid-column: 3;
  justify-self: start;
  margin-left: 3rem;
  background: linear-gradient(135deg, #009ee3 0%, #007eb5 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 158, 227, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 158, 227, 0.3);
}

main {
  flex: 1;
  padding: clamp(12px, 3vw, 40px) clamp(24px, 6vw, 80px) clamp(24px, 5vw, 56px);
  display: flex;
  justify-content: center;
}

.hero {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 3.5vw, 44px);
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 158, 227, 0.14);
  color: var(--uc-blue-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-row {
  display: flex;
  justify-content: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--uc-indigo);
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  margin-inline: auto;
}

.module-card {
  min-height: 260px;
  width: min(100%, 420px);
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 28px 50px -32px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.module-top img,
.module-top .module-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px;
}

.module-top .module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.module-icon span {
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
}

.module-top h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uc-blue-dark);
}

.module-card.fiserv .module-tag {
  color: var(--uc-indigo);
}

.module-card.cygnus {
  border-color: rgba(52, 187, 197, 0.4);
}

.module-card.cygnus .module-tag {
  color: #14b8a6;
}

.module-card.cygnus .module-icon {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.4);
}

.module-body {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.module-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.module-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 158, 227, 0.08);
  color: var(--uc-blue-dark);
}

.module-card.fiserv .module-pills span {
  background: rgba(67, 56, 202, 0.08);
  color: var(--uc-indigo);
}

.module-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.module-actions a {
  flex: 1 1 150px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 110, 190, 0.25);
  color: var(--uc-blue-dark);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-actions a.primary {
  background: linear-gradient(135deg, var(--uc-blue) 0%, var(--uc-indigo) 100%);
  color: #ffffff;
  border: none;
}

.module-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -24px rgba(15, 23, 42, 0.3);
}

.module-card.fiserv .module-actions a {
  border-color: rgba(67, 56, 202, 0.25);
  color: var(--uc-indigo);
}

.module-card.fiserv .module-actions a.primary {
  background: linear-gradient(135deg, var(--uc-indigo) 0%, var(--uc-blue) 100%);
  color: #ffffff;
  border: none;
}

.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 40px -30px rgba(15, 23, 42, 0.38);
  flex-wrap: wrap;
  align-self: center;
  text-align: center;
  width: min(100%, 1100px);
}

.partners span {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.partners-logos {
  display: inline-flex;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  justify-content: center;
}

.partners-logos img {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  object-fit: contain;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.6);
}

.security-note {
  margin: 6px auto 0;
  width: min(100%, 1100px);
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 0.9rem;
  box-shadow: 0 20px 38px -30px rgba(15, 23, 42, 0.35);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer {
  padding: 0 clamp(24px, 5vw, 72px) clamp(36px, 6vw, 64px);
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  header {
    padding-bottom: 12px;
  }

  .navbar {
    display: flex;
    padding: 10px 16px;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand-link {
    gap: 12px;
  }

  .brand-link img {
    width: 48px;
    height: 48px;
  }

  .brand-link strong {
    font-size: 1rem;
  }

  .btn-login {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .cta a {
    width: 100%;
    justify-content: center;
  }

  .module-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .module-actions a {
    width: auto;
    flex: 0 0 auto;
    min-width: 140px;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .security-note {
    flex-direction: column;
    text-align: center;
  }

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

/* App Container for Zoom Effect */
#app-container {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.4s ease;
  transform-origin: center top;
  background: white;
  /* Ensure background is solid for the effect */
  min-height: 100vh;
}

.app-receded {
  transform: scale(0.92) translateY(20px);
  filter: blur(8px) brightness(0.7);
  border-radius: 24px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Removed background color to rely on the blur effect of the container */
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
}

.close-btn:hover {
  color: var(--text-main);
}

/* Login Form Styles */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.login-subtitle {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.login-error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.error-title {
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.error-message {
  font-size: 0.875rem;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding-left: 0.75rem;
  display: flex;
  align-items: center;
  color: #94a3b8;
  pointer-events: none;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  transition: all 0.2s;
  color: var(--text-main);
}

.input-field:focus {
  outline: none;
  border-color: var(--uc-blue);
  box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.1);
  background: white;
}

.login-btn-submit {
  width: 100%;
  padding: 0.875rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #009ee3 0%, #007eb5 100%);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.login-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(0, 158, 227, 0.3);
}

.login-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2rem;
}
